Difference between revisions of "Template:Unofficial name/doc"

From Yugipedia
Jump to: navigation, search
(Subtemplates: lol hyperbole)
(restore from the Internet Archive (November 26, 2022))
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
-->
 
-->
 
==Usage==
 
==Usage==
This template should be added to the top of articles on cards which contain one or more unofficial names (that is, card pages which list unofficial translations of the card's name), per the guidelines at [[Yu-Gi-Oh!:Arabic card names guidelines]]. It takes up to 15 unnamed parameters with one language name per parameter.
+
This template should be added to the top of articles on cards which contain one or more unofficial names (that is, card pages which list unofficial translations of the card's name), per the guidelines at [[Yu-Gi-Oh!:Arabic card names guidelines]]. It takes a comma-delimited list of language names.
  
;<code><nowiki>{{Unofficial name|Arabic}}</nowiki></code>
+
;<code><nowiki>{{Unofficial name|French}}</nowiki></code>
results in {{Unofficial name|Arabic}}
+
results in {{Unofficial name|French}}
  
;<code><nowiki>{{Unofficial name|Arabic|Chinese}}</nowiki></code>
+
;<code><nowiki>{{Unofficial name|Chinese, French}}</nowiki></code>
results in {{Unofficial name|Arabic|Chinese}}
+
results in {{Unofficial name|Chinese, French}}
  
;<code><nowiki>{{Unofficial name|Italian|Portuguese|Thai}}</nowiki></code>
+
;<code><nowiki>{{Unofficial name|Italian, Portuguese, Spanish}}</nowiki></code>
results in {{Unofficial name|Italian|Portuguese|Thai}}
+
results in {{Unofficial name|Italian, Portuguese, Spanish}}
  
 
Order of the languages generally doesn't matter, but for maintenance reasons, alphabetical sorting is preferred.
 
Order of the languages generally doesn't matter, but for maintenance reasons, alphabetical sorting is preferred.
  
This template automatically categorizes pages into subcategories of [[:Category:Card pages with an unofficial name]]. The following languages are currently supported (note that not all corresponding categories may exist yet):
+
This template automatically categorizes pages into subcategories of [[:Category:Card pages with an unofficial name]]. The following languages are currently supported:
* [[:Category:Card pages with an unofficial Arabic name|Arabic]]
+
{{ #arraydefine: @languages | Chinese, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish }}{{ #arrayprint: @languages || $language | <nowiki/>
* [[:Category:Card pages with an unofficial Bengali name|Bengali]]
+
* [[:Category:Card pages with an unofficial $language name|$language]] ({{PAGESINCAT:Card pages with an unofficial $language name}}) }}
* [[:Category:Card pages with an unofficial Bulgarian name|Bulgarian]]
+
==Metatemplate==
* [[:Category:Card pages with an unofficial Chinese name|Chinese]]
+
This template and {{tl|Unofficial lore}} are implemented using the {{tl|Unofficial name or lore}} metatemplate.
* [[:Category:Card pages with an unofficial Croatian name|Croatian]]
 
* [[:Category:Card pages with an unofficial Czech name|Czech]]
 
* [[:Category:Card pages with an unofficial Danish name|Danish]]
 
* [[:Category:Card pages with an unofficial Dutch name|Dutch]]
 
* [[:Category:Card pages with an unofficial English name|English]]
 
* [[:Category:Card pages with an unofficial Estonian name|Estonian]]
 
* [[:Category:Card pages with an unofficial Finnish name|Finnish]]
 
* [[:Category:Card pages with an unofficial French name|French]]
 
* [[:Category:Card pages with an unofficial German name|German]]
 
* [[:Category:Card pages with an unofficial Greek name|Greek]]
 
* [[:Category:Card pages with an unofficial Hawaiian name|Hawaiian]]
 
* [[:Category:Card pages with an unofficial Hebrew name|Hebrew]]
 
* [[:Category:Card pages with an unofficial Hungarian name|Hungarian]]
 
* [[:Category:Card pages with an unofficial Indonesian name|Indonesian]]
 
* [[:Category:Card pages with an unofficial Irish name|Irish]]
 
* [[:Category:Card pages with an unofficial Italian name|Italian]]
 
* [[:Category:Card pages with an unofficial Japanese name|Japanese]]
 
* [[:Category:Card pages with an unofficial Korean name|Korean]]
 
* [[:Category:Card pages with an unofficial Latvian name|Latvian]]
 
* [[:Category:Card pages with an unofficial Lithuanian name|Lithuanian]]
 
* [[:Category:Card pages with an unofficial Norwegian name|Norwegian]]
 
* [[:Category:Card pages with an unofficial Persian name|Persian]]
 
* [[:Category:Card pages with an unofficial Polish name|Polish]]
 
* [[:Category:Card pages with an unofficial Portuguese name|Portuguese]]
 
* [[:Category:Card pages with an unofficial Romanian name|Romanian]]
 
* [[:Category:Card pages with an unofficial Russian name|Russian]]
 
* [[:Category:Card pages with an unofficial Serbian name|Serbian]]
 
* [[:Category:Card pages with an unofficial Slovak name|Slovak]]
 
* [[:Category:Card pages with an unofficial Slovene name|Slovene]]
 
* [[:Category:Card pages with an unofficial Spanish name|Spanish]]
 
* [[:Category:Card pages with an unofficial Swedish name|Swedish]]
 
* [[:Category:Card pages with an unofficial Thai name|Thai]]
 
* [[:Category:Card pages with an unofficial Turkish name|Turkish]]
 
* [[:Category:Card pages with an unofficial Vietnamese name|Vietnamese]]
 
* [[:Category:Card pages with an unofficial Welsh name|Welsh]]
 
Unsupported languages are displayed as entered and cause the page to be categorized under [[:Category:Card pages with a nonstandard unofficial name]]. Support for additional languages is added on request on the [[Template talk:Unofficial name|talk page]] or as encountered during deployment.
 
 
 
==Subtemplates==
 
There are two subtemplates to this template:
 
 
 
* {{tl|Unofficial name/category}} - handles the dirty details of categorizing card pages, so that the code doesn't have to be changed in a million different places to add a single new language
 
* {{tl|Unofficial name/cat header}} - a boilerplate header for the per-language subcategories of [[:Category:Card pages with an unofficial name]], as listed above
 
  
 
==See also==
 
==See also==
 
* {{tl|Unofficial lore}} - a version of this template for unofficial translations of card lores
 
* {{tl|Unofficial lore}} - a version of this template for unofficial translations of card lores
* [[Template:CardTable2/doc/languages]]
+
* {{tl|Unofficial name or lore cat header}} - a boilerplate header for the per-language subcategories of [[:Category:Card pages with an unofficial name]] and [[:Category:Card pages with an unofficial lore]]
 +
* {{tl|Unknown name}} - a template for non-card pages with unofficial (English) names
 
* [[User:Dinoguy1000/languages]]
 
* [[User:Dinoguy1000/languages]]
  
 
<includeonly><!-- CATEGORIES HERE, THANKS -->
 
<includeonly><!-- CATEGORIES HERE, THANKS -->
[[Category:Templates|{{PAGENAME}}]]
+
[[Category:Templates]]
  
 
</includeonly>
 
</includeonly>

Latest revision as of 01:21, 16 September 2023

Usage[edit]

This template should be added to the top of articles on cards which contain one or more unofficial names (that is, card pages which list unofficial translations of the card's name), per the guidelines at Yu-Gi-Oh!:Arabic card names guidelines. It takes a comma-delimited list of language names.

{{Unofficial name|French}}

results in

{{Unofficial name|Chinese, French}}

results in

{{Unofficial name|Italian, Portuguese, Spanish}}

results in

Order of the languages generally doesn't matter, but for maintenance reasons, alphabetical sorting is preferred.

This template automatically categorizes pages into subcategories of Category:Card pages with an unofficial name. The following languages are currently supported:

Metatemplate[edit]

This template and {{Unofficial lore}} are implemented using the {{Unofficial name or lore}} metatemplate.

See also[edit]