Difference between revisions of "Template:Team"
(Created page with "<noinclude> Use this template to show off your team! <span style="color:red"> '''But DO NOT edit this template unless you know what you're doing, because it could break every...") |
|||
Line 41: | Line 41: | ||
{{!!}} {{#ifexpr: {{{2}}}>0 and {{#external_value:aschpmlb}}>0 | <span style="color:red"> {{formatnum: {{#expr:{{#external_value:mlbhpmlb}}+({{{2}}}/10*{{#external_value:mlbhpmlb}})}}}} </span> | {{formatnum:{{#external_value:mlbhpmlb}}}}}} | {{!!}} {{#ifexpr: {{{2}}}>0 and {{#external_value:aschpmlb}}>0 | <span style="color:red"> {{formatnum: {{#expr:{{#external_value:mlbhpmlb}}+({{{2}}}/10*{{#external_value:mlbhpmlb}})}}}} </span> | {{formatnum:{{#external_value:mlbhpmlb}}}}}} | ||
{{!!}} {{#ifexpr: {{#external_value:rarity}}=10 | {{formatnum:{{#expr:{{#external_value:arenalbmlb}}*(12/11)*({{{2}}}+20)/20 round 0}}}} | {{formatnum:{{#expr:{{#external_value:arenalbmlb}}*(1.08333433)*({{{2}}}+20)/20 round 0}}}}}} | {{!!}} {{#ifexpr: {{#external_value:rarity}}=10 | {{formatnum:{{#expr:{{#external_value:arenalbmlb}}*(12/11)*({{{2}}}+20)/20 round 0}}}} | {{formatnum:{{#expr:{{#external_value:arenalbmlb}}*(1.08333433)*({{{2}}}+20)/20 round 0}}}}}} | ||
− | {{!!}} {{#external_value:skill1mlb}}{{#if: {{#external_value:skill2mlb}} | , {{#external_value:skill2mlb}}}}{{#if: {{#external_value:arenaskillmlb}} | , {{#external_value:arenaskillmlb}}}}{{#clear_external_data:}} | + | {{!!}} {{#external_value:skill1mlb}}{{#if: {{#external_value:skill2mlb}} | ,<br> {{#external_value:skill2mlb}}}}{{#if: {{#external_value:arenaskillmlb}} | ,<br> {{#external_value:arenaskillmlb}}}}{{#clear_external_data:}} |
| {{!}}- | | {{!}}- | ||
{{!!}} {{Icon|{{{1}}}}}<br/>[[{{#external_value:name}}]] | {{!!}} {{Icon|{{{1}}}}}<br/>[[{{#external_value:name}}]] | ||
{{!!}} {{#external_value:rarity}} | {{!!}} {{#external_value:rarity}} | ||
− | {{!!}} {{#external_value:type}} | + | {{!!}} [[Image:{{#external_value:type}}_icon.png]]<br>{{#external_value:type}} |
{{!!}} {{{2}}} | {{!!}} {{{2}}} | ||
{{!!}} {{#ifexpr: {{{2}}}>0 and {{#external_value:asccost}}!=0 | <span style="color:red"> {{#ifexpr: {{#external_value:cost}}=30 or {{#external_value:cost}}=40 | {{#expr:{{#external_value:cost}}-({{{2}}}*2)}} | {{#expr:{{#external_value:cost}}-({{{2}}}*1)}}}} </span> | {{#external_value:cost}}}} | {{!!}} {{#ifexpr: {{{2}}}>0 and {{#external_value:asccost}}!=0 | <span style="color:red"> {{#ifexpr: {{#external_value:cost}}=30 or {{#external_value:cost}}=40 | {{#expr:{{#external_value:cost}}-({{{2}}}*2)}} | {{#expr:{{#external_value:cost}}-({{{2}}}*1)}}}} </span> | {{#external_value:cost}}}} | ||
Line 55: | Line 55: | ||
{{!!}} {{#ifexpr: {{{2}}}>0 and {{#external_value:aschp}}>0 | <span style="color:red"> {{formatnum: {{#expr:{{#external_value:mlbhp}}+({{{2}}}/10*{{#external_value:mlbhp}})}}}} </span> | {{formatnum:{{#external_value:mlbhp}}}}}} | {{!!}} {{#ifexpr: {{{2}}}>0 and {{#external_value:aschp}}>0 | <span style="color:red"> {{formatnum: {{#expr:{{#external_value:mlbhp}}+({{{2}}}/10*{{#external_value:mlbhp}})}}}} </span> | {{formatnum:{{#external_value:mlbhp}}}}}} | ||
{{!!}} {{#ifexpr: {{#external_value:rarity}}=12 | {{formatnum:{{#expr:{{#external_value:arenalb}}*(14/13)*({{{2}}}+20)/20 round 0}}}} | {{formatnum: {{#expr:{{#external_value:arenalb}}*({{{2}}}+20)/20 round 0}}}}}} | {{!!}} {{#ifexpr: {{#external_value:rarity}}=12 | {{formatnum:{{#expr:{{#external_value:arenalb}}*(14/13)*({{{2}}}+20)/20 round 0}}}} | {{formatnum: {{#expr:{{#external_value:arenalb}}*({{{2}}}+20)/20 round 0}}}}}} | ||
− | {{!!}} {{#external_value:skill1}}{{#if: {{#external_value:skill2}} | , {{#external_value:skill2}}}}{{#if: {{#external_value:arenaskill}} | , {{#external_value:arenaskill}}}}{{#clear_external_data:}}}}</includeonly> | + | {{!!}} {{#external_value:skill1}}{{#if: {{#external_value:skill2}} | ,<br> {{#external_value:skill2}}}}{{#if: {{#external_value:arenaskill}} | ,<br> {{#external_value:arenaskill}}}}{{#clear_external_data:}}}}</includeonly> |
Revision as of 02:16, 25 January 2019
Use this template to show off your team!
But DO NOT edit this template unless you know what you're doing, because it could break everything.
The cards are assumed to be MLB and empowered, if applicable.
Noting the ascension level will also automatically calculate the changes made to the unit (only works for units 9* rarity and above).
This template also only works for units! If you want a separate template for monsters, contact Jarrbox about it.
Keep in mind that this template heavily relies on a card's stats existing on the wiki. If there's no values shown on their card page, the values will show up as zero!
This can be easily fixed by inputting the MLB stats here: http://www.fantasicawiki.com/edit_unit.php?unit=UNIT_NAME
Even if you don't know the exact values for ascension, just putting a "1" for the ascension value will allow the calculator to work properly!
It would help you and anyone else using the wiki, so please consider it!
Template Usage: {{Team|CardName|Ascension}}