Difference between revisions of "Template:Infobox Card"

From Unofficial Fantasica Wiki
Jump to: navigation, search
(Fixing arena formula)
m (Adding error checking)
Line 20: Line 20:
 
! Lvl !! [[Image:Ground_icon.png|16px]] !! [[Image:Air_icon.png|16px]] !! [[Image:Sea_icon.png|16px]] !! Total !! Arena
 
! Lvl !! [[Image:Ground_icon.png|16px]] !! [[Image:Air_icon.png|16px]] !! [[Image:Sea_icon.png|16px]] !! Total !! Arena
 
{{!}}-
 
{{!}}-
{{!}} {{#expr: {{{rarity|6}}}*20 }} {{!!}} {{{ground|???}}} {{!!}} {{{air|???}}} {{!!}} {{{sea|???}}} {{!!}} {{{total|???}}} {{!!}} {{#expr:trunc((1-({{{rarity|1}}})^2/100)*(floor(1.2*{{#if: {{{ground|1}}}>{{{air|1}}} | {{#if: {{{ground|1}}}>{{{sea|1}}} | {{{ground|1}}} | {{{sea|1}}} }} | {{#if: {{{air|1}}} > {{{sea|1}}} | {{{air|1}}} | {{{sea|1}}} }} }}+0.5)+floor(1.2*({{{total|1}}} - {{#if: {{{ground|1}}}>{{{air|1}}} | {{#if: {{{ground|1}}}>{{{sea|1}}} | {{{ground|1}}} | {{{sea|1}}} }} | {{#if: {{{air|1}}} > {{{sea|1}}} | {{{air|1}}} | {{{sea|1}}} }} }} - {{#if: {{{ground|1}}}>{{{air|1}}} | {{#if: {{{sea|1}}}>{{{air|1}}} | {{{air|1}}} | {{{sea|1}}} }} | {{#if: {{{ground|1}}} > {{{sea|1}}} | {{{sea|1}}} | {{{ground|1}}} }} }}+0.5))))}}
+
{{!}} {{#expr: {{{rarity|6}}}*20 }} {{!!}} {{{ground|???}}} {{!!}} {{{air|???}}} {{!!}} {{{sea|???}}} {{!!}} {{{total|???}}} {{!!}} {{#iferror: {{#expr:trunc((1-({{{rarity|1}}})^2/100)*(floor(1.2*{{#if: {{{ground|1}}}>{{{air|1}}} | {{#if: {{{ground|1}}}>{{{sea|1}}} | {{{ground|1}}} | {{{sea|1}}} }} | {{#if: {{{air|1}}} > {{{sea|1}}} | {{{air|1}}} | {{{sea|1}}} }} }}+0.5)+floor(1.2*({{{total|1}}} - {{#if: {{{ground|1}}}>{{{air|1}}} | {{#if: {{{ground|1}}}>{{{sea|1}}} | {{{ground|1}}} | {{{sea|1}}} }} | {{#if: {{{air|1}}} > {{{sea|1}}} | {{{air|1}}} | {{{sea|1}}} }} }} - {{#if: {{{ground|1}}}>{{{air|1}}} | {{#if: {{{sea|1}}}>{{{air|1}}} | {{{air|1}}} | {{{sea|1}}} }} | {{#if: {{{ground|1}}} > {{{sea|1}}} | {{{sea|1}}} | {{{ground|1}}} }} }}+0.5))))}}|0}}
 
{{!}}-
 
{{!}}-
{{!}} {{#expr: {{{rarity|6}}}*20 + 20 }} {{!!}} {{{ground2|???}}} {{!!}} {{{air2|???}}} {{!!}} {{{sea2|???}}} {{!!}} {{{total2|???}}} {{!!}} {{#expr:trunc((1-({{{rarity|1}}})^2/100)*(floor(1.2*{{#if: {{{ground2|1}}}>{{{air2|1}}} | {{#if: {{{ground2|1}}}>{{{sea2|1}}} | {{{ground2|1}}} | {{{sea2|1}}} }} | {{#if: {{{air2|1}}} > {{{sea2|1}}} | {{{air2|1}}} | {{{sea2|1}}} }} }}+0.5)+floor(1.2*({{{total2|1}}} - {{#if: {{{ground2|1}}}>{{{air2|1}}} | {{#if: {{{ground2|1}}}>{{{sea2|1}}} | {{{ground2|1}}} | {{{sea2|1}}} }} | {{#if: {{{air2|1}}} > {{{sea2|1}}} | {{{air2|1}}} | {{{sea2|1}}} }} }} - {{#if: {{{ground2|1}}}>{{{air2|1}}} | {{#if: {{{sea2|1}}}>{{{air2|1}}} | {{{air2|1}}} | {{{sea2|1}}} }} | {{#if: {{{ground2|1}}} > {{{sea2|1}}} | {{{sea2|1}}} | {{{ground2|1}}} }} }}+0.5))))}}
+
{{!}} {{#expr: {{{rarity|6}}}*20 + 20 }} {{!!}} {{{ground2|???}}} {{!!}} {{{air2|???}}} {{!!}} {{{sea2|???}}} {{!!}} {{{total2|???}}} {{!!}} {{#iferror:{{#expr:trunc((1-({{{rarity|1}}})^2/100)*(floor(1.2*{{#if: {{{ground2|1}}}>{{{air2|1}}} | {{#if: {{{ground2|1}}}>{{{sea2|1}}} | {{{ground2|1}}} | {{{sea2|1}}} }} | {{#if: {{{air2|1}}} > {{{sea2|1}}} | {{{air2|1}}} | {{{sea2|1}}} }} }}+0.5)+floor(1.2*({{{total2|1}}} - {{#if: {{{ground2|1}}}>{{{air2|1}}} | {{#if: {{{ground2|1}}}>{{{sea2|1}}} | {{{ground2|1}}} | {{{sea2|1}}} }} | {{#if: {{{air2|1}}} > {{{sea2|1}}} | {{{air2|1}}} | {{{sea2|1}}} }} }} - {{#if: {{{ground2|1}}}>{{{air2|1}}} | {{#if: {{{sea2|1}}}>{{{air2|1}}} | {{{air2|1}}} | {{{sea2|1}}} }} | {{#if: {{{ground2|1}}} > {{{sea2|1}}} | {{{sea2|1}}} | {{{ground2|1}}} }} }}+0.5))))}}|0}}
 
{{!}}}
 
{{!}}}
 
|data4 = <div style="width:270px; white-space:normal; border-top:solid 1px #999;">{{{source|Source Unknown}}}</div>
 
|data4 = <div style="width:270px; white-space:normal; border-top:solid 1px #999;">{{{source|Source Unknown}}}</div>
 
}}
 
}}
 +
 +
{{#if: ???>0 | yes | no}}

Revision as of 21:24, 12 April 2013

Paris
Paris icon.png
★★★★★★
Paris
Blank album 6.png
Melee icon.png Melee  ? Range  ? Speed
 ? Cost no skill
Lvl Ground icon.png Air icon.png Sea icon.png Total Arena
120  ???  ???  ???  ??? 0
140  ???  ???  ???  ??? 0
Source Unknown

yes

Personal tools
Namespaces

Variants
Actions
Menu
Game Menu
Card Lists
Trading
External Resources
Toolbox
Google AdSense