Difference between revisions of "Template:Name"

From Yugipedia
Jump to: navigation, search
(these fallbacks aren't needed since this variable will always be defined now)
(clear the SMW::Off/SMW::On properties in the output)
Line 1: Line 1:
{{ #ask: [[{{ #vardefineecho: $card_name-name | {{ PAGENAME: {{{1|}}} }} }}]]
+
{{ #explode: {{ #explode: {{ #ask: [[{{ #vardefineecho: $card_name-name | {{ PAGENAME: {{{1|}}} }} }}]]
 
|?{{ #switch: {{ln|{{{2}}}}}
 
|?{{ #switch: {{ln|{{{2}}}}}
 
   | ja = {{ #if: {{ #show: {{ #var: $card_name-name }} |?Ruby text }} | Ruby text | Japanese name }}
 
   | ja = {{ #if: {{ #show: {{ #var: $card_name-name }} |?Ruby text }} | Ruby text | Japanese name }}
Line 18: Line 18:
 
|sort=modification date
 
|sort=modification date
 
|order=desc
 
|order=desc
}}<noinclude>It generates the name of a card from the Semantic property.
+
}} | ]] | 1 }} | {{!((}} }}<noinclude>It generates the name of a card from the Semantic property.
  
 
For example:
 
For example:

Revision as of 12:33, 9 March 2016

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

For example:

  • {{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