Difference between revisions of "Template:EDS card"
(image names) |
(Updates akin to Template:DM5 card; handle alternate password cards differently than alternate artworks, support for Tickets and Tokens, default image, display sets) |
||
Line 1: | Line 1: | ||
− | __NOEDITSECTION__{{ #if: {{ #pos: {{PAGENAME}} | ( }} | {{Italic dab|t=1}} }}{{ #if: {{NAMESPACE}} | + | __NOEDITSECTION__{{ #if: {{ #pos: {{PAGENAME}} | (EDS }} | {{Italic dab|{{ #replace: {{PAGENAME}} | (EDS | (<i>EDS</i> }}|t=1}} }}{{ #if: {{NAMESPACE}} |
| | | | ||
| [[Category:Yu-Gi-Oh! The Eternal Duelist Soul cards]] | | [[Category:Yu-Gi-Oh! The Eternal Duelist Soul cards]] | ||
Line 20: | Line 20: | ||
-->{{ #vardefine: $number | {{ #if: {{{number|}}} | {{ padleft: {{{number}}} | 3 | 0 }} }} }}<!-- | -->{{ #vardefine: $number | {{ #if: {{{number|}}} | {{ padleft: {{{number}}} | 3 | 0 }} }} }}<!-- | ||
-->{{ #vardefine: $number2 | {{ #if: {{{number2|}}} | {{ padleft: {{{number2}}} | 3 | 0 }} }} }}<!-- | -->{{ #vardefine: $number2 | {{ #if: {{{number2|}}} | {{ padleft: {{{number2}}} | 3 | 0 }} }} }}<!-- | ||
+ | |||
+ | -->{{ #vardefine: $is_alt_card | {{ #pos: {{PAGENAME}} | alternate password }} }}<!-- | ||
-->{{ #switch: {{ lc: {{{card_type|}}} }} | -->{{ #switch: {{ lc: {{{card_type|}}} }} | ||
| magic | spell = {{ #vardefine: $card_type | Spell }}{{ #vardefine: $card_type_name | Magic }} | | magic | spell = {{ #vardefine: $card_type | Spell }}{{ #vardefine: $card_type_name | Magic }} | ||
| trap = {{ #vardefine: $card_type | Trap }}{{ #vardefine: $card_type_name | Trap }} | | trap = {{ #vardefine: $card_type | Trap }}{{ #vardefine: $card_type_name | Trap }} | ||
+ | | ticket = {{ #vardefine: $card_type | Ticket }}{{ #vardefine: $card_type_name | Ticket }} | ||
| = {{ #vardefine: $monster_type | {{ #if: {{ #var: $type2 }} | {{ #var: $type2 }} | Normal }} }} | | = {{ #vardefine: $monster_type | {{ #if: {{ #var: $type2 }} | {{ #var: $type2 }} | Normal }} }} | ||
}}<!-- | }}<!-- | ||
Line 34: | Line 37: | ||
| Effect | | Effect | ||
| Fusion | | Fusion | ||
+ | | Token | ||
| Ritual = {{ #vardefine: $monster_type | {{ #var: $type2 }} }}<!-- | | Ritual = {{ #vardefine: $monster_type | {{ #var: $type2 }} }}<!-- | ||
-->{{ #vardefine: $type2_page | {{ #var: $type2 }} Monster }} | -->{{ #vardefine: $type2_page | {{ #var: $type2 }} Monster }} | ||
Line 42: | Line 46: | ||
-->{{ #vardefine: $type2_page | {{ #var: $type2 }} Monster }}<!-- | -->{{ #vardefine: $type2_page | {{ #var: $type2 }} Monster }}<!-- | ||
-->{{ #vardefine: $has_effect | 1 }} | -->{{ #vardefine: $has_effect | 1 }} | ||
− | |||
}}<!-- | }}<!-- | ||
Line 50: | Line 53: | ||
-->{{ #vardefine: $image | -->{{ #vardefine: $image | ||
− | | {{ #ifexist: File:{{Card image name|{{ #var: $url-name }}}}-EDS-NA-VG.png | + | | {{ #ifexist: File:{{Card image name|{{ #var: $url-name }}}}-EDS-NA-VG{{ #if: {{ #var: $is_alt_card }} | -alt }}.png |
− | | {{Card image name|{{ #var: $url-name }}}}-EDS-NA-VG.png | + | | {{Card image name|{{ #var: $url-name }}}}-EDS-NA-VG{{ #if: {{ #var: $is_alt_card }} | -alt }}.png |
}} | }} | ||
}}<!-- | }}<!-- | ||
Line 71: | Line 74: | ||
-->[[Card type::{{ #var: $card_type | Monster }} Card| ]]<!-- | -->[[Card type::{{ #var: $card_type | Monster }} Card| ]]<!-- | ||
-->{{ #set: Card type (short) = [[{{ #var: $card_type | Monster }} Card|{{ #var: $card_type_name | Monster }}]] }}<!-- | -->{{ #set: Card type (short) = [[{{ #var: $card_type | Monster }} Card|{{ #var: $card_type_name | Monster }}]] }}<!-- | ||
− | -->[[Monster type::{{ #var: $monster_type }}| ]]<!-- | + | -->{{ #if: {{{card_type|}}} |
+ | | | ||
+ | | [[Monster type::{{ #var: $monster_type }} Monster| ]]<!-- | ||
+ | -->{{ #set: Monster type (short) = [[{{ #var: $monster_type }} Monster|{{ #var: $monster_type }}]] }} | ||
+ | }}<!-- | ||
-->[[Attribute::{{ #var: $attribute }}| ]]<!-- | -->[[Attribute::{{ #var: $attribute }}| ]]<!-- | ||
-->[[Type::{{ #var: $type }}| ]]<!-- | -->[[Type::{{ #var: $type }}| ]]<!-- | ||
Line 92: | Line 99: | ||
| Card number = {{ #var: $number2 }} | | Card number = {{ #var: $number2 }} | ||
| Card image = {{ #var: $image2 }} | | Card image = {{ #var: $image2 }} | ||
− | |||
}} | }} | ||
}} | }} | ||
Line 102: | Line 108: | ||
-->{{Card table | -->{{Card table | ||
− | | bodyclass = {{ #if: {{{cardclass|}}} | {{{cardclass}}} | {{ lc: {{ #var: $card_type | {{ #var: $monster_type | + | | bodyclass = {{ #if: {{{cardclass|}}} |
+ | | {{{cardclass}}} | ||
+ | | {{ #switch: {{ #var: $card_type | {{ #var: $monster_type }} }} | ||
+ | | Token | Ticket | = yellow | ||
+ | | #default = {{ lc: {{ #var: $card_type | {{ #var: $monster_type }} }} }} | ||
+ | }} | ||
+ | }}-card | ||
| title = {{ #var: $name }} | | title = {{ #var: $name }} | ||
− | | image = {{ #var: $image }} | + | | image = {{ #var: $image | EDS-VideoGameEN.jpg }} |
| max_width = 240 | | max_width = 240 | ||
| below_image = {{ #if: {{ #var: $image2 }} | | below_image = {{ #if: {{ #var: $image2 }} | ||
Line 150: | Line 162: | ||
| label9 = [[Password]] | | label9 = [[Password]] | ||
− | | data9 = {{ | + | | data9 = {{{password<includeonly>|</includeonly>}}} {{ #if: {{ #var: $number2 }} | (artwork 1) }} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| data10 = {{ #if: {{{lore<includeonly>|</includeonly>}}} | | | data10 = {{ #if: {{{lore<includeonly>|</includeonly>}}} | | ||
Line 181: | Line 184: | ||
{{Card info links|{{ #var: $main | {{ #var: $pagename }} }}|medium=vg}}<!-- | {{Card info links|{{ #var: $main | {{ #var: $pagename }} }}|medium=vg}}<!-- | ||
+ | |||
+ | -->{{ #if: {{ #ask: [[Set contains::{{PAGENAME}}]] }} |   | ||
+ | ==Sets== | ||
+ | <table class="wikitable"> | ||
+ | <tr> | ||
+ | <th scope="col">Set</th>{{ #if: {{ #var: $number2 }} | ||
+ | | <th scope="col">Artwork</th> | ||
+ | }} | ||
+ | <th scope="col">Rarity</th> | ||
+ | </tr><!-- | ||
+ | -->{{ #ask: [[Set contains::{{PAGENAME}}]] | ||
+ | |?Subobject of.Page name = Page name | ||
+ | |?Subobject of.English name | ||
+ | |?Rarity | ||
+ | |?Uses artwork | ||
+ | |mainlabel = - | ||
+ | |format = plainlist | ||
+ | |template = DM5 card/set row | ||
+ | |named args = true | ||
+ | }} | ||
+ | </table> | ||
+ | }}<!-- | ||
--><includeonly>{{Card navigation}}</includeonly><!-- | --><includeonly>{{Card navigation}}</includeonly><!-- | ||
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> |
Revision as of 10:32, 18 May 2019
EDS card
Type |
[[File:{{{types}}}-TF06.png|16px|alt=]] [[{{{types}}}|{{{types}}}]] |
---|---|
ATK / DEF | {{{atk}}} / {{{def}}} |
Effect type |
|
Password | {{{password}}} |
{{{lore}}} |
- [[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]]