Difference between revisions of "Template:Infobox/Yu-Gi-Oh!/Archetype/Start"

From Yugipedia
Jump to: navigation, search
(forgot it here too)
(don't stretch images when their native width is under 300 px and no size is passed in)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="box info colored bordered innerbordered type-character fill-td list-noicon {{#switch:{{{float|}}}|left=float-left-clear|none=|right|float-right-clear}}"
+
{| class="box info colored bordered innerbordered type-character fill-td plainlist float-right-clear"
 
|-
 
|-
! colspan=2 class="mainheader" | {{var|{{{name|}}}|{{PAGENAME}}}}{{{ref|}}}{{
+
! colspan=2 class="mainheader" | {{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}{{{ref|}}}{{
 
#if:{{{image name|}}}{{{image|}}}|<nowiki/>
 
#if:{{{image name|}}}{{{image|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
{{!}} colspan=2 class="imagecell" {{!}}
 
{{!}} colspan=2 class="imagecell" {{!}}
 
{{#if:{{{image name|}}}
 
{{#if:{{{image name|}}}
| [[Image:{{{image name|}}}|{{var|{{{image size|}}}|300px}}|{{var|{{{image caption|}}}|{{var|{{{name|}}}|{{PAGENAME}}}}}}]]
+
| [[File:{{{image name}}}|{{ #if: {{{image size|}}} | {{{image size}}} | {{ #ifexpr: {{ #vardefineecho: $iyas-image_size | {{ #imgw: {{{image name}}} }} }} < 300 | {{ #var: $iyas-image_size }}px | 300px }} }}|{{ #if: {{{image caption|}}} | {{{image caption}}} | {{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} }}]]{{ #if: {{{image caption|}}} | <br />{{{image caption}}} }}
 
| {{#if:{{{image|}}}|{{{image|}}}| }}
 
| {{#if:{{{image|}}}|{{{image|}}}| }}
 
}}
 
}}
| }}{{#if:{{{english|}}}{{{kanji|}}}{{{romaji|}}}{{{romanji|}}}{{{other|}}}|<nowiki/>
+
| }}{{#if:{{{english|}}}{{{kanji|}}}{{{romaji|}}}{{{other|}}}|<nowiki/>
 
{{!}}-
 
{{!}}-
 
{{!}} colspan=2 class="mainheader lightheader" {{!}}
 
{{!}} colspan=2 class="mainheader lightheader" {{!}}
Line 15: Line 15:
 
<span class="title english">{{{english|}}}</span>
 
<span class="title english">{{{english|}}}</span>
 
| }}{{#if:{{{kanji|}}}|
 
| }}{{#if:{{{kanji|}}}|
<span class="title kanji">{{{kanji|}}}</span>
+
<span class="title kanji" lang="ja">{{{kanji|}}}</span>
 
| }}{{#if:{{{romaji|}}}|
 
| }}{{#if:{{{romaji|}}}|
 
<span class="title romaji">{{{romaji|}}}</span>
 
<span class="title romaji">{{{romaji|}}}</span>
| }}{{#if:{{{romanji|}}}|
 
<span class="title romanji">{{{romanji|}}}</span>
 
 
| }}{{#if:{{{other|}}}|
 
| }}{{#if:{{{other|}}}|
 
<span class="title other">{{{other|}}}</span>
 
<span class="title other">{{{other|}}}</span>
Line 28: Line 26:
 
==Example==
 
==Example==
 
{{Infobox/Yu-Gi-Oh!/Archetype/Start
 
{{Infobox/Yu-Gi-Oh!/Archetype/Start
| name                = Name
+
| name                = Name
| english              = English
+
| english              = English
| kanji                = Kanji
+
| kanji                = Kanji
| romanji              = Romanji
+
| romaji              = Romaji
| other                = Other
+
| other                = Other
| image name          =  
+
| image name          =  
| image size          =  
+
| image size          =  
| image caption        =  
+
| image caption        =  
| image                = <span class="center">Image</span>
+
| image                = <span class="center">Image</span>
| float                = none
+
| ref                  =  
| ref                  =  
 
 
}}
 
}}
 
{{Infobox/Yu-Gi-Oh!/Archetype/End}}
 
{{Infobox/Yu-Gi-Oh!/Archetype/End}}
  
[[Category:Templates/Infobox|{{SUBPAGENAME}}]]
+
[[Category:Templates/Infobox|Start]]
[[Category:Templates/Infobox/Yu-Gi-Oh!|{{SUBPAGENAME}}]]
+
[[Category:Templates/Infobox/Yu-Gi-Oh!|Start]]
 
[[Category:Templates/Infobox/Yu-Gi-Oh!/Archetype| 1]]</noinclude>
 
[[Category:Templates/Infobox/Yu-Gi-Oh!/Archetype| 1]]</noinclude>

Latest revision as of 14:40, 2 October 2023

Infobox/Yu-Gi-Oh!/Archetype/Start

Example[edit]

Name

Image

EnglishKanjiRomajiOther