Difference between revisions of "Template:Card name"

From Yugipedia
Jump to: navigation, search
(category)
(try a fix if the given language name isn't available)
Line 1: Line 1:
<includeonly>{{ #show: {{{1|}}} |?{{ #switch: {{ln|{{{2}}}}}
+
<includeonly>{{ #vardefine: $template-card-name | {{ #show: {{{1|}}} |?{{ #switch: {{ln|{{{2}}}}}
| JP = {{ #if: {{ #show: {{{1|}}} |?Ruby text }} | Ruby text | Japanese name }}
+
    | JP = {{ #if: {{ #show: {{{1|}}} |?Ruby text }} | Ruby text | Japanese name }}
| DE = German name
+
    | DE = German name
| KR = Korean name
+
    | KR = Korean name
| AE = Asian-English name
+
    | AE = Asian-English name
| CH = Chinese name
+
    | CH = Chinese name
| FC
+
    | FC
| FR = French name
+
    | FR = French name
| PT = Portuguese name
+
    | PT = Portuguese name
| IT = Italian name
+
    | IT = Italian name
| SP = Spanish name
+
    | SP = Spanish name
| #default = {{
+
    | #default = {{ #ifeq: {{ lc: {{{2}}} }} | alt
  #ifeq: {{ lc: {{{2}}} }} | alt
+
      | English alternate names
  | English alternate names
+
      | English name
  | English name
+
      }}
}}
+
    }}
}}
+
  }}
}}</includeonly><noinclude>It generates the name of a card from the Semantic property.
+
}}{{ #var: $template-card-name | {{ #show: {{{1|}}} |?English name }} }}</includeonly><noinclude>It generates the name of a card from the Semantic property.
  
 
For example:
 
For example:

Revision as of 05:16, 21 March 2014

It generates the name of a card from the Semantic property.

For example:

  • {{Card name|Dark Magician|en}} → Dark Magician
  • {{Card name|Dark Magician|de}} → Dunkler Magier
  • {{Card name|Dark Magician|ja}} → ブラック・マジシャン
  • {{Card name|Blue-Eyes White Dragon|ja}} → 青眼の白龍ブルーアイズ・ホワイト・ドラゴン