Difference between revisions of "Template:CMC card"

From Yugipedia
Jump to: navigation, search
(Removing unneeded divs. Only make "used_by" a list if it has more than one item.)
(I don't care about these {{autolink}} values)
 
(2 intermediate revisions by 2 users not shown)
Line 56: Line 56:
 
}}<!--
 
}}<!--
  
-->{{ #if: {{ #var: $main }} | {{Main|type=card page|"[[{{ #var: $main }}]]"}} }}<!--
+
-->{{ #if: {{ #var: $main }} | {{Main|type=card page|"[[{{ #var: $main }}]]"|t=1}} }}<!--
  
 
-->{{{article_messages<includeonly>|</includeonly>}}}<!--
 
-->{{{article_messages<includeonly>|</includeonly>}}}<!--
Line 63: Line 63:
 
| bodyclass = manga-card <!--
 
| bodyclass = manga-card <!--
 
-->manga-cmc-card <!--
 
-->manga-cmc-card <!--
-->{{ #if: {{and|{{ #pos: {{{used_by}}} | Mokuba }}|{{ #ifexpr: {{ #rpos: {{{abilities|}}} | * }} > 1 | 1 }}|}}
+
-->{{ #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 -->
 
   | manga-cmc-card-player2<!-- Mokuba's pieces had a different background color in his Death-T battle -->
   }} <!--
+
   }} }} <!--
 
-->{{ #if: {{{level|}}} | manga-cmc-card-lv{{{level}}} }}
 
-->{{ #if: {{{level|}}} | manga-cmc-card-lv{{{level}}} }}
 
| main      = {{ #var: $main }}
 
| main      = {{ #var: $main }}
Line 92: Line 92:
  
 
| label3 = Abilities
 
| label3 = Abilities
| class3 = list-noicon
+
| class3 = plainlist
 
| data3  = {{ #if: {{{abilities<includeonly>|</includeonly>}}} | {{Value list|{{{abilities}}}|Ability}} }}
 
| data3  = {{ #if: {{{abilities<includeonly>|</includeonly>}}} | {{Value list|{{{abilities}}}|Ability}} }}
  
 
| label4 = Used by
 
| label4 = Used by
| class4 = list-noicon
+
| class4 = plainlist
 
| data4  = {{ #if: {{ #pos: {{{used_by}}} | * }}
 
| data4  = {{ #if: {{ #pos: {{{used_by}}} | * }}
 
   | {{ #arraydefine: $used_by | {{{used_by}}} | * }}{{ #arrayunique: $used_by }}{{ #arrayprint: $used_by
 
   | {{ #arraydefine: $used_by | {{{used_by}}} | * }}{{ #arrayunique: $used_by }}{{ #arrayprint: $used_by
Line 110: Line 110:
  
 
| label5 = Appearances
 
| label5 = Appearances
| data5  = {{ #if: {{{appears_in_dm<includeonly>|</includeonly>}}}
+
| data5  = {{ #if: {{{appears_in_dm<includeonly>|</includeonly>}}} |
  | [[Yu-Gi-Oh! (manga)|''Yu-Gi-Oh!'' (manga)]]: {{ctaama|{{{appears_in_dm}}} | type = Duel}}
+
<div class="hlist">
 +
* {{Manga card/appears| {{{appears_in_dm}}} | (manga) | DM | Duel }}
 +
</div>
 
   }}
 
   }}
  
Line 117: Line 119:
 
}}<!--
 
}}<!--
  
--><div class="hlist" style="text-align: center;">
+
-->{{Card info links|{{ #var: $main | {{PAGENAME}} }}|medium=cmc}}<!--
* {{Related page link| Card Gallery    | {{ #var: $main | {{PAGENAME}} }} | label = Gallery    }}
+
 
* {{Related page link| Card Trivia      | {{ #var: $main | {{PAGENAME}} }} | label = Trivia      }}
+
-->{{In other media}}<!--
* {{Related page link| Card Appearances | {{ #var: $main | {{PAGENAME}} }} | label = Appearances }}
 
</div><!--
 
  
 
--><includeonly>{{ #if: {{ #ask: [[Main card page::{{ #var: $main | {{PAGENAME}} }}]] }} | {{Card navigation}} }}</includeonly><!--
 
--><includeonly>{{ #if: {{ #ask: [[Main card page::{{ #var: $main | {{PAGENAME}} }}]] }} | {{Card navigation}} }}</includeonly><!--
Line 138: Line 138:
 
-->{{ #if: {{NAMESPACE}} || [[Category:Manga Capsule Monster Chess pieces]]{{
 
-->{{ #if: {{NAMESPACE}} || [[Category:Manga Capsule Monster Chess pieces]]{{
 
   #if: {{{level_note|}}} | [[Category:Cards with notes]]
 
   #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]]
 
   }}
 
   }}
 
}}
 
}}

Latest revision as of 16:10, 2 May 2023

{{{article_messages}}}

CMC card
Japanese
{{{ja_name}}}
Rōmaji
{{{romaji_name}}}
Translated
{{{trans_name}}}
Back-EN.png
Game Capsule Monster Chess
Level {{{level}}}
Abilities
  • {{{abilities}}}
Used by [[{{{used_by}}}|{{{used_by}}}]]
Appearances
  • Yu-Gi-Oh!: [[ {{{appears_in_dm}}}|{{{appears_in_dm}}}]]
  • [[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