Template:Other Languages/doc: Difference between revisions
Created page with "{{Documentation/Header}} {{Lua}} This template is used to display the name of the page in other languages along with any romanization. '''Note:''' This wiki does not do TLs (translations) for its Other Language tables. Usage of the template will automatically add categories in Category:Meta Other Languages. ==Parameters== * The languages that are supported are ** English ({{F|en}}); optional parameter, defaults to the page name. ** Simplified Chinese ({{F|zhs}})..." |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | {{Documentation/Header}} | ||
{{High Risk|pagetype=Main}} | |||
{{Lua}} | {{Lua}} | ||
This template is used to display the | This template is used to display the '''official''' translations of a certain term for other languages. | ||
''' | <big>Note: that this template does '''NOT''' support romanization or translation for languages.</big> | ||
==Syntax== | |||
<pre> | |||
== | {{Other Languages | ||
|en = {{subst:#titleparts:{{subst:PAGENAME}}}} | |||
|zhs = | |||
|zht = | |||
|ja = | |||
|ko = | |||
|es = | |||
|fr = | |||
|ru = | |||
|th = | |||
|vi = | |||
|de = | |||
|id = | |||
|pt = | |||
}} | |||
</pre> | |||
===Supported Languages=== | |||
{{ | * English ({{F|en}}) | ||
|en | ** The parameter {{F|en}} is optional and defaults to the page name. | ||
|zhs | * Simplified Chinese ({{F|zhs}}) | ||
* Traditional Chinese ({{F|zht}}) | |||
|zht | * Japanese ({{F|ja}}) | ||
* Korean ({{F|ko}}) | |||
|ja | * Spanish ({{F|es}}) | ||
* French ({{F|fr}}) | |||
|ko | * Russian ({{F|ru}}) | ||
|es | * Thai ({{F|th}}) | ||
|fr | * Vietnamese ({{F|vi}}) | ||
|ru | * German ({{F|de}}) | ||
|th | * Indonesian ({{F|id}}) | ||
* Portuguese ({{F|pt}}) | |||
|vi | |||
|de | |||
|id | |||
|pt | |||
}} | |||
== | ===Multiple Tables=== | ||
To render multiple tables the different tables' language parameters must be prefixed with the table's index plus an underscore ({{F|((index))_}}). | |||
* E.g., {{F|ja}} becomes {{F|1_ja}} if it is the first table's Japanese name, {{F|2_ja}} if it is the second table's, and so on. | |||
* {{ | |||
==Template Data== | ==Template Data== | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Displays official translations of the given term as seen in-game.", | |||
"format": "{{_\n|____ = _\n}}\n", | |||
"params": { | "params": { | ||
"en": { | "en": { | ||
"label": "English Name", | |||
"zhs": { | "type": "string", | ||
"suggested": true, | |||
"zht": { | "description": "Official English translation, as seen in-game – Official Only", | ||
"aliases": [ | |||
"ja": { | "1_en" | ||
] | |||
"ko": { | }, | ||
"zhs": { | |||
"es": {}, | "label": "Simplified Chinese Name", | ||
"fr": {}, | "type": "string", | ||
"ru": {}, | "suggested": true, | ||
"th": { | "description": "Official Simplified Chinese translation, as seen in-game – 仅限官方", | ||
"aliases": [ | |||
"vi": {}, | "1_zhs" | ||
"de": {}, | ] | ||
"id": {}, | }, | ||
"pt": {} | "zht": { | ||
"label": "Traditional Chinese Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Traditional Chinese translation, as seen in-game – 僅限官方", | |||
"aliases": [ | |||
"1_zht" | |||
] | |||
}, | |||
"ja": { | |||
"label": "Japanese Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Japanese translation, as seen in-game – 公式のみ", | |||
"aliases": [ | |||
"1_ja" | |||
] | |||
}, | |||
"ko": { | |||
"label": "Korean Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Korean translation, as seen in-game – 공식 전용", | |||
"aliases": [ | |||
"1_ko" | |||
] | |||
}, | |||
"es": { | |||
"label": "Spanish Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Spanish translation, as seen in-game – Oficial solamente", | |||
"aliases": [ | |||
"1_es" | |||
] | |||
}, | |||
"fr": { | |||
"label": "French Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official French translation, as seen in-game – Uniquement officiel", | |||
"aliases": [ | |||
"1_fr" | |||
] | |||
}, | |||
"ru": { | |||
"label": "Russian Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Russian translation, as seen in-game – Только официальный перевод.", | |||
"aliases": [ | |||
"1_ru" | |||
] | |||
}, | |||
"th": { | |||
"label": "Thai Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Thai translation, as seen in-game – แปลเป็นทางการเท่านั้น", | |||
"aliases": [ | |||
"1_th" | |||
] | |||
}, | |||
"vi": { | |||
"label": "Vietnamese Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Vietnamese translation, as seen in-game – Chỉ chính thức", | |||
"aliases": [ | |||
"1_vi" | |||
] | |||
}, | |||
"de": { | |||
"label": "German Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official German translation, as seen in-game – Nur offiziell", | |||
"aliases": [ | |||
"1_de" | |||
] | |||
}, | |||
"id": { | |||
"label": "Indonesian Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Indonesian translation, as seen in-game – Hanya resmi", | |||
"aliases": [ | |||
"1_id" | |||
] | |||
}, | |||
"pt": { | |||
"label": "Portugese Name", | |||
"type": "string", | |||
"suggested": true, | |||
"description": "Official Portuguese translation, as seen in-game – Apenas oficial", | |||
"aliases": [ | |||
"1_pt" | |||
] | |||
} | |||
}, | }, | ||
" | "paramOrder": [ | ||
"en", | |||
"zhs", | |||
"zht", | |||
"ja", | |||
"ko", | |||
"es", | |||
"fr", | |||
"ru", | |||
"th", | |||
"vi", | |||
"de", | |||
"id", | |||
"pt" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||