Difference between revisions of "Template:Name"

From Yugipedia
Jump to: navigation, search
(try a fix if the given language name isn't available)
(actually, that shouldn't happen by default; it needs to be explicitly opt-in, so rv for now and I'll think on it maybe)
Line 1: Line 1:
<includeonly>{{ #vardefine: $template-card-name | {{ #show: {{{1|}}} |?{{ #switch: {{ln|{{{2}}}}}
+
<includeonly>{{ #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 = {{ #ifeq: {{ lc: {{{2}}} }} | alt
+
  | #default = {{ #ifeq: {{ lc: {{{2}}} }} | alt
      | English alternate names
+
    | English alternate names
      | English name
+
    | English name
      }}
 
 
     }}
 
     }}
 
   }}
 
   }}
}}{{ #var: $template-card-name | {{ #show: {{{1|}}} |?English name }} }}</includeonly><noinclude>It generates the name of a card from the Semantic property.
+
}}</includeonly><noinclude>It generates the name of a card from the Semantic property.
  
 
For example:
 
For example:

Revision as of 05:23, 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}} → 青眼の白龍ブルーアイズ・ホワイト・ドラゴン