Changes

Template:MapDetails

802 bytes added, 13:51, 1 April 2016
no edit summary
|
{{#if:{{{G{{#var:i}}|}}}|{{#arraydefine:G{{#var:i}}|{{{G{{#var:i}}}}}}}|}}
{{#arrayindexif:G{{{BG{{#var:i}}|}}}|{{#arraydefine:BG{{#var:i}}|{{{BG{{#var:i}}}}}}}|}}{{#if:{{{JT{{#var:i}}|}}}|{{#arraydefine:JT{{#var:i}}|{{{JT{{#var:i}}}}}}}|}}{{#if:{{{NK{{#var:i}}|}}}|{{#arraydefine:NK{{#var:i}}|{{{NK{{#var:i}}}}}}}|}}{{#if:{{{FK{{#var:i}}|}}}|{{#arraydefine:FK{{#var:i}}|{{{FK{{#var:i}}}}}}}|}}{{#if:{{{DM{{#var:i}}|}}}|{{#arraydefine:DM{{#var:i}}|{{{DM{{#var:i}}}}}}}|}}{{#if:{{{WB{{#var:i}}|}}}|{{#arraydefine:WB{{#var:i}}|{{{WB{{#var:i}}}}}}}|}}{{#if:{{{O{{#var:i}}|}}}|{{#arraydefine:O{{#var:i}}|{{{O{{#var:i}}}}}}}|}}{{#if:{{{LO{{#var:i}}|}}}|{{#arraydefine:LO{{#var:i}}|{{{LO{{#var:i}}}}}}}|}}{{#if:{{{OG{{#var:i}}|}}}|{{#arraydefine:OG{{#var:i}}|{{{OG{{#var:i}}}}}}}|}}{{#if:{{{W{{#var:i}}|}}}|{{#arraydefine:W{{#var:i}}|{{{W{{#var:i}}}}}}}|}}{{#if:{{{D{{#var:i}}|0}}}|{{#arraydefine:D{{#var:i}}|{{{D{{#var:i}}}}}}}|}}{{#if:{{{WBR{{#var:i}}|}}}|{{#arraydefine:WBR{{#var:i}}|{{{WBR{{#var:i}}}}}}}|}}{{#if:{{{LB{{#var:i}}|}}}|{{#arraydefine:LB{{#var:i}}|{{{LB{{#var:i}}}}}}}| }}
}}
 
 
{{#if:{{{BG1|}}}|{{#arraydefine:BG1|{{{BG1}}}}}|}}
{{#if:{{{JT1|}}}|{{#arraydefine:JT1|{{{JT1}}}}}|}}
{{#if:{{{NK1|}}}|{{#arraydefine:NK1|{{{NK1}}}}}|}}
{{#if:{{{FK1|}}}|{{#arraydefine:FK1|{{{FK1}}}}}|}}
{{#if:{{{DM1|}}}|{{#arraydefine:DM1|{{{DM1}}}}}|}}
{{#if:{{{WB1|}}}|{{#arraydefine:WB1|{{{WB1}}}}}|}}
{{#if:{{{O1|}}}|{{#arraydefine:O1|{{{O1}}}}}|}}
{{#if:{{{LO1|}}}|{{#arraydefine:LO1|{{{LO1}}}}}|}}
{{#if:{{{OG1|}}}|{{#arraydefine:OG1|{{{OG1}}}}}|}}
{{#if:{{{W1|}}}|{{#arraydefine:W1|{{{W1}}}}}|}}
{{#if:{{{D1|}}}|{{#arraydefine:D1|{{{D1}}}}}|}}
{{#if:{{{WBR1|}}}|{{#arraydefine:WBR1|{{{WBR1}}}}}|}}
{{#if:{{{LB1|}}}|{{#arraydefine:LB1|{{{LB1}}}}}|}}
 
{{#tag:tabber|
iPWR {{{iPWRnDiff1iPWRnDiff{{#var:i}}}}}= {{{!}} cellspacing="5" cellpadding="5" style="text-align:left;"
{{!}}-
! Enemies
!{{#ifexpr:{{{Waves}}}>=10|Wave 10}}
{{!}}-
{{#if:{{{G1G{{#var:i}}|}}}|
{{!}}[[Goblins]]
{{!}}{{#arrayindex:G1G{{#var:i}}|0| }}{{!}}{{#arrayindex:G1G{{#var:i}}|1| }}{{!}}{{#arrayindex:G1G{{#var:i}}|2| }}{{!}}{{#arrayindex:G1G{{#var:i}}|3| }}{{!}}{{#arrayindex:G1G{{#var:i}}|4| }}{{!}}{{#arrayindex:G1G{{#var:i}}|5| }}{{!}}{{#arrayindex:G1G{{#var:i}}|6| }}{{!}}{{#arrayindex:G1G{{#var:i}}|7| }}{{!}}{{#arrayindex:G1G{{#var:i}}|8| }}{{!}}{{#arrayindex:G1G{{#var:i}}|9| }}
|}}
{{!}}-
{{#if:{{{BG1BG{{#var:i}}|}}}|
{{!}}[[Bomb Goblins]]
{{!}}{{#arrayindex:BG1BG{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{JT1JT{{#var:i}}|}}}|
{{!}}[[Javelin Throwers]]
{{!}}{{#arrayindex:JT1JT{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{NK1NK{{#var:i}}|}}}|
{{!}}[[Normal Kobolds]]
{{!}}{{#arrayindex:NK1NK{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{FK1FK{{#var:i}}|}}}|
{{!}}[[Flying Kobolds]]
{{!}}{{#arrayindex:FK1FK{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{DM1DM{{#var:i}}|}}}|
{{!}}[[Dark Mages]]
{{!}}{{#arrayindex:DM1DM{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{WB1WB{{#var:i}}|}}}|
{{!}}[[Witherbeasts]]
{{!}}{{#arrayindex:WB1WB{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{O1O{{#var:i}}|}}}|
{{!}}[[Orcs]]
{{!}}{{#arrayindex:O1O{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{LO1LO{{#var:i}}|}}}|
{{!}}[[Lady Orcs]]
{{!}}{{#arrayindex:LO1LO{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{OG1OG{{#var:i}}|}}}|
{{!}}[[Ogres]]
{{!}}{{#arrayindex:OG1OG{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{W1W{{#var:i}}|}}}|
{{!}}[[Wyverns]]
{{!}}{{#arrayindex:W1W{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{D1D{{#var:i}}|}}}|
{{!}}[[Drakins]]
{{!}}{{#arrayindex:D1D{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{WBR1WBR{{#var:i}}|}}}|
{{!}}[[Warboards]]
{{!}}{{#arrayindex:WBR1WBR{{#var:i}}|0| }}
|}}
{{!}}-
{{#if:{{{LB1LB{{#var:i}}|}}}|
{{!}}[[Lightning Bugs]]
{{!}}{{#arrayindex:LB1LB{{#var:i}}|0| }}
|}}
{{!}}}
{{!}}-{{!}}
{{<!}}-{{!}}-{{#if:{{{iPWRnDiff2|}}}|{{{iPWRnDiff2}}}= {{#arrayindex:Kobolds |1}}--><!--{{!}}-{{!}}|}}--><!--{{#if:{{{iPWRnDiff3|}}}|{{{iPWRnDiff3}}}= {{#arrayprint:enemies}}--><!--{{!}}-{{!}}|}}-->
}}
===Example===
<nowiki>{{MapDetails | G1G{{#var:i}}=0,6,7,8,9 | BG1BG{{#var:i}}=1,5,203,1904,205 | DM1DM{{#var:i}}=5,9,0,40,4 | WB1WB{{#var:i}}=2,3 | LB1LB{{#var:i}}=5,14,200 | Waves=5 | iPWRnDiff1=5-8(Easy) | iPWRnDiff2=10-20(Normal)}}</nowiki> produces the following:
{{MapDetails | G1G{{#var:i}}=0,6,7,8,9 | G2=4 | G3=9 | BG1BG{{#var:i}}=1,5,203,1904,205 | DM1DM{{#var:i}}=5,9,0,40,4 | WB1WB{{#var:i}}=2,3 | LB1LB{{#var:i}}=5,14,200 | Waves=5 | iPWRnDiff1=5-8(Easy) | iPWRnDiff2=10-20(Normal) | iPWRnDiff3=50-200(Hard) | Diffs=3}}
</noinclude>