Difference between revisions of "Template:Template sandbox"
From Unofficial Fantasica Wiki
Line 2: | Line 2: | ||
DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D | DO NOT EDIT THIS TEMPLATE UNLESS YOU KNOW WHAT YOU ARE DOING! :D | ||
− | If you're trying to | + | If you're trying to update stats for a unit, go here instead: http://www.fantasicawiki.com/units.php |
− | www.fantasicawiki.com/ | + | |
− | Usage: <nowiki>{{ | + | |
+ | Usage: <nowiki>{{Team|CardName|Ascension}}</nowiki></noinclude><includeonly>{{#get_db_data: | ||
db=fantawiki | db=fantawiki | ||
|from=units | |from=units | ||
|where=name='{{{1}}}' | |where=name='{{{1}}}' | ||
|limit=1 | |limit=1 | ||
− | |data=name=`name`,rarity=`rarity` | + | |data=name=u1.`name`,fullname=u1.`fullname`,gender=u1.`gender`,rarity=u1.`rarity`,type=u1.`type`,cost=u1.`cost`,speed=u1.`speed`,speednum=u1.`speednum`,range=u1.`range`,land=u1.`land`,air=u1.`air`,sea=u1.`sea`,arena=u1.`arena`,land2=u1.`landlb`,air2=u1.`airlb`,sea2=u1.`sealb`,arenalb=u1.`arenalb`,skill1=u1.`skill1`,skill2=u1.`skill2`,arenaskill=u1.`arenaskill`,source=u1.`source`,evo=u1.`evo`,maxhp=u1.`maxhp`,mlbhp=u1.`mlbhp`,aschp=u1.`aschp`,ascland=u1.`ascland`,ascair=u1.`ascair`,ascsea=u1.`ascsea`,ascrng=u1.`ascrng`,asccost=u1.`asccost`,ascspd=u1.`ascspd`,namemlb=u2.`name`,fullnamemlb=u2.`fullname`,gendermlb=u2.`gender`,raritymlb=u2.`rarity`,typemlb=u2.`type`,costmlb=u2.`cost`,speedmlb=u2.`speed`,speednummlb=u2.`speednum`,rangemlb=u2.`range`,landmlb=u2.`land`,airmlb=u2.`air`,seamlb=u2.`sea`,arenamlb=u2.`arena`,land2mlb=u2.`landlb`,air2mlb=u2.`airlb`,sea2mlb=u2.`sealb`,arenalbmlb=u2.`arenalb`,skill1mlb=u2.`skill1`,skill2mlb=u2.`skill2`,arenaskillmlb=u2.`arenaskill`,sourcemlb=u2.`source`,evomlb=u2.`evo`,maxhpmlb=u2.`maxhp`,mlbhpmlb=u2.`mlbhp`,aschpmlb=u2.`aschp`,asclandmlb=u2.`ascland`,ascairmlb=u2.`ascair`,ascseamlb=u2.`ascsea`,ascrngmlb=u2.`ascrng`,asccostmlb=u2.`asccost`,ascspdmlb=u1.`ascspd` |
− | + | }} {{#ifexpr: {{#external_value:rarity}}=10 or {{#external_value:rarity}}=11 | | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
{{!}}- | {{!}}- | ||
− | {{!}} style=" | + | {{!!}} {{Icon|{{{1}}}_mlb}}}}<br/>[[{{#external_value:name}}]] |
− | {{!}}} | }} }} }} }} }} }} }}{{#clear_external_data:}}</includeonly> | + | {{!!}} {{#external_value:rarity}} |
+ | {{!!}} {{#external_value:type}} | ||
+ | {{!!}} {{{2}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#ifexpr: {{#external_value:costmlb}}=30 or {{#external_value:costmlb}}=40 | {{#expr:{{#external_value:costmlb}}-({{{2}}}*2)}} | {{#expr:{{#external_value:costmlb}}-({{{2}}}*1)}}}} </span> | {{#external_value:costmlb}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#external_value:speedmlb}}+ </span>| {{#external_value:speedmlb}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#expr:{{#external_value:rangemlb}}+({{{2}}}*5)}} </span> | {{#external_value:rangemlb}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:land2mlb}}+({{{2}}}/20*{{#external_value:land2mlb}})}}}} </span> | {{formatnum:{{#external_value:land2mlb}}}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:air2mlb}}+({{{2}}}/20*{{#external_value:air2mlb}})}}}} </span> | {{formatnum:{{#external_value:air2mlb}}}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:sea2mlb}}+({{{2}}}/20*{{#external_value:sea2mlb}})}}}} </span> | {{formatnum:{{#external_value:sea2mlb}}}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:mlbhpmlb}}+({{{2}}}/10*{{#external_value:mlbhpmlb}})}}}} </span> | {{formatnum:{{#external_value:mlbhpmlb}}}}}} | ||
+ | {{!!}} {{#external_value:skill1mlb}}{{#if: {{#external_value:skill2mlb}} | , {{#external_value:skill2mlb}}}}{{#if: {{#external_value:arenaskillmlb}} | , {{#external_value:arenaskillmlb}}}} | {{!}}- | ||
+ | {{!!}} {{Icon|{{{1}}}_mlb}}}}<br/>[[{{#external_value:name}}]] | ||
+ | {{!!}} {{#external_value:rarity}} | ||
+ | {{!!}} {{#external_value:type}} | ||
+ | {{!!}} {{{2}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#ifexpr: {{#external_value:costmlb}}=30 or {{#external_value:costmlb}}=40 | {{#expr:{{#external_value:costmlb}}-({{{2}}}*2)}} | {{#expr:{{#external_value:costmlb}}-({{{2}}}*1)}}}} </span> | {{#external_value:costmlb}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#external_value:speedmlb}}+ </span>| {{#external_value:speedmlb}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{#expr:{{#external_value:rangemlb}}+({{{2}}}*5)}} </span> | {{#external_value:rangemlb}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:land2mlb}}+({{{2}}}/20*{{#external_value:land2mlb}})}}}} </span> | {{formatnum:{{#external_value:land2mlb}}}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:air2mlb}}+({{{2}}}/20*{{#external_value:air2mlb}})}}}} </span> | {{formatnum:{{#external_value:air2mlb}}}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:sea2mlb}}+({{{2}}}/20*{{#external_value:sea2mlb}})}}}} </span> | {{formatnum:{{#external_value:sea2mlb}}}}}} | ||
+ | {{!!}} {{#ifexpr: {{{2}}}>0 | <span style="font-color:red"> {{formatnum: {{#expr:{{#external_value:mlbhpmlb}}+({{{2}}}/10*{{#external_value:mlbhpmlb}})}}}} </span> | {{formatnum:{{#external_value:mlbhpmlb}}}}}} | ||
+ | {{!!}} {{#external_value:skill1mlb}}{{#if: {{#external_value:skill2mlb}} | , {{#external_value:skill2mlb}}}}{{#if: {{#external_value:arenaskillmlb}} | , {{#external_value:arenaskillmlb}}}}{{#clear_external_data:}}</includeonly> |
Revision as of 01:37, 14 November 2018
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: {{Team|CardName|Ascension}}