Permanently protected template

Difference between revisions of "Template:Card name"

From Yugipedia
Jump to: navigation, search
(fix after MW 1.19 upgrade)
(Use the data module to get the name.)
 
(46 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#ask: [[{{{1|}}}]] |?{{#switch: {{ln|{{{2}}}}}
+
{{ #invoke: Data/Templates | name }}<noinclude>
| JP = {{#ifeq:{{#ask: [[{{{1|}}}]] |?Ruby Text=}}||Japanese Name|Ruby Text}}
+
{{documentation}}
| DE = German Name
+
</noinclude>
| KR = Korean Name
 
| AE = Asian-English Name
 
| CH = Chinese Name
 
| FC
 
| FR = French Name
 
| PT = Portuguese Name
 
| IT = Italian Name
 
| SP = Spanish Name
 
| #default = {{
 
  #ifeq: {{ lc: {{{2}}} }} | alt
 
  | English Alternate Names
 
  | English Name
 
|format=template|link=none|template=GetEngName/2}}
 
}}= }}</includeonly><noinclude>It generates the name of a card from the Semantic property.
 
 
 
For example:
 
*<nowiki>{{Cardname|Dark Magician|en}}</nowiki> → {{Cardname|Dark Magician|en}}
 
*<nowiki>{{Cardname|Dark Magician|ae}}</nowiki> → {{Cardname|Dark Magician|ae}}
 
*<nowiki>{{Cardname|Dark Magician|de}}</nowiki> → {{Cardname|Dark Magician|de}}</noinclude>
 

Latest revision as of 23:04, 21 January 2020

Template documentation[view] [edit] [history] [purge]

{{Card 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|Blue-Eyes White Dragon|ja}}青眼の白龍ブルーアイズ・ホワイト・ドラゴン
  • {{Card name|Blue-Eyes White Dragon|ae}} → Blue-Eyes White Dragon

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
  • {{SMW page name}}, which returns the name of the article a redirect points to