Difference between revisions of "Template:GalleryHeader"

From Yugipedia
Jump to: navigation, search
(add some whitespace for readability, use {{Lang}} for language/region names)
(Reverting. This is not working. If a name is not available in a given language, it always displays as blank. Besides, the Spanish name for "Invader of Darkness" as exactly 23 characters; thus breaking this concept.)
 
(26 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{| class="card-galleries"
 
{| class="card-galleries"
 
|-
 
|-
! <big>{{IfSemantics|{{Cardname|{{ #if: {{{1|}}} | {{{1}}} | {{PAGENAME}} }}|{{ #ifeq: {{Cardname|{{ #if: {{{1|}}} | {{{1}}} | {{PAGENAME}} }}|{{{lang}}}}}||en|{{{lang}}}}}}}|{{PAGENAME}}}}</big><br/>''({{ #if: {{{set|}}} | {{{set}}} | {{ #switch: {{{lang}}}
+
! <span style="font-size: 120%;">{{trim|{{ #replace: {{IfSemantics|{{Card name|{{ #if: {{{1|}}} | {{{1}}} | {{ #var: $pagename }} }}|{{
| jp
+
        #ifeq: {{Card name|{{ #if: {{{1|}}} | {{{1}}} | {{ #var: $pagename }} }}|{{{lang}}}}} | <!-- nill -->
| ja
+
        | en | {{{lang}}}
| ae
+
      }}
| ch
+
      | {{PAGENAME}}
| kr = OCG
+
    }}
| #default = TCG
+
  }} | ! | &#33; }}
}}}} - {{ #switch: {{{lang}}}
+
}}</span><br />({{ #if: {{{set|}}} | {{{set}}} | ''{{rgo|{{{lang}}}}}'' }} - {{region|{{{lang}}}|after=y}})
| au | eu | na | ew = {{Lang|{{{lang}}}|after=y}}
 
| #default = {{Lang|{{{lang}}}|short2=y}}
 
}})''
 
 
|-
 
|-
 
|<noinclude>
 
|<noinclude>
|}</noinclude>
+
|}
 +
 
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 15:29, 6 December 2016


(' - )