Difference between revisions of "Template:Name"
Dinoguy1000 (talk | contribs) (update category) |
Dinoguy1000 (talk | contribs) (split documentation to /doc) |
||
Line 19: | Line 19: | ||
| order = desc | | order = desc | ||
}} }}{{ #iferror: {{ #explode: {{ #explode: {{ #var: $card_name-localname }} | ]] | 1 }} | {{!((}} }} | {{ #invoke: string | match | {{ #var: $card_name-localname }} | %[%[SMW::off%]%](.*)%[%[SMW::on%]%] }} }} | }} }}{{ #iferror: {{ #explode: {{ #explode: {{ #var: $card_name-localname }} | ]] | 1 }} | {{!((}} }} | {{ #invoke: string | match | {{ #var: $card_name-localname }} | %[%[SMW::off%]%](.*)%[%[SMW::on%]%] }} }} | ||
− | }}<noinclude> | + | }}<noinclude>{{documentation}}</noinclude> |
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </noinclude> |
Revision as of 13:28, 28 June 2016
This template uses Lua: |
{{Name}} returns the name of a card in a given language. It requires Semantic MediaWiki to be enabled to work.
Usage
{{Card name|Dark Magician|en}}
→ Dark Magician{{Card name|Dark Magician|ae}}
→ Dark Magician{{Card name|Dark Magician|de}}
→ Dunkler Magier{{Card name|Dark Magician|ja}}
→ ブラック・マジシャン{{Card name|Dark Magician|jp}}
→ ブラック・マジシャン{{Card name|Blue-Eyes White Dragon|JA}}
→青眼の白龍 {{Card name|Blue-Eyes White Dragon|ae}}
→ Blue-Eyes White Dragon{{Card name|Blue-Eyes White Dragon|xx}}
→{{Card name|Jinzo|ja}}
→人 造 人 間 -サイコ・ショッカー{{Card name|Jinzo #7|ja}}
→人 造 人 間 7号
See also
- {{Gallery card names}}, which returns a link to a card's article and its name in the requested language
- {{GetEngName}}, which returns a card's English or article name when given its Japanese name
- {{Target of}}, which returns the name of the article a redirect points to
- {{Translated name}}, which returns the translated name in the given language of an item
- {{Transliterated name}} (or {{Romanized name}}), which returns the transliterated name of the given language's name of an item