Changes

Template:MapDetails

22 bytes removed, 04:25, 1 April 2016
no edit summary
{{#if:{{{G1|}}}|{{#arraydefine:G1|{{{G1}}}}}|}}
{{#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|
{{#if:{{{G1|}}}|
{{!}}[[Goblins]]
{{!}}{{#arrayindex:G1|10| }}
|}}
{{!}}-
{{#if:{{{BG1|}}}|
{{!}}[[Bomb Goblins]]
{{!}}{{#arrayindex:BG1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{JT1|0}}=1}|
{{!}}[[Javelin Throwers]]
{{!}}{{#arrayindex:JT1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{NK1|0}}=1}|
{{!}}[[Normal Kobolds]]
{{!}}{{#arrayindex:NK1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{FK1|0}}=1}|
{{!}}[[Flying Kobolds]]
{{!}}{{#arrayindex:FK1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{DM1|0}}=1}|
{{!}}[[Dark Mages]]
{{!}}{{#arrayindex:DM1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{WB1|0}}=1}|
{{!}}[[Witherbeasts]]
{{!}}{{#arrayindex:WB1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{O1|0}}=1}|
{{!}}[[Orcs]]
{{!}}{{#arrayindex:O1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{LO1|0}}=1}|
{{!}}[[Lady Orcs]]
{{!}}{{#arrayindex:LO1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{OG1|0}}=1}|
{{!}}[[Ogres]]
{{!}}{{#arrayindex:OG1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{W1|0}}=1}|
{{!}}[[Wyverns]]
{{!}}{{#arrayindex:W1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{D1|0}}=1}|
{{!}}[[Drakins]]
{{!}}{{#arrayindex:D1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{WBR1|0}}=1}|
{{!}}[[Warboards]]
{{!}}{{#arrayindex:WBR1|10| }}
|}}
{{!}}-
{{#ifexprif:{{#arrayindex:{LB1|0}}=1}|
{{!}}[[Lightning Bugs]]
{{!}}{{#arrayindex:LB1|10| }}
|}}
{{!}}}
===Example===
<nowiki>{{MapDetails | EnemiesG1=Goblins0,Bomb Goblins6,Kobolds7,Warboars8,9 | BG1=1,5,203,1904,205 | DM1=5,9,0,40,Orcs4 | WB1=2,Drakins3 | LB1=5,Javelin Throwers14,Wyverns 200 | Waves=5 | LRangenDiff1iPWRnDiff1=5-8(Easy) | LRangenDiff2iPWRnDiff2=10-20(Normal)}}</nowiki> produces the following:
{{MapDetails | BG1G1=0,6,7 ,8,9 | JT1=0 | NK1BG1=1,5,203,1904,205 | FK1DM1=15,509, | DM1=0 ,40,4 | WB1=0 | O1=0 | LO1=0 | OG1=0 | W1=0 | D1=0 | WBR1=0 2,3 | LB1=0 5,14,200 | Waves=5 | iPWRnDiff1=5-8(Easy) | iPWRnDiff2=10-20(Normal)}}
</noinclude>