Difference between revisions of "Template:SpecialAmmoTable"

From War Thunder Wiki
Jump to: navigation, search
(Allow multiple smoke)
 
Line 1: Line 1:
<includeonly>{{#if:{{#vardefine:i|0}}{{#while:|{{#explode:{{{2|}}}|,|{{#var:i}}}}|{{#pos:{{{1|}}},|{{#explode:{{{2|}}}|,|{{#var:i}}}},}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}}}|{{#switch:{{{penetration|}}},{{{smoke|}}}|true,={{AmmoPenetrationTable|{{#vardefine:i|0}}{{#while:|{{#explode:{{{1|}}}|,|{{#var:i}}}}|{{#if:{{#pos:{{{2|}}},|{{#explode:{{{1|}}}|,|{{#var:i}}}},}}|{{#if:{{{3|}}}|{{trim|{{#explode:{{{3|}}}|,|{{#var:i}}}}}},|_{{trim|{{#explode:{{{1|}}}|,|{{#var:i}}}}}},}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}}}|{{{4|}}}|unnamed={{{unnamed|}}}}}|,={{AmmoDetailsTable|{{#vardefine:i|0}}{{#while:|{{#explode:{{{1|}}}|,|{{#var:i}}}}|{{#if:{{#pos:{{{2|}}},|{{#explode:{{{1|}}}|,|{{#var:i}}}},}}|{{#if:{{{3|}}}|{{trim|{{#explode:{{{3|}}}|,|{{#var:i}}}}}},|_{{trim|{{#explode:{{{1|}}}|,|{{#var:i}}}}}},}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}}}|{{{4|}}}|unnamed={{{unnamed|}}}|missile={{{missile|}}}|proxy={{{proxy|}}}|TNTe={{{TNTe|g}}}|fuseDelay={{{fuseDelay|m}}}}}|#default={{SmokeShellTable|{{{3|{{{2|}}} smoke}}}}}}}}}</includeonly><noinclude>{{doc}}[[Category:Ammunition table templates]]</noinclude>
+
<includeonly>{{#if:{{#vardefine:i|0}}{{#while:|{{#explode:{{{2|}}}|,|{{#var:i}}}}|{{#pos:{{{1|}}},|{{#explode:{{{2|}}}|,|{{#var:i}}}},}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}}}|{{#switch:{{{penetration|}}},{{{smoke|}}}|true,={{AmmoPenetrationTable|{{#vardefine:i|0}}{{#while:|{{#explode:{{{1|}}}|,|{{#var:i}}}}|{{#if:{{#pos:{{{2|}}},|{{#explode:{{{1|}}}|,|{{#var:i}}}},}}|{{#if:{{{3|}}}|{{trim|{{#explode:{{{3|}}}|,|{{#var:i}}}}}},|_{{trim|{{#explode:{{{1|}}}|,|{{#var:i}}}}}},}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}}}|{{{4|}}}|unnamed={{{unnamed|}}}}}|,={{AmmoDetailsTable|{{#vardefine:i|0}}{{#while:|{{#explode:{{{1|}}}|,|{{#var:i}}}}|{{#if:{{#pos:{{{2|}}},|{{#explode:{{{1|}}}|,|{{#var:i}}}},}}|{{#if:{{{3|}}}|{{trim|{{#explode:{{{3|}}}|,|{{#var:i}}}}}},|_{{trim|{{#explode:{{{1|}}}|,|{{#var:i}}}}}},}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}}}|{{{4|}}}|unnamed={{{unnamed|}}}|missile={{{missile|}}}|proxy={{{proxy|}}}|TNTe={{{TNTe|g}}}|fuseDelay={{{fuseDelay|m}}}}}|#default={{SmokeShellTable|{{#vardefine:i|0}}{{#while:|{{#explode:{{{1|}}}|,|{{#var:i}}}}|{{#if:{{#pos:{{{2|}}},|{{#explode:{{{1|}}}|,|{{#var:i}}}},}}|{{#if:{{{3|}}}|{{trim|{{#explode:{{{3|}}}|,|{{#var:i}}}}}},|{{trim|{{#explode:{{{1|}}}|,|{{#var:i}}}}}} smoke,}}}}{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}}}}}}}}}</includeonly><noinclude>{{doc}}[[Category:Ammunition table templates]]</noinclude>

Latest revision as of 22:11, 2 February 2023