Difference between revisions of "Template:DM7 card"
(Added support for alternate artworks, which are treated as separate cards. Added "cardclass" property for appropriately colouring the Egyptian Gods.) |
(fix main image, only show image switcher when there is more than one image) |
||
Line 73: | Line 73: | ||
}}<!-- | }}<!-- | ||
− | -->{{ #vardefine: $image | {{ #var: $ | + | -->{{ #arraydefine: images | |
+ | * {{ #var: $en-image }} | ||
+ | * {{ #var: $fr-image }} | ||
+ | * {{ #var: $de-image }} | ||
+ | * {{ #var: $it-image }} | ||
+ | * {{ #var: $es-image }} | ||
+ | * {{ #var: $ja-image }} | ||
+ | |* | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{ #arrayunique: images }}<!-- | ||
+ | |||
+ | -->{{ #vardefine: $image | {{ #var: $en-image | {{ #var: $ja-image | TSC-VideoGameEN.jpg }} }} }}<!-- | ||
-->{{ #if: {{{ja_name<includeonly>|</includeonly>}}}{{ #var: $main }} | -->{{ #if: {{{ja_name<includeonly>|</includeonly>}}}{{ #var: $main }} | ||
Line 144: | Line 156: | ||
| image = {{ #var: $image }} | | image = {{ #var: $image }} | ||
| max_width = 240 | | max_width = 240 | ||
− | | below_image = <includeonly><div class="hlist image-switcher"> | + | | below_image = <includeonly>{{ #if: {{ #arrayindex: images | 1 }} | |
+ | <div class="hlist image-switcher"> | ||
{{ #if: {{ #var: $en-image }} | | {{ #if: {{ #var: $en-image }} | | ||
* {{Image dimensions|{{ #var: $en-image}}|2=<span title="English">en</span>}} | * {{Image dimensions|{{ #var: $en-image}}|2=<span title="English">en</span>}} | ||
Line 158: | Line 171: | ||
* {{Image dimensions|{{ #var: $ja-image}}|2=<span title="Japanese">ja</span>}} | * {{Image dimensions|{{ #var: $ja-image}}|2=<span title="Japanese">ja</span>}} | ||
}} | }} | ||
− | </div></includeonly> | + | </div> |
+ | }}</includeonly> | ||
| label1 = [[Card type]] | | label1 = [[Card type]] |
Revision as of 19:43, 5 April 2019
DM7 card
- Japanese
- {{{ja_name}}}
- Rōmaji
- {{{romaji_name}}}
- Translated
- {{{trans_name}}}
- [[Card Gallery:{{{main}}}|Gallery]]
- [[Card Artworks:{{{main}}}|Artworks]]
- [[Card Tips:{{{main}}}|Tips]]
- [[Card Trivia:{{{main}}}|Trivia]]
- [[Card Appearances:{{{main}}}|Appearances]]
- [[Card Names:{{{main}}}|Names]]
- [[Card Lores:{{{main}}}|Lores]]
Other languages
Name | Lore | |
---|---|---|
French | {{{fr_name}}} | {{{fr_lore}}} |
German | {{{de_name}}} | {{{de_lore}}} |
Italian | {{{it_name}}} | {{{it_lore}}} |
Spanish | {{{es_name}}} | {{{es_lore}}} |
Japanese | {{{ja_name}}} | {{{ja_lore}}} |
Japanese translated | {{{trans_name}}} | {{{ja_trans_lore}}} |