Difference between revisions of "Template:Manga DDM card"
(We don't need different names for this class.) |
(Fix Type links and properties) |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <!-- ## Variables ## | |
+ | -->{{ #vardefine: $name | {{ #if: {{{name|}}} | {{{name}}} | {{ #titleparts: {{ #explode:{{PAGENAME}} | (}} }} }} }}<!-- | ||
+ | -->{{ #vardefine: $url-name | {{ #replace: {{ #var: $name }} | # }} }}<!-- | ||
− | + | -->{{ #vardefine: $dungeon_master | {{{dungeon_master<includeonly>|</includeonly>}}} }}<!-- | |
− | -->{{ #vardefine: $ | + | -->{{ #vardefine: $type | {{{type<includeonly>|</includeonly>}}} }}<!-- |
− | + | -->{{ #vardefine: $type-link | {{ #switch: {{ #var: $type }} | |
− | + | | Spellcaster = Magic (Type) | |
− | + | | Zombie | Undead = Invincible | |
− | + | | #default = {{ #var: $type }} | |
− | -->{{ #vardefine: $type | + | }} |
− | -->{{ #vardefine: $ | + | }}<!-- |
− | |||
− | |||
− | -->{{ #vardefine: | + | -->{{ #vardefine: $level | {{{level<includeonly>|</includeonly>}}} }}<!-- |
+ | -->{{ #vardefine: $atk | {{{atk<includeonly>|</includeonly>}}} }}<!-- | ||
+ | -->{{ #vardefine: $def | {{{def<includeonly>|</includeonly>}}} }}<!-- | ||
+ | |||
+ | -->{{ #vardefine: $image_base_name | {{Card image name|{{Normalized pagename}}}} }}<!-- | ||
+ | -->{{ #vardefine: $en-image | {{ #var: $image_base_name }}-EN-Manga-DDM.png }}<!-- | ||
+ | -->{{ #vardefine: $fr-image | {{ #var: $image_base_name }}-FR-Manga-DDM.png }}<!-- | ||
+ | -->{{ #vardefine: $de-image | {{ #var: $image_base_name }}-DE-Manga-DDM.png }}<!-- | ||
+ | -->{{ #vardefine: $it-image | {{ #var: $image_base_name }}-IT-Manga-DDM.png }}<!-- | ||
+ | -->{{ #vardefine: $es-image | {{ #var: $image_base_name }}-SP-Manga-DDM.png }}<!-- | ||
+ | -->{{ #vardefine: $ja-image | {{ #var: $image_base_name }}-JP-Manga-DDM.png }}<!-- | ||
+ | -->{{ #vardefine: $ja-color-image | {{ #var: $image_base_name }}-JP-Manga-DDM-color.png }}<!-- | ||
+ | |||
+ | ## Clear these variables if the images does not exist | ||
+ | -->{{ #ifexist: File:{{ #var: $en-image }} || {{ #vardefine: $en-image | }} }}<!-- | ||
+ | -->{{ #ifexist: File:{{ #var: $fr-image }} || {{ #vardefine: $fr-image | }} }}<!-- | ||
+ | -->{{ #ifexist: File:{{ #var: $de-image }} || {{ #vardefine: $de-image | }} }}<!-- | ||
+ | -->{{ #ifexist: File:{{ #var: $it-image }} || {{ #vardefine: $it-image | }} }}<!-- | ||
+ | -->{{ #ifexist: File:{{ #var: $es-image }} || {{ #vardefine: $es-image | }} }}<!-- | ||
+ | -->{{ #ifexist: File:{{ #var: $ja-image }} || {{ #vardefine: $ja-image | }} }}<!-- | ||
+ | -->{{ #ifexist: File:{{ #var: $ja-color-image }} || {{ #vardefine: $ja-color-image | }} }}<!-- | ||
+ | |||
+ | -->{{ #vardefine: $image | {{ #if: {{ #var: $ja-color-image }} | ||
+ | | {{ #var: $ja-color-image }} | ||
+ | | {{ #if: {{ #var: $en-image }} | ||
+ | | {{ #var: $en-image }} | ||
+ | | {{ #if: {{ #var: $ja-image }} | ||
+ | | {{ #var: $ja-image }} | ||
+ | | DDD packs.png | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }}<!-- | ||
-->{{ #vardefine: $main | -->{{ #vardefine: $main | ||
Line 36: | Line 68: | ||
## Properties ## | ## Properties ## | ||
-->[[English name::{{ #var: $name }}| ]]<!-- | -->[[English name::{{ #var: $name }}| ]]<!-- | ||
− | --> | + | -->{{ #set: English name (linked) = [[{{PAGENAME}}|{{ #var: $name }}]] }}<!-- |
-->[[Card image::{{{image|}}}| ]]<!-- | -->[[Card image::{{{image|}}}| ]]<!-- | ||
− | -->[[Type::{{ #var: $type }}| ]]<!-- | + | -->[[Type::{{ #var: $type-link }}| ]]<!-- |
− | --> | + | -->{{ #set: Lore = {{{lore1|}}}{{ #if: {{{lore2|}}} | {{ #if: {{{lore1|}}} | <br /> }}{{{lore2}}} }}{{ #if: {{{lore3|}}} | {{ #if: {{{lore1|}}}{{{lore2|}}} | <br /> }}{{{lore3}}} }} }}<!-- |
-->{{ #iferror: {{ #expr: {{ #var: $level }} }} || [[Level::{{ #var: $level }}| ]] }}<!-- | -->{{ #iferror: {{ #expr: {{ #var: $level }} }} || [[Level::{{ #var: $level }}| ]] }}<!-- | ||
-->{{ #if: {{ #var: $atk }}{{ #var: $def }} | {{ATK DEF properties|{{ #var: $atk }}|{{ #var: $def }}}} }}<!-- | -->{{ #if: {{ #var: $atk }}{{ #var: $def }} | {{ATK DEF properties|{{ #var: $atk }}|{{ #var: $def }}}} }}<!-- | ||
− | |||
− | |||
− | |||
-->{{ #if: {{ #var: $main }} | -->{{ #if: {{ #var: $main }} | ||
− | | {{Main|type=card page|"[[Main card page::{{ #var: $main }}]] | + | | {{Main|type=card page|""{{ #var: $main }}""|t=1}}[[Main card page::{{ #var: $main }}| ]] |
}}<!-- | }}<!-- | ||
− | + | -->{{Card table | |
− | + | | main = {{ #var: $main }} | |
− | + | | bodyclass = ddm-card {{ #if: {{{dungeon_master|}}} | ddm-diemaster-card | {{ #if: {{ #var: $type }} | ddm-{{ lc: {{ #var: $type }} }}-card }} }} plainlist {{{bodyclass|}}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | | title = {{ #var: $name }} | |
− | + | | above = {{ #var: $above }} | |
− | + | | image = {{ #var: $image }} | |
− | + | | below_image = <includeonly><div class="hlist image-switcher"> | |
+ | {{ #if: {{ #var: $ja-color-image }} | | ||
+ | * {{Image dimensions|{{ #var: $ja-color-image}}|2=<span title="Japanese color">ja color</span>}} | ||
+ | }}{{ #if: {{ #var: $en-image }} | | ||
+ | * {{Image dimensions|{{ #var: $en-image}}|2=<span title="English">en</span>}} | ||
+ | }}{{ #if: {{ #var: $fr-image }} | | ||
+ | * {{Image dimensions|{{ #var: $fr-image}}|2=<span title="French">fr</span>}} | ||
+ | }}{{ #if: {{ #var: $de-image }} | | ||
+ | * {{Image dimensions|{{ #var: $de-image}}|2=<span title="German">de</span>}} | ||
+ | }}{{ #if: {{ #var: $it-image }} | | ||
+ | * {{Image dimensions|{{ #var: $it-image}}|2=<span title="Italian">it</span>}} | ||
+ | }}{{ #if: {{ #var: $es-image }} | | ||
+ | * {{Image dimensions|{{ #var: $es-image}}|2=<span title="Spanish">es</span>}} | ||
+ | }}{{ #if: {{ #var: $ja-image }} | | ||
+ | * {{Image dimensions|{{ #var: $ja-image}}|2=<span title="Japanese">ja</span>}} | ||
+ | }} | ||
+ | </div></includeonly> | ||
− | + | | label1 = Type | |
− | + | | data1 = {{ #if: {{{dungeon_master|}}} | |
− | + | | [[Monster Lord|Dungeon Master]] | |
− | + | | [[{{ #var: $type-link }}|{{ #var: $type }}]] | |
− | + | }} | |
− | + | | label2 = Level | |
− | + | | data2 = {{ #var: $level }} | |
− | + | | label3 = [[ATK]] / [[DEF]] | |
− | + | | data3 = {{ #if: {{ #var: $atk }}{{ #var: $def }} | |
− | + | | {{ #var: $atk }} / {{ #var: $def }}{{{atk-def_note|}}} | |
− | + | }} | |
− | + | | data4 = {{ #if: {{{cost1|}}}{{{cost2|}}}{{{cost3|}}}{{{lore1|}}}{{{lore2|}}}{{{lore3<includeonly>|</includeonly>}}} | |
− | + | | | |
− | |||
<div class="lore"> | <div class="lore"> | ||
<!-- | <!-- | ||
− | + | -->{{Manga DDM card/lore|{{{cost1|}}}|{{{lore1<includeonly>|</includeonly>}}}|{{{lore1_note|}}}}}<!-- | |
− | + | -->{{Manga DDM card/lore|{{{cost2|}}}|{{{lore2<includeonly>|</includeonly>}}}|{{{lore2_note|}}}}}<!-- | |
− | + | -->{{Manga DDM card/lore|{{{cost3|}}}|{{{lore3<includeonly>|</includeonly>}}}|{{{lore3_note|}}}}} | |
</div> | </div> | ||
− | + | }} | |
− | + | | data5 = {{ #if: {{{ja_lore1|}}}{{{ja_lore2|}}}{{{ja_lore3<includeonly>|</includeonly>}}} | |
− | + | | | |
− | <div | + | <div class="lore" lang="ja"> |
− | + | <!-- | |
− | {{ | + | -->{{Manga DDM card/lore|{{{cost1|}}}|{{{ja_lore1<includeonly>|</includeonly>}}}}}<!-- |
+ | -->{{Manga DDM card/lore|{{{cost2|}}}|{{{ja_lore2<includeonly>|</includeonly>}}}}}<!-- | ||
+ | -->{{Manga DDM card/lore|{{{cost3|}}}|{{{ja_lore3<includeonly>|</includeonly>}}}}} | ||
</div> | </div> | ||
− | + | }} | |
− | | | + | | label6 = Appearances |
− | + | | data6 = {{ #if: {{{appearances<includeonly>|</includeonly>}}} | | |
+ | <div class="hlist"> | ||
+ | * {{Manga card/appears| {{{appearances}}} | (manga) | DM | Duel }} | ||
+ | </div> | ||
}} | }} | ||
+ | |||
+ | | below = [[List of manga Dungeon Dice Monsters pieces|Manga ''Dungeon Dice Monsters'' pieces]] ([[Gallery of manga Dungeon Dice Monsters pieces|gallery]]) | ||
}}<!-- | }}<!-- | ||
− | + | -->{{Card info links|{{ #var: $main | {{PAGENAME}} }}|medium=manga DDM}}<!-- | |
− | + | ||
− | + | -->{{In other media}}<!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}<!-- | ||
--><includeonly>{{Card navigation}}</includeonly><!-- | --><includeonly>{{Card navigation}}</includeonly><!-- | ||
− | -->[[Medium::Manga Dungeon Dice Monsters| ]][[Game::Dungeon Dice Monsters| ]]{{ #if: {{NAMESPACE}} || [[Category:Manga Dungeon Dice Monsters pieces]] }}<noinclude> | + | -->[[Medium::Manga Dungeon Dice Monsters| ]]<!-- |
+ | -->[[Game::Dungeon Dice Monsters| ]]<!-- | ||
+ | |||
+ | # $debut_date is defined in {{ctaama}} | ||
+ | -->{{ #ifeq: {{ #var: $debut_date }} | unknown || [[Debut date::{{ #var: $debut_date }}| ]] }}<!-- | ||
+ | |||
+ | -->{{ #if: {{NAMESPACE}} || [[Category:Manga Dungeon Dice Monsters pieces]] }}<!-- | ||
+ | |||
+ | -->{{ #if: {{NAMESPACE}} || {{ #if: {{ #var: $main }} | ||
+ | | {{ #if: {{ #ask: <q>[[Category:OCG cards]] OR [[Category:TCG cards]] OR [[Category:Unusable cards]]</q>[[{{ #var: $main }}]] }} || [[Category:Manga cards with no OCG/TCG counterpart]] }} | ||
+ | | [[Category:Manga cards with no OCG/TCG counterpart]] | ||
+ | }} | ||
+ | }}<noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 22:53, 19 April 2024
Manga DDM card
- Japanese
- {{{ja_name}}}
- Rōmaji
- {{{romaji_name}}}
- Translated
- {{{trans_name}}}
- [[Card Gallery:{{{main}}}|Gallery]]
- [[Card Artworks:{{{main}}}|Artworks]]
- [[Card Trivia:{{{main}}}|Trivia]]
- [[Card Appearances:{{{main}}}|Appearances]]
- [[Card Names:{{{main}}}|Names]]
- [[Card Lores:{{{main}}}|Lores]]
In other media
{{Manga DDM card}}
is used to create card tables for Dungeon Dice Monsters pieces from the manga.
Usage[edit]
{{Manga DDM card | name = | ja_name = | romaji_name = | trans_name = | image_width = | type = | level = | atk = | def = | cost1 = | lore1 = | ja_lore1 = | cost2 = | lore2 = | ja_lore2 = | cost3 = | lore3 = | ja_lore3 = | appearances = }}
- main: Page name of the monster or item's real-world card counterpart
- ja_name: The Japanese name, if different than the main card page
- romaji_name: The Japanese name, in romaji, if the Japanese name is different than the main card page
- trans_name: The Japanese name, translated to English
- image_width: The maximum image width in px to use for the images
- dungeon_master: Set to "true", if the article is for a Dungeon Master.
- type: The Type of the monster
- level: The Level of the monster
- atk: The monster's ATK
- def: The monster's DEF
- cost1: A comma separated list of the crests used for the first effect
- lore1: The monster's first effect
- ja_lore1: The monster's first effect in Japanese
- cost2, lore2, ja_lore2, cost3, lore3, ja_lore3: Used for second and third effect
- appearances: A comma-separated list of numbers of Yu-Gi-Oh! chapters the monster or item appears in
Images will be added automatically, if they are named as follows: CardName-LN-Manga-DDM(-colour).png
- Replace CardName with the monster or item's name without spaces or special characters
- Replace LN with the two letter code for the language.
- -color is optional. It is appended for images from the color manga.
Example[edit]
{{Manga DDM card | ja_name = {{Ruby|装|そう}}{{Ruby|甲|こう}}{{Ruby|魔|ま}}{{Ruby|導|どう}}{{Ruby|士|し}}パズー | romaji_name = Sōkō Madōshi Pazū | type = Warrior | level = ??? | atk = 0 | def = 700 | cost1 = Magic, Magic, Magic | lore1 = Becomes the [[Monster Lord|Dungeon Master]]'s shield ([[DEF]] becomes 2100) | ja_lore1 = | cost2 = Attack, Attack, Magic | lore2 = Becomes the [[Monster Lord|Dungeon Master]]'s sword ([[ATK]] becomes 2500) | ja_lore2 = | appearances = 142, 143 }}
Armor Wizard Pazoo
- Japanese
装 甲 魔 導 士 パズー- Base
- 装甲魔導士パズー
- Kana
- そうこうまどうしパズー
- Rōmaji
- Sōkō Madōshi Pazū
Type | Warrior |
---|---|
Level | ??? |
ATK / DEF | 0 / 700 |
| |
Appearances |