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

From Yugipedia
Jump to: navigation, search
(+Japanese, listify)
(restore from the Internet Archive (November 26, 2022))
 
(25 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 using one or more approximated name, per the guidelines at [[Yu-Gi-Oh!:Arabic card names guidlines]]. 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}}
  
This template automatically categorizes pages into subcategories of [[:Category:Card pages with an approximate name]]. The following languages are currently supported:
+
Order of the languages generally doesn't matter, but for maintenance reasons, alphabetical sorting is preferred.
* [[:Category:Card pages with an approximate Arabic name|Arabic]]
 
* [[:Category:Card pages with an approximate Bulgarian name|Bulgarian]]
 
* [[:Category:Card pages with an approximate Chinese name|Chinese]]
 
* [[:Category:Card pages with an approximate Croatian name|Croatian]]
 
* [[:Category:Card pages with an approximate French name|French]]
 
* [[: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 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 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]]
 
Support for additional languages will be added on request on the [[Template talk:Approximate name|talk page]] or as encountered during deployment.
 
  
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
This template automatically categorizes pages into subcategories of [[:Category:Card pages with an unofficial name]]. The following languages are currently supported:
 +
{{ #arraydefine: @languages | Chinese, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish }}{{ #arrayprint: @languages || $language | <nowiki/>
 +
* [[:Category:Card pages with an unofficial $language name|$language]] ({{PAGESINCAT:Card pages with an unofficial $language name}}) }}
 +
==Metatemplate==
 +
This template and {{tl|Unofficial lore}} are implemented using the {{tl|Unofficial name or lore}} metatemplate.
 +
 
 +
==See also==
 +
* {{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]]
 +
 
 +
<includeonly><!-- CATEGORIES 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]