Difference between revisions of "Template:Card"
From Unofficial Fantasica Wiki
m (testing) |
m (testing) |
||
Line 40: | Line 40: | ||
db=fantawiki | db=fantawiki | ||
|from=units | |from=units | ||
− | |where=name= | + | |where=name='{{{1}}}_mlb' |
|limit=1 | |limit=1 | ||
− | |data= | + | |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={{#external_value:name2}} |
− | |fullname={{#external_value: | + | |fullname={{#external_value:fullname2}} |
− | |rarity={{#external_value: | + | |rarity={{#external_value:rarity2}} |
− | |type={{#external_value: | + | |type={{#external_value:type2}} |
|cost={{#external_value:cost2}} | |cost={{#external_value:cost2}} | ||
− | |speed={{#external_value: | + | |speed={{#external_value:speed2}} |
− | |range={{#external_value: | + | |range={{#external_value:range2}} |
− | |ground={{formatnum:{{#external_value: | + | |ground={{formatnum:{{#external_value:land2}}}} |
− | |arena={{formatnum:{{#external_value: | + | |arena={{formatnum:{{#external_value:arena2}}}} |
− | |air={{formatnum:{{#external_value: | + | |air={{formatnum:{{#external_value:air2}}}} |
− | |sea={{formatnum:{{#external_value: | + | |sea={{formatnum:{{#external_value:sea2}}}} |
− | |total={{formatnum:{{#expr: {{#external_value: | + | |total={{formatnum:{{#expr: {{#external_value:land2|}}+{{#external_value:air2|}}+{{#external_value:sea2|}} }} }} |
− | |ground2={{formatnum:{{#external_value: | + | |ground2={{formatnum:{{#external_value:landmlb}}}} |
− | |air2={{formatnum:{{#external_value: | + | |air2={{formatnum:{{#external_value:airmlb}}}} |
− | |sea2={{formatnum:{{#external_value: | + | |sea2={{formatnum:{{#external_value:seamlb}}}} |
− | |arenalb={{formatnum:{{#external_value: | + | |arenalb={{formatnum:{{#external_value:arenamlb}}}} |
− | |total2={{formatnum:{{#expr: {{#external_value: | + | |total2={{formatnum:{{#expr: {{#external_value:landmlb|0}}+{{#external_value:airmlb|0}}+{{#external_value:seamlb|0}} }} }} |
− | |skill={{#external_value: | + | |skill={{#external_value:skill1mlb}}{{#if: {{#external_value:skill2mlb}} | , {{#external_value:skill2mlb}}}}{{#if: {{#external_value:arenaskillmlb}} | , {{#external_value:arenaskillmlb}}}} |
− | |source={{#external_value: | + | |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}}