Template:MaxCard

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
Maximum number of {{{cardname}}}s per character = '''{{{maxqty}}}'''
+
Maximum number of {{{cardname}}} per character = '''{{{maxqty}}}'''
  
 
{| class="chtable_r striped" align="left"
 
{| class="chtable_r striped" align="left"
 
  ! Build # !! Items !! Item description !! Total cards !! Total tokens !! Total tokens
 
  ! Build # !! Items !! Item description !! Total cards !! Total tokens !! Total tokens
 
  |-
 
  |-
  ! rowspan="2" align='center' | 1
+
  ! rowspan={{#expr:{{#if:{{{build1_item1|}}}|1|0}}+{{#if:{{{build1_item2|}}}|1|0}}+{{#if:{{{build1_item3|}}}|1|0}}+{{#if:{{{build1_item4|}}}|1|0}}+{{#if:{{{build1_item5|}}}|1|0}}}} align='center' | 1
 
  | {{{build1_item1_qty}}} x {{I|{{{build1_item1}}}}}
 
  | {{{build1_item1_qty}}} x {{I|{{{build1_item1}}}}}
 
  | valign='center' align='center' | Level {{#show: Items/{{{build1_item1}}} | ?Has Itemlevel}} <br /> {{#show: Items/{{{build1_item1}}} | ?Has Itemrarity}} <br /> {{#show: Items/{{{build1_item1}}} | ?Has Itemtype}}
 
  | valign='center' align='center' | Level {{#show: Items/{{{build1_item1}}} | ?Has Itemlevel}} <br /> {{#show: Items/{{{build1_item1}}} | ?Has Itemrarity}} <br /> {{#show: Items/{{{build1_item1}}} | ?Has Itemtype}}
Line 53: Line 53:
 
| PP=[[Image:TalentGoldFlat.png]][[Image:TalentGoldFlat.png]]
 
| PP=[[Image:TalentGoldFlat.png]][[Image:TalentGoldFlat.png]]
 
}}
 
}}
  | rowspan="2" align='center' | {{#switch: {{#show: Items/{{{build1_item1}}} | ?Has talent}}
+
  | rowspan={{#expr:{{#if:{{{build1_item1|}}}|1|0}}+{{#if:{{{build1_item2|}}}|1|0}}+{{#if:{{{build1_item3|}}}|1|0}}+{{#if:{{{build1_item4|}}}|1|0}}+{{#if:{{{build1_item5|}}}|1|0}}}} align='center' | {{#switch: {{#show: Items/{{{build1_item1}}} | ?Has talent}}
 
| C=[[Image:TalentNormalFlat.png]]
 
| C=[[Image:TalentNormalFlat.png]]
 
| S=[[Image:TalentBronzeFlat.png]]
 
| S=[[Image:TalentBronzeFlat.png]]

Revision as of 22:36, 29 October 2013


This is the template outline for a max card table.


      
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Tools