Difference between revisions of "Template:Card"

From Unofficial Fantasica Wiki
Jump to: navigation, search
m (testing)
m (testing)
Line 40: Line 40:
 
db=fantawiki
 
db=fantawiki
 
|from=units
 
|from=units
|where=name="Uriel_10_mlb"
+
|where=name='{{{1}}}_mlb'
 
|limit=1
 
|limit=1
|data=name=`name`,fullname=`fullname`,gender=`gender`,rarity=`rarity`,type=`type`,cost2=`cost`,speed=`speed`,speednum=`speednum`,range=`range`,land=`land`,air=`air`,sea=`sea`,arena=`arena`,land2=`landlb`,air2=`airlb`,sea2=`sealb`,arenalb=`arenalb`,skill1=`skill1`,skill2=`skill2`,arenaskill=`arenaskill`,source=`source`
+
|data=name2=`name`,fullname2=`fullname`,gender2=`gender`,rarity2=`rarity`,type2=`type`,cost2=`cost`,speed2=`speed`,speednum2=`speednum`,range2=`range`,land2=`land`,air2=`air`,sea2=`sea`,arena2=`arena`,landmlb=`landlb`,airmlb=`airlb`,seamlb=`sealb`,arenamlb=`arenalb`,skill1mlb=`skill1`,skill2mlb=`skill2`,arenaskillmlb=`arenaskill`,source2=`source`
 
}}
 
}}
 
{{Infobox_Card
 
{{Infobox_Card
|name={{#external_value:name}}
+
|name={{#external_value:name2}}
|fullname={{#external_value:fullname}}
+
|fullname={{#external_value:fullname2}}
|rarity={{#external_value:rarity}}
+
|rarity={{#external_value:rarity2}}
|type={{#external_value:type}}
+
|type={{#external_value:type2}}
 
|cost={{#external_value:cost2}}
 
|cost={{#external_value:cost2}}
|speed={{#external_value:speed}}
+
|speed={{#external_value:speed2}}
|range={{#external_value:range}}
+
|range={{#external_value:range2}}
|ground={{formatnum:{{#external_value:land}}}}
+
|ground={{formatnum:{{#external_value:land2}}}}
|arena={{formatnum:{{#external_value:arena}}}}
+
|arena={{formatnum:{{#external_value:arena2}}}}
|air={{formatnum:{{#external_value:air}}}}
+
|air={{formatnum:{{#external_value:air2}}}}
|sea={{formatnum:{{#external_value:sea}}}}
+
|sea={{formatnum:{{#external_value:sea2}}}}
|total={{formatnum:{{#expr: {{#external_value:land|}}+{{#external_value:air|}}+{{#external_value:sea|}} }} }}
+
|total={{formatnum:{{#expr: {{#external_value:land2|}}+{{#external_value:air2|}}+{{#external_value:sea2|}} }} }}
|ground2={{formatnum:{{#external_value:land2}}}}
+
|ground2={{formatnum:{{#external_value:landmlb}}}}
|air2={{formatnum:{{#external_value:air2}}}}
+
|air2={{formatnum:{{#external_value:airmlb}}}}
|sea2={{formatnum:{{#external_value:sea2}}}}
+
|sea2={{formatnum:{{#external_value:seamlb}}}}
|arenalb={{formatnum:{{#external_value:arenalb}}}}
+
|arenalb={{formatnum:{{#external_value:arenamlb}}}}
|total2={{formatnum:{{#expr: {{#external_value:land2|0}}+{{#external_value:air2|0}}+{{#external_value:sea2|0}} }} }}
+
|total2={{formatnum:{{#expr: {{#external_value:landmlb|0}}+{{#external_value:airmlb|0}}+{{#external_value:seamlb|0}} }} }}
|skill={{#external_value:skill1}}{{#if: {{#external_value:skill2}} | , {{#external_value:skill2}}}}{{#if: {{#external_value:arenaskill}} | , {{#external_value:arenaskill}}}}
+
|skill={{#external_value:skill1mlb}}{{#if: {{#external_value:skill2mlb}} | , {{#external_value:skill2mlb}}}}{{#if: {{#external_value:arenaskillmlb}} | , {{#external_value:arenaskillmlb}}}}
|source={{#external_value:source}}
+
|source={{#external_value:source2}}
 
}}
 
}}
 
{{Card_artwork|{{#external_value:name}}_mlb}}{{#clear_external_data:}}
 
{{Card_artwork|{{#external_value:name}}_mlb}}{{#clear_external_data:}}

Revision as of 03:55, 14 July 2015

DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D

If you're trying to update stats for a unit, go here instead: http://www.fantasicawiki.com/units.php

Usage: {{Card|CardName}}

Personal tools
Namespaces

Variants
Actions
Menu
Game Menu
Card Lists
Trading
External Resources
Toolbox