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

From Yugipedia
Jump to: navigation, search
(less jargon)
(restore from the Internet Archive (November 26, 2022))
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!--
 
<!--
     PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
+
     PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE
 
-->
 
-->
 
==Usage==
 
==Usage==
This template should be added to the top of articles on cards which contain one or more approximate 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>{{Approximate name|Arabic}}</nowiki></code>
+
;<code><nowiki>{{Unofficial name|French}}</nowiki></code>
results in {{Approximate name|Arabic}}
+
results in {{Unofficial name|French}}
  
;<code><nowiki>{{Approximate name|Arabic|Chinese}}</nowiki></code>
+
;<code><nowiki>{{Unofficial name|Chinese, French}}</nowiki></code>
results in {{Approximate name|Arabic|Chinese}}
+
results in {{Unofficial name|Chinese, French}}
  
;<code><nowiki>{{Approximate name|Italian|Portuguese|Thai}}</nowiki></code>
+
;<code><nowiki>{{Unofficial name|Italian, Portuguese, Spanish}}</nowiki></code>
results in {{Approximate 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 approximate name]]. The following languages are currently supported:
+
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 approximate Arabic name|Arabic]]
+
{{ #arraydefine: @languages | Chinese, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish }}{{ #arrayprint: @languages || $language | <nowiki/>
* [[:Category:Card pages with an approximate Bulgarian name|Bulgarian]]
+
* [[:Category:Card pages with an unofficial $language name|$language]] ({{PAGESINCAT:Card pages with an unofficial $language name}}) }}
* [[:Category:Card pages with an approximate Chinese name|Chinese]]
+
==Metatemplate==
* [[:Category:Card pages with an approximate Croatian name|Croatian]]
+
This template and {{tl|Unofficial lore}} are implemented using the {{tl|Unofficial name or lore}} metatemplate.
* [[:Category:Card pages with an approximate French name|French]]
 
* [[:Category:Card pages with an approximate German name|German]]
 
* [[:Category:Card pages with an approximate Greek name|Greek]]
 
* [[:Category:Card pages with an approximate Irish name|Irish]]
 
* [[:Category:Card pages with an approximate Italian name|Italian]]
 
* [[:Category:Card pages with an approximate Japanese name|Japanese]]
 
* [[:Category:Card pages with an approximate Korean name|Korean]]
 
* [[:Category:Card pages with an approximate Latvian name|Latvian]]
 
* [[:Category:Card pages with an approximate Polish name|Polish]]
 
* [[:Category:Card pages with an approximate Portuguese name|Portuguese]]
 
* [[:Category:Card pages with an approximate Romanian name|Romanian]]
 
* [[:Category:Card pages with an approximate Russian name|Russian]]
 
* [[:Category:Card pages with an approximate Thai name|Thai]]
 
* [[:Category:Card pages with an approximate Turkish name|Turkish]]
 
* [[:Category:Card pages with an approximate Serbian name|Serbian]]
 
* [[:Category:Card pages with an approximate Spanish name|Spanish]]
 
* [[:Category:Card pages with an approximate Vietnamese name|Vietnamese]]
 
Unsupported languages are displayed as entered and cause the page to be categorized under [[:Category:Card pages with a nonstandard approximate name]]. Support for additional languages is added on request on the [[Template talk:Approximate name|talk page]] or as encountered during deployment.
 
  
==Subtemplates==
+
==See also==
There are two subtemplates to this template:
+
* {{tl|Unofficial lore}} - a version of this template for unofficial translations of card lores
 +
* {{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]]
  
* {{tl|Approximate name/category}} - handles the dirty details of categorizing card pages, so that the code doesn't have to be changed in 15 different places to add a single new language
+
<includeonly><!-- CATEGORIES HERE, THANKS -->
* {{tl|Approximate name/cat header}} - a boilerplate header for the per-language subcategories of [[:Category:Card pages with an approximate name]], as listed above
 
 
 
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
 
[[Category:Templates]]
 
[[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]