Template:BTD5 tower info: Difference between revisions

mNo edit summary
costs should work as intended now
Line 43: Line 43:
|-
|-
!Cost
!Cost
|colspan="3"|{{#ifexpr:{{{cost F|{{{cost M|0}}}}}} = {{{cost M|0}}} and {{{cost D|{{{cost M|0}}}}}} = {{{cost M|0}}}|
|colspan="3"|{{#ifexpr:{{{cost F|{{{cost M|0}}}}}} = {{{cost M|0}}} and {{{cost D|{{{cost M|0}}}}}} = {{{cost M|0}}}
|{{#ifeq:{{{cost F|0}}}|{{{cost D|0}}}|'''Flash / ''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>}}
||{{#ifeq:{{{cost F|0}}}|{{{cost D|0}}}
|{{#if:{{{cost F|}}}|'''Flash''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>}}{{#if:{{{cost D|}}}|'''''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost D|0}}}}<br>}}
|'''Flash / ''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>'''Mobile / console''':<br>
}}'''Mobile / console''':<br>}}{{BTD5M cost by difficulty|{{{cost M|0}}}}} <!-- mobile costs are always at the bottom -->
|{{#if:{{{cost F|}}}|'''Flash''':<br>{{BTD5F cost by difficulty|{{{cost F|0}}}}}<br>}}{{#if:{{{cost D|}}}|'''''Deluxe''''':<br>{{BTD5F cost by difficulty|{{{cost D|0}}}}}<br>}}
}}'''Mobile / console''':<br>}}{{BTD5M cost by difficulty|{{{cost M|0}}}}}
|}
|}
|}[[Category:Towers in BTD5]]{{#seo:
|}[[Category:Towers in BTD5]]{{#seo:
Line 69: Line 70:
|hotkey_F=String
|hotkey_F=String
|hotkey_M=String
|hotkey_M=String
}}{{/doc}}[[Category:Infoboxes]][[Category:BTD5 templates]]</noinclude>
}}{{/doc}}</noinclude>