Difference between revisions of "Template:MapDetails"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
m
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#vardefine:maploops|{{{Diffs}}}}}
 
{{#vardefine:maploops|{{{Diffs}}}}}
{{#ifexpr:{{{Diffs}}}>2 |{{#vardefine:maploops|1}}}}
+
{{#ifexpr:{{#var:maploops}}>10 |{{#vardefine:maploops|1}} Too many difficulties set.|}}
  
 
{{#tag:tabber|
 
{{#tag:tabber|
Line 11: Line 11:
 
{{#if:{{{BG{{#var:i}}|}}}|{{#arraydefine:BG{{#var:i}}|{{{BG{{#var:i}}}}}}}|}}
 
{{#if:{{{BG{{#var:i}}|}}}|{{#arraydefine:BG{{#var:i}}|{{{BG{{#var:i}}}}}}}|}}
 
{{#if:{{{JT{{#var:i}}|}}}|{{#arraydefine:JT{{#var:i}}|{{{JT{{#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:{{{K{{#var:i}}|}}}|{{#arraydefine:K{{#var:i}}|{{{K{{#var:i}}}}}}}|}}
 
{{#if:{{{FK{{#var:i}}|}}}|{{#arraydefine:FK{{#var:i}}|{{{FK{{#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:{{{DM{{#var:i}}|}}}|{{#arraydefine:DM{{#var:i}}|{{{DM{{#var:i}}}}}}}|}}
Line 22: Line 22:
 
{{#if:{{{WBR{{#var:i}}|}}}|{{#arraydefine:WBR{{#var:i}}|{{{WBR{{#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:{{{LB{{#var:i}}|}}}|{{#arraydefine:LB{{#var:i}}|{{{LB{{#var:i}}}}}}}|}}
 
 
  
 
iPWR {{{iPWRnDiff{{#var:i}}}}}= {{{!}} cellspacing="5" cellpadding="5" style="text-align:left;"
 
iPWR {{{iPWRnDiff{{#var:i}}}}}= {{{!}} cellspacing="5" cellpadding="5" style="text-align:left;"
Line 29: Line 27:
 
! Enemies
 
! Enemies
 
! Wave 1
 
! Wave 1
!{{#ifexpr:{{{Waves}}}>=2|Wave 2}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=2|Wave 2}}
!{{#ifexpr:{{{Waves}}}>=3|Wave 3}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=3|Wave 3}}
!{{#ifexpr:{{{Waves}}}>=4|Wave 4}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=4|Wave 4}}
!{{#ifexpr:{{{Waves}}}>=5|Wave 5}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=5|Wave 5}}
!{{#ifexpr:{{{Waves}}}>=6|Wave 6}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=6|Wave 6}}
!{{#ifexpr:{{{Waves}}}>=7|Wave 7}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=7|Wave 7}}
!{{#ifexpr:{{{Waves}}}>=8|Wave 8}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=8|Wave 8}}
!{{#ifexpr:{{{Waves}}}>=9|Wave 9}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=9|Wave 9}}
!{{#ifexpr:{{{Waves}}}>=10|Wave 10}}
+
!{{#ifexpr:{{{Waves{{#var:i}}}}}>=10|Wave 10}}
 
{{!}}-
 
{{!}}-
 
{{#if:{{{G{{#var:i}}|}}}|
 
{{#if:{{{G{{#var:i}}|}}}|
Line 81: Line 79:
 
|}}
 
|}}
 
{{!}}-
 
{{!}}-
{{#if:{{{NK{{#var:i}}|}}}|
+
{{#if:{{{K{{#var:i}}|}}}|
{{!}}[[Normal Kobolds]]
+
{{!}}[[Kobolds_(Regular)|Kobolds]]
{{!}}{{#arrayindex:NK{{#var:i}}|0| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|0| }}
{{!}}{{#arrayindex:NK{{#var:i}}|1| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|1| }}
{{!}}{{#arrayindex:NK{{#var:i}}|2| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|2| }}
{{!}}{{#arrayindex:NK{{#var:i}}|3| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|3| }}
{{!}}{{#arrayindex:NK{{#var:i}}|4| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|4| }}
{{!}}{{#arrayindex:NK{{#var:i}}|5| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|5| }}
{{!}}{{#arrayindex:NK{{#var:i}}|6| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|6| }}
{{!}}{{#arrayindex:NK{{#var:i}}|7| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|7| }}
{{!}}{{#arrayindex:NK{{#var:i}}|8| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|8| }}
{{!}}{{#arrayindex:NK{{#var:i}}|9| }}
+
{{!}}{{#arrayindex:K{{#var:i}}|9| }}
 
|}}
 
|}}
 
{{!}}-
 
{{!}}-
Line 208: Line 206:
 
{{!}}-
 
{{!}}-
 
{{#if:{{{WBR{{#var:i}}|}}}|
 
{{#if:{{{WBR{{#var:i}}|}}}|
{{!}}[[Warboards]]
+
{{!}}[[Warboars]]
 
{{!}}{{#arrayindex:WBR{{#var:i}}|0| }}
 
{{!}}{{#arrayindex:WBR{{#var:i}}|0| }}
 
{{!}}{{#arrayindex:WBR{{#var:i}}|1| }}
 
{{!}}{{#arrayindex:WBR{{#var:i}}|1| }}
Line 258: Line 256:
 
| JT1 || Javelin Throwers
 
| JT1 || Javelin Throwers
 
|-
 
|-
| NK1 || Normal Kobolds
+
| K1 || Kobolds
 
|-
 
|-
 
| FK1 || Flying Kobolds
 
| FK1 || Flying Kobolds
Line 280: Line 278:
 
| LB1 || Lightning Bugs
 
| LB1 || Lightning Bugs
 
|-
 
|-
| Waves || Total Amount of Waves.
+
| Waves1 || Total Amount of Waves.
 
|-
 
|-
 
| iPWRnDiff1 || What are the iPWR ranges and difficulty
 
| iPWRnDiff1 || What are the iPWR ranges and difficulty
|-
 
| iPWRnDiff2 || What are the iPWR ranges and difficulty
 
|-
 
| iPWRnDiff3 || What are the iPWR ranges and difficulty
 
|-
 
| iPWRnDiff4 || What are the iPWR ranges and difficulty
 
|-
 
| iPWRnDiff5 || What are the iPWR ranges and difficulty
 
 
|}
 
|}
  
 
===Example===
 
===Example===
<nowiki>{{MapDetails | G1=0,6,7,8,9 | G2=4 | G3=9 | D2=20,30,40,50,60 | BG1=1,5,203,1904,205 | DM1=5,9,0,40,4 | WB1=2,3 | LB1=5,14,200 | Waves=5 | iPWRnDiff1=5-8(Easy) | iPWRnDiff2=10-20(Normal) | iPWRnDiff3=50-200(Hard) | Diffs=3}}</nowiki> produces the following:
+
<nowiki>{{MapDetails | G1=0,6,7,8,9 | G2=4 | G3=9 | D2=20,30,40,50,60 | BG1=1,5,203,1904,205 | DM1=5,9,0,40,4 | WB1=2,3 | LB1=5,14,200 | Waves1=5 | Waves2=9 | Waves3=2 | iPWRnDiff1=5-8(Easy) | iPWRnDiff2=10-20(Normal) | iPWRnDiff3=50-200(Hard) | Diffs=3}}</nowiki> produces the following:
  
{{MapDetails | G1=0,6,7,8,9 | G2=4 | G3=9 | D2=20,30,40,50,60 | BG1=1,5,203,1904,205 | DM1=5,9,0,40,4 | WB1=2,3 | LB1=5,14,200 | Waves=5 | iPWRnDiff1=5-8(Easy) | iPWRnDiff2=10-20(Normal) | iPWRnDiff3=50-200(Hard) | Diffs=3}}
+
{{MapDetails | G1=0,6,7,8,9 | G2=4 | G3=9 | D2=20,30,40,50,60 | BG1=1,5,203,1904,205 | DM1=5,9,0,40,4 | WB1=2,3 | LB1=5,14,200 | Waves1=5 | Waves2=9 | Waves3=2 | iPWRnDiff1=5-8(Easy) | iPWRnDiff2=10-20(Normal) | iPWRnDiff3=50-200(Hard) | Diffs=3}}
 
</noinclude>
 
</noinclude>

Latest revision as of 15:14, 1 April 2016

Expression error: Unrecognized punctuation character "{".


Parameters

Parameter Description
Enemies Enemies
G1 Goblins
BG1 Bomb Goblins
JT1 Javelin Throwers
K1 Kobolds
FK1 Flying Kobolds
DM1 Dark Mages
WB1 Witherbeasts
O1 Orcs
LO1 Lady Orcs
OG1 Ogres
W1 Wyverns
D1 Drakins
WBR1 Warboars
LB1 Lightning Bugs
Waves1 Total Amount of Waves.
iPWRnDiff1 What are the iPWR ranges and difficulty

Example

{{MapDetails | G1=0,6,7,8,9 | G2=4 | G3=9 | D2=20,30,40,50,60 | BG1=1,5,203,1904,205 | DM1=5,9,0,40,4 | WB1=2,3 | LB1=5,14,200 | Waves1=5 | Waves2=9 | Waves3=2 | iPWRnDiff1=5-8(Easy) | iPWRnDiff2=10-20(Normal) | iPWRnDiff3=50-200(Hard) | Diffs=3}} produces the following:



Enemies Wave 1 Wave 2 Wave 3 Wave 4 Wave 5
Goblins 0 6 7 8 9
Bomb Goblins 1 5 203 1904 205
Dark Mages 5 9 0 40 4
Witherbeasts 2 3
Lightning Bugs 5 14 200

Enemies Wave 1 Wave 2 Wave 3 Wave 4 Wave 5 Wave 6 Wave 7 Wave 8 Wave 9
Goblins 4
Drakins 20 30 40 50 60

Enemies Wave 1 Wave 2
Goblins 9