Difference between revisions of "Template:MapDetails"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{#arraydefine:enemies|{{{Enemies}}}}}
 
{{#arraydefine:enemies|{{{Enemies}}}}}
 +
{{#arraydefine:Goblins|{{{Goblins}}}}}
 +
{{#arraydefine:BombGoblins|{{{Bomb Goblins}}}}}
 +
{{#arraydefine:Kobolds|{{{Kobolds}}}}}
 +
  
 
{{#tag:tabber|
 
{{#tag:tabber|
Levels {{{LRangenDiff1}}}= {{#arrayprint:enemies}}
+
Levels {{{LRangenDiff1}}}= {{#arraydefine:Kobolds|{{{Kobolds}}}}}
 
{{!}}-{{!}}
 
{{!}}-{{!}}
{{#if:{{{LRangenDiff2|}}}|Levels {{{LRangenDiff2}}}= {{#arrayprint:enemies}}
+
{{#if:{{{LRangenDiff2|}}}|Levels {{{LRangenDiff2}}}= {{#if:{{#arraysize:Kobolds|}}|{{#arrayindex:Kobolds |2}}|}}
 
{{!}}-{{!}}|}}
 
{{!}}-{{!}}|}}
 
{{#if:{{{LRangenDiff3|}}}|Levels {{{LRangenDiff3}}}= {{#arrayprint:enemies}}
 
{{#if:{{{LRangenDiff3|}}}|Levels {{{LRangenDiff3}}}= {{#arrayprint:enemies}}
Line 19: Line 23:
 
| Enemies|| Enemies
 
| Enemies|| Enemies
 
|-
 
|-
| EnemiesPW || Enemies Per Wave
+
| Goblins ||
 +
|-
 +
| Bomb Goblins ||
 +
|-
 +
| Kobolds ||  
 
|-
 
|-
 
| Waves || Total Amount of Waves.
 
| Waves || Total Amount of Waves.
Line 33: Line 41:
 
<nowiki>{{MapDetails | Enemies=Goblins,Bomb Goblins,Kobolds,Warboars,Orcs,Drakins,Javelin Throwers,Wyverns | Waves=3 | LRangenDiff1=5-8(Easy) | LRangenDiff2=10-20(Normal)}}</nowiki> produces the following:
 
<nowiki>{{MapDetails | Enemies=Goblins,Bomb Goblins,Kobolds,Warboars,Orcs,Drakins,Javelin Throwers,Wyverns | Waves=3 | LRangenDiff1=5-8(Easy) | LRangenDiff2=10-20(Normal)}}</nowiki> produces the following:
  
{{MapDetails | Enemies=Goblins,Bomb Goblins,Kobolds,Warboars,Orcs,Drakins,Javelin Throwers,Wyverns | Waves=3 | LRangenDiff1=5-8(Easy) | LRangenDiff2=10-20(Normal)}}
+
{{MapDetails | Enemies=Goblins,Bomb Goblins,Kobolds,Warboars,Orcs,Drakins,Javelin Throwers,Wyverns | Kobolds=5,203,1904,205 | Waves=3 | LRangenDiff1=5-8(Easy) | LRangenDiff2=10-20(Normal)}}
 
</noinclude>
 
</noinclude>

Revision as of 17:46, 31 March 2016





Parameters

Parameter Description
Enemies Enemies
Goblins
Bomb Goblins
Kobolds
Waves Total Amount of Waves.
LRangenDiff1 What Are the level Ranges and difficulty
LRangenDiff2 What Are the level Ranges and difficulty
LRangenDiff3 What Are the level Ranges and difficulty

Example

{{MapDetails | Enemies=Goblins,Bomb Goblins,Kobolds,Warboars,Orcs,Drakins,Javelin Throwers,Wyverns | Waves=3 | LRangenDiff1=5-8(Easy) | LRangenDiff2=10-20(Normal)}} produces the following:


Expression error: Unrecognized punctuation character "{".