Difference between revisions of "Template:Infobox/Yu-Gi-Oh!/Archetype/Start"
< Template:Infobox | Yu-Gi-Oh! | Archetype
Dinoguy1000 (talk | contribs) (forgot it here too) |
Dinoguy1000 (talk | contribs) (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 | + | {| class="box info colored bordered innerbordered type-character fill-td plainlist float-right-clear" |
|- | |- | ||
− | ! colspan=2 class="mainheader" | {{ | + | ! 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|}}} | ||
− | | [[ | + | | [[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 | + | | }}{{#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:{{{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 | |
− | + | | english = English | |
− | + | | kanji = Kanji | |
− | + | | romaji = Romaji | |
− | + | | other = Other | |
− | + | | image name = | |
− | + | | image size = | |
− | + | | image caption = | |
− | + | | image = <span class="center">Image</span> | |
− | + | | ref = | |
− | |||
}} | }} | ||
{{Infobox/Yu-Gi-Oh!/Archetype/End}} | {{Infobox/Yu-Gi-Oh!/Archetype/End}} | ||
− | [[Category:Templates/Infobox| | + | [[Category:Templates/Infobox|Start]] |
− | [[Category:Templates/Infobox/Yu-Gi-Oh!| | + | [[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> |