Difference between revisions of "Template:CMC card"
Dinoguy1000 (talk | contribs) (fix mismatched brace) |
Dinoguy1000 (talk | contribs) (I don't care about these {{autolink}} values) |
||
(45 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | <templatestyles src="Template:CMC card/styles.css" /><!-- |
− | | | + | ## Variables ## |
− | | | + | -->{{ #vardefine: $name | {{ #if: {{{name|}}} | {{{name}}} | {{ #titleparts: {{ #explode: {{PAGENAME}} | ( }} }} }} }}<!-- |
+ | -->{{ #vardefine: $pagename | {{ #explode: {{PAGENAME}} | ( }} }}<!-- | ||
+ | -->{{ #vardefine: $url-name | {{ #replace: {{ #var: $name }} | # }} }}<!-- | ||
+ | -->{{ #vardefine: $image-name | {{Card image name| {{ #var: $url-name }} }} }}<!-- | ||
− | | | + | -->{{ #vardefine: $en-image | {{PNG JPG fallback|{{ #var: $image-name }}-CapMon-EN-Manga}} }}<!-- |
+ | -->{{ #vardefine: $ja-image | {{PNG JPG fallback|{{ #var: $image-name }}-CapMon-JP-Manga}} }}<!-- | ||
+ | -->{{ #vardefine: $ja-color-image | {{PNG JPG fallback|{{ #var: $image-name }}-CapMon-JP-Manga-color}} }}<!-- | ||
+ | -->{{ #vardefine: $image | {{ #var: $en-image | {{ #var: $ja-image | {{ #var: $ja-color-image }} }} }} }}<!-- | ||
− | + | # CMC with multiple abilities have taller images | |
− | + | -->{{ #vardefine: $image_size | x{{ #ifexpr: {{ #rpos: {{{abilities|}}} | * }} > 1 | 290 | 190 }}px }}<!-- | |
− | + | -->{{ #if: {{ #pos: {{PAGENAME}} | ( }}{{{main<includeonly>|</includeonly>}}} | |
− | + | | {{ #switch: {{ lc: {{{main|}}} }} | |
− | + | | no | none | false = | |
− | + | | {{ #vardefine: $main | {{ #if: {{{main<includeonly>|</includeonly>}}} | {{{main}}} | {{ #var: $url-name }} }} }} | |
− | | | + | }} |
− | + | }}<!-- | |
− | |||
− | |||
− | |||
− | + | -->{{ #if: {{{ja_name<includeonly>|</includeonly>}}}{{ #var: $main }} | |
− | + | | {{ #vardefine: $above | |
− | + | | {{Japanese names<!-- | |
+ | -->| {{{ja_name<includeonly>|</includeonly>}}}<!-- | ||
+ | -->| {{{romaji_name<includeonly>|</includeonly>}}}<!-- | ||
+ | -->| {{{trans_name<includeonly>|</includeonly>}}}<!-- | ||
+ | -->| main = {{ #if: {{{ja_name<includeonly>|</includeonly>}}} | | {{ #var: $main }} }} | ||
+ | }} | ||
+ | }} | ||
+ | }}<!-- | ||
− | | | + | ## Properties ## |
− | | | + | -->{{IfSemantics|<!-- |
+ | -->[[English name::{{ #var: $name }}| ]]<!-- | ||
+ | -->{{ #set: English name (linked) = [[{{PAGENAME}}|{{ #var: $name }}]] }}<!-- | ||
+ | -->[[Main card page::{{ #var: $main }}| ]]<!-- | ||
+ | -->[[Card image::{{ #var: $image }}| ]]<!-- | ||
+ | -->{{Star properties|{{{level|}}}}}<!-- | ||
+ | -->[[Medium::Manga| ]]<!-- | ||
+ | -->[[Game::Capsule Monster Chess| ]] | ||
+ | }}<!-- | ||
− | | | + | -->{{ #if: {{{italic_title|}}} |
− | | | + | | {{Italic title|{{{italic_title}}}}} |
+ | | {{ #if: {{ #explode: {{PAGENAME}} | ( | 1 }} | ||
+ | | {{ #vardefine: $dabtext | {{Normalized pagename|{{ #replace: {{ #explode: {{PAGENAME}} | ( | 1 }} | ) }}}} | ||
+ | }}{{ #vardefine: $dabtext | ||
+ | | {{ #switch: {{ #var: $dabtext }} | ||
+ | | CMC | Capsule Monster Chess = ''{{ #var: $dabtext }}'' | ||
+ | | Manga CMC | Manga Capsule Monster Chess = manga ''{{ #explode: {{ #var: $dabtext }} }}'' | ||
+ | }} | ||
+ | }}{{ #if: {{ #var: $dabtext }} | {{Italic title|{{ #var: $pagename }} ({{ #var: $dabtext }})|t=1}} }} | ||
+ | }} | ||
+ | }}<!-- | ||
− | + | -->{{ #if: {{ #var: $main }} | {{Main|type=card page|"[[{{ #var: $main }}]]"|t=1}} }}<!-- | |
− | |||
− | + | -->{{{article_messages<includeonly>|</includeonly>}}}<!-- | |
− | |||
− | |||
− | | | + | -->{{Card table |
− | | | + | | bodyclass = manga-card <!-- |
+ | -->manga-cmc-card <!-- | ||
+ | -->{{ #if: {{ #pos: {{{used_by}}} | Mokuba }} | {{ #ifexpr: {{ #rpos: {{{abilities|}}} | * }} > 1 | ||
+ | | manga-cmc-card-player2<!-- Mokuba's pieces had a different background color in his Death-T battle --> | ||
+ | }} }} <!-- | ||
+ | -->{{ #if: {{{level|}}} | manga-cmc-card-lv{{{level}}} }} | ||
+ | | main = {{ #var: $main }} | ||
+ | | above = {{ #var: $above }} | ||
+ | | title = {{ #var: $name }} | ||
+ | | image_raw = {{ #if: {{{image|}}} | ||
+ | | [[File:{{{image}}}|300px|alt=]] | ||
+ | | {{ #if: {{ #var: $en-image }}{{ #var: $ja-image }}{{ #var: $ja-color-image }} | | ||
+ | <div style="white-space: nowrap;"> | ||
+ | {{ #if: {{ #var: $en-image }} | | ||
+ | <div style="display: inline-block;">[[File:{{ #var: $en-image }}|{{ #var: $image_size }}|English|alt=]]</div> | ||
+ | }}{{ #if: {{ #var: $ja-image }} | | ||
+ | <div style="display: inline-block;">[[File:{{ #var: $ja-image }}|{{ #var: $image_size }}|Japanese|alt=]]</div> | ||
+ | }}{{ #if: {{ #var: $ja-color-image }} | | ||
+ | <div style="display: inline-block;">[[File:{{ #var: $ja-color-image }}|{{ #var: $image_size }}|Japanese color|alt=]]</div> | ||
+ | }} | ||
+ | </div> | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | | label1 = Game | ||
+ | | data1 = ''[[Capsule Monster Chess]]'' | ||
+ | |||
+ | | label2 = Level | ||
+ | | data2 = {{{level<includeonly>|</includeonly>}}}{{{level_note|}}} | ||
+ | |||
+ | | label3 = Abilities | ||
+ | | class3 = plainlist | ||
+ | | data3 = {{ #if: {{{abilities<includeonly>|</includeonly>}}} | {{Value list|{{{abilities}}}|Ability}} }} | ||
+ | |||
+ | | label4 = Used by | ||
+ | | class4 = plainlist | ||
+ | | data4 = {{ #if: {{ #pos: {{{used_by}}} | * }} | ||
+ | | {{ #arraydefine: $used_by | {{{used_by}}} | * }}{{ #arrayunique: $used_by }}{{ #arrayprint: $used_by | ||
+ | | | ||
+ | | $user | ||
+ | |   | ||
+ | * [[$user|{{ #explode: $user | ( }}]] | ||
+ | }}  | ||
+ | | {{ #if: {{{used_by<includeonly>|</includeonly>}}} | ||
+ | | [[{{{used_by}}}|{{ #explode: {{{used_by}}} | ( }}]] | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | | label5 = Appearances | ||
+ | | data5 = {{ #if: {{{appears_in_dm<includeonly>|</includeonly>}}} | | ||
<div class="hlist"> | <div class="hlist"> | ||
− | + | * {{Manga card/appears| {{{appears_in_dm}}} | (manga) | DM | Duel }} | |
− | |||
</div> | </div> | ||
− | }} | + | }} |
− | }}<noinclude> | + | |
+ | | below = Manga ''[[Capsule Monster Chess]]'' pieces ([[List of Capsule Monster Chess pieces|list]] '''·''' [[Gallery of Capsule Monster Chess pieces (manga)|gallery]]) | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{Card info links|{{ #var: $main | {{PAGENAME}} }}|medium=cmc}}<!-- | ||
+ | |||
+ | -->{{In other media}}<!-- | ||
+ | |||
+ | --><includeonly>{{ #if: {{ #ask: [[Main card page::{{ #var: $main | {{PAGENAME}} }}]] }} | {{Card navigation}} }}</includeonly><!-- | ||
+ | |||
+ | -->{{Navbox | ||
+ | | title = Manga ''[[Capsule Monster Chess]]'' pieces | ||
+ | | state = expanded | ||
+ | | listclass = hlist | ||
+ | | list1 = {{ #ask: [[Medium::Manga]][[Game::Capsule Monster Chess]] | ||
+ | | ?English name (linked) = | ||
+ | | mainlabel = - | ||
+ | | format = ul | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{ #if: {{NAMESPACE}} || [[Category:Manga Capsule Monster Chess pieces]]{{ | ||
+ | #if: {{{level_note|}}} | [[Category:Cards with notes]] | ||
+ | }}{{ #if: {{ #var: $main }} | ||
+ | | {{ #if: {{ #ask: <q>[[Category:OCG cards]] OR [[Category:TCG cards]] OR [[Category:Unusable cards]]</q>[[{{ #var: $main }}]] }} || [[Category:Miscellaneous cards with no OCG/TCG counterpart]] }} | ||
+ | | [[Category:Miscellaneous cards with no OCG/TCG counterpart]] | ||
+ | }} | ||
+ | }} | ||
+ | <noinclude> | ||
− | + | {{documentation}}</noinclude> |
Latest revision as of 16:10, 2 May 2023
{{{article_messages}}}
CMC card
- Japanese
- {{{ja_name}}}
- Rōmaji
- {{{romaji_name}}}
- Translated
- {{{trans_name}}}
Game | Capsule Monster Chess |
---|---|
Level | {{{level}}} |
Abilities |
|
Used by | [[{{{used_by}}}|{{{used_by}}}]] |
Appearances |
|
- [[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
{{CMC card}}
is used to create card tables for manga Capsule Monster Chess pieces.
See {{Toei CMC card}} and {{MCBB card}} for monsters from the Toei anime and Yu-Gi-Oh! Monster Capsule: Breed and Battle.
Usage[edit]
{{CMC card | name = | ja_name = | romaji_name = | trans_name = | level = | abilities = | appears_in_dm = }}
- name: The English name of the monster. By default, this is the page name, without any bracketed text.
- ja_name: The Japanese name of the monster
- romaji_name: The Japanese name of the monster, in romaji
- level: The Level of the monster
- abilities: A bulleted list of the monster's abilities
- ability_desc: The monster's ability descriptions
- used_by: Characters who have used the monster
- appears_in_dm: A comma-separated list of numbers of the chapters the Capsule Monster appears in
Colors[edit]
- The default color scheme is light yellow with a dark yellow heading.
- The background color of the heading can change based on the value of the
level
parameter;1
: orange,2
: purple,4
: green,5
: blue. (No other Levels were shown in the manga.) - The background color of the main section changes to light blue for monsters used by Mokuba Kaiba in his second battle with Dark Yugi. Such monsters are identified by having
Mokuba
mentioned in the value for theused_by
parameter and having a list with more than one item in the value for theability
parameter.
Example[edit]
{{CMC card | ja_name = アルマザウルス | romaji_name = Aruma Zaurus | level = 5 | abilities = * Flame * Armor Attack | used_by = Mokuba Kaiba (manga) | appears_in_dm = 034, 035 }}
Armorsaurus
- Japanese
- アルマザウルス
- Rōmaji
- Aruma Zaurus
Game | Capsule Monster Chess |
---|---|
Level | 5 |
Abilities |
|
Used by | Mokuba Kaiba |
Appearances |
- [[Card Gallery:{{{main}}}|Gallery]]
- [[Card Artworks:{{{main}}}|Artworks]]
- [[Card Trivia:{{{main}}}|Trivia]]
- [[Card Appearances:{{{main}}}|Appearances]]
- [[Card Names:{{{main}}}|Names]]
- [[Card Lores:{{{main}}}|Lores]]