Wynncraft Wiki
m (forgot how to use css list tags)
Tag: Source edit
(improved mob list collection)
Tag: Source edit
Line 1: Line 1:
<includeonly>{{#vardefine:mob1|{{#explode:{{{mobs|}}}|, |0}}}}<!--
+
<includeonly>{{#vardefine:moblist| {{#explode: {{{mobs|}}}|,|0 }} }}{{#vardefine:x|1}}{{#while:
-->{{#vardefine:mob2|{{#explode:{{{mobs|}}}|, |1}}}}<!--
+
|{{#explode: {{{mobs|}}} |,| {{#var:x}} }}
-->{{#vardefine:mob3|{{#explode:{{{mobs|}}}|, |2}}}}<!--
+
|{{#vardefine:moblist| {{#var:moblist}}{{*}}[[{{#explode: {{{mobs|}}} |,| {{#var:x}} }}]]}}{{#vardefine: x | {{#expr:{{#var:x}} + 1}} }}
  +
}}<!--
-->{{#vardefine:mob4|{{#explode:{{{mobs|}}}|, |3}}}}<!--
 
-->{{#vardefine:mob5|{{#explode:{{{mobs|}}}|, |4}}}}<!--
 
-->{{#vardefine:mob6|{{#explode:{{{mobs|}}}|, |5}}}}<!--
 
-->{{#vardefine:mob7|{{#explode:{{{mobs|}}}|, |6}}}}<!--
 
-->{{#vardefine:mob8|{{#explode:{{{mobs|}}}|, |7}}}}<!--
 
-->{{#vardefine:mob9|{{#explode:{{{mobs|}}}|, |8}}}}<!--
 
-->{{#vardefine:mob10|{{#explode:{{{mobs|}}}|, |9}}}}<!--
 
 
-->{{#vardefine:moblist|[[{{#var:mob1}}]]{{#if:{{#var:mob2}}|{{*}}[[{{#var:mob2}}]]}}{{#if:{{#var:mob3}}|{{*}}[[{{#var:mob3}}]]}}{{#if:{{#var:mob4}}|{{*}}[[{{#var:mob4}}]]}}{{#if:{{#var:mob5}}|{{*}}[[{{#var:mob5}}]]}}{{#if:{{#var:mob6}}|{{*}}[[{{#var:mob6}}]]}}{{#if:{{#var:mob7}}|{{*}}[[{{#var:mob7}}]]}}{{#if:{{#var:mob8}}|{{*}}[[{{#var:mob8}}]]}}{{#if:{{#var:mob9}}|{{*}}[[{{#var:mob9}}]]}}{{#if:{{#var:mob10}}|{{*}}[[{{#var:mob10}}]]}}}}<!--
 
   
 
> handle loot chests as a csv; while there are still elements, iterate through them and increase loot_tierX depending on the value
 
> handle loot chests as a csv; while there are still elements, iterate through them and increase loot_tierX depending on the value

Revision as of 00:25, 14 June 2021

Template-info.png Documentation

This template creates an table that provides info about a minor location, like caves and ruins.

Generally, any notable structure where loot chests and unique mobs spawn should use this template. Do not use this template for important locations; they should have their own pages made for them.

It also uses Template:RenderLocation to display the location on the map as well.

{{MinorLocation
| name =
| icon =
| location =
| loot_tier = 
| mobs or mobs_raw =
| info =
| level =
| purpose =
| width = 
}}
  • name - the name of the minor location. Unnamed locations should be called "cave", "ruins", etc. If no value is given, defaults to "Location".
  • icon - the icons displayed next to the location's name. Values here are put directly into Template:WynnIcon. If no value is given, defaults to icons if the location has a general name, otherwise, defaults to a sign.
  • location - the coordinates of the location. If not given, defaults to "?".
  • loot_tier - the tier of the loot chest that spawns at the location.
  • mobs - mobs that may spawn at the location. Should be a comma-separated list of the names of the mobs.
  • mobs_raw - direct wikitext input into the mobs cell. Use this if you want a different display than the dotlist mobs generates.
  • info - any extra info that pertains to the minor location.
  • level - the minimum recommended level for entering this cave.
  • purpose - the purpose of the cave. Can be anything, but special ones are loot, transport, grind, and quest.
  • width - controls the width of the table.

Examples

Example Result
{{MinorLocation
| name = Ruins
| location =  -547, 67, -1619
| loot_tier = 1
| mobs = Fire Zombie, Weak Zombie, Zombie (Lv. 3), Zombie (Lv. 5)
| purpose = grind
}}
Ruins
Location: -547, 67, -1619
Purpose
Grinding
Loot
Mobs Fire Zombie • Weak Zombie • Zombie (Lv. 3) • Zombie (Lv. 5)
{{MinorLocation
| name = Weird Place
| icon = earth powder
| location =  -628, 50, -1953
| loot_tier = 2
| mobs = Corrupted Jumla, Corrupted Grian, Zombie (Lv. 10), Zombie Assassin, Zombie Archer (Lv. 4)
| level = 10
}}
Weird Place
Location: -628, 50, -1953
Recommended Min. Level: 10
Loot
Mobs Corrupted Jumla • Corrupted Grian • Zombie (Lv. 10) • Zombie Assassin • Zombie Archer (Lv. 4)
{{MinorLocation
| location = 442, 71, -1153
| info = A strange place!
}}
Location
Location: 442, 71, -1153
Loot There are no loot chests at this location.
Info A strange place!