Difference between revisions of "Template:Card"

From Unofficial Fantasica Wiki
Jump to: navigation, search
m (testing)
Line 3: Line 3:
  
 
If you're trying to update stats for a unit, go here instead: http://www.fantasicawiki.com/units.php
 
If you're trying to update stats for a unit, go here instead: http://www.fantasicawiki.com/units.php
 
 
  
 
Usage: <nowiki>{{Card|CardName}}</nowiki></noinclude><includeonly>{{#get_db_data:
 
Usage: <nowiki>{{Card|CardName}}</nowiki></noinclude><includeonly>{{#get_db_data:
Line 13: Line 11:
 
|data=name=`name`,fullname=`fullname`,gender=`gender`,rarity=`rarity`,type=`type`,cost=`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=name=`name`,fullname=`fullname`,gender=`gender`,rarity=`rarity`,type=`type`,cost=`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`
 
}}
 
}}
 +
{{#ifexpr: {{#external_value:rarity}}<10 |
 
{{Infobox_Card
 
{{Infobox_Card
 
|name={{#external_value:name}}
 
|name={{#external_value:name}}
Line 34: Line 33:
 
|source={{#external_value:source}}
 
|source={{#external_value:source}}
 
}}
 
}}
{{Card_artwork|{{#external_value:name}}}}</includeonly>
+
{{Card_artwork|{{#external_value:name}}}} |
 +
<tabber>
 +
10 Unit =
 +
{{Infobox_Card
 +
|name={{#external_value:name}}
 +
|fullname={{#external_value:fullname}}
 +
|rarity={{#external_value:rarity}}
 +
|type={{#external_value:type}}
 +
|cost={{#external_value:cost}}
 +
|speed={{#external_value:speed}}
 +
|range={{#external_value:range}}
 +
|ground={{formatnum:{{#external_value:land}}}}
 +
|arena={{formatnum:{{#external_value:arena}}}}
 +
|air={{formatnum:{{#external_value:air}}}}
 +
|sea={{formatnum:{{#external_value:sea}}}}
 +
|total={{formatnum:{{#expr: {{#external_value:land|}}+{{#external_value:air|}}+{{#external_value:sea|}} }} }}
 +
|ground2={{formatnum:{{#external_value:land2}}}}
 +
|air2={{formatnum:{{#external_value:air2}}}}
 +
|sea2={{formatnum:{{#external_value:sea2}}}}
 +
|arenalb={{formatnum:{{#external_value:arenalb}}}}
 +
|total2={{formatnum:{{#expr: {{#external_value:land2|0}}+{{#external_value:air2|0}}+{{#external_value:sea2|0}} }} }}
 +
|skill={{#external_value:skill1}}{{#if: {{#external_value:skill2}} | , {{#external_value:skill2}}}}{{#if: {{#external_value:arenaskill}} | , {{#external_value:arenaskill}}}}
 +
|source={{#external_value:source}}
 +
}}
 +
{{Card_artwork|{{#external_value:name}}}}{{#clear_external_data:}}
 +
 
 +
|-|
 +
10 Empowered =
 +
{{#get_db_data:
 +
db=fantawiki
 +
|from=units
 +
|where=name='{{{1}}}_mlb'
 +
|limit=1
 +
|data=name=`name`,fullname=`fullname`,gender=`gender`,rarity=`rarity`,type=`type`,cost=`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`
 +
}}
 +
{{Infobox_Card
 +
|name={{#external_value:name}}
 +
|fullname={{#external_value:fullname}}
 +
|rarity={{#external_value:rarity}}
 +
|type={{#external_value:type}}
 +
|cost={{#external_value:cost}}
 +
|speed={{#external_value:speed}}
 +
|range={{#external_value:range}}
 +
|ground={{formatnum:{{#external_value:land}}}}
 +
|arena={{formatnum:{{#external_value:arena}}}}
 +
|air={{formatnum:{{#external_value:air}}}}
 +
|sea={{formatnum:{{#external_value:sea}}}}
 +
|total={{formatnum:{{#expr: {{#external_value:land|}}+{{#external_value:air|}}+{{#external_value:sea|}} }} }}
 +
|ground2={{formatnum:{{#external_value:land2}}}}
 +
|air2={{formatnum:{{#external_value:air2}}}}
 +
|sea2={{formatnum:{{#external_value:sea2}}}}
 +
|arenalb={{formatnum:{{#external_value:arenalb}}}}
 +
|total2={{formatnum:{{#expr: {{#external_value:land2|0}}+{{#external_value:air2|0}}+{{#external_value:sea2|0}} }} }}
 +
|skill={{#external_value:skill1}}{{#if: {{#external_value:skill2}} | , {{#external_value:skill2}}}}{{#if: {{#external_value:arenaskill}} | , {{#external_value:arenaskill}}}}
 +
|source={{#external_value:source}}
 +
}}
 +
{{Card_artwork|{{#external_value:name}}}}
 +
}}
 +
</includeonly>

Revision as of 02:45, 8 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
Google AdSense