Wynncraft Wiki
(added multilevel mob list input)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:a|1}}{{#while:
+
<includeonly>{{#vardefine:moblist| [[{{#explode: {{{mobs|}}}|,|0 }}]] }}{{#vardefine:x|1}}{{#while:
|{{{moblist{{#var:a}}|}}}
 
|{{#vardefine:moblist{{#var:a}}| {{#explode: {{{moblist{{#var:a}}|}}}|,|0 }}: [[{{#explode: {{{moblist{{#var:a}}|}}}|,|1 }}]]}}{{#vardefine:x|2}}{{#while:
 
|{{#explode: {{{mobs|}}} |,| {{#var:a}} }}
 
|{{#vardefine:moblist{{#var:a}}| {{#var:moblist{{#var:a}}}}{{*}}[[{{#explode: {{{moblist{{#var:a}}|}}} |,| {{#var:x}} }}]]}}{{#vardefine: x | {{#expr:{{#var:x}} + 1}} }}
 
}}
 
}}<!--
 
 
-->{{#vardefine:moblist| [[{{#explode: {{{mobs|}}}|,|0 }}]] }}{{#vardefine:x|1}}{{#while:
 
 
|{{#explode: {{{mobs|}}} |,| {{#var:x}} }}
 
|{{#explode: {{{mobs|}}} |,| {{#var:x}} }}
 
|{{#vardefine:moblist| {{#var:moblist}}{{*}}[[{{#explode: {{{mobs|}}} |,| {{#var:x}} }}]]}}{{#vardefine: x | {{#expr:{{#var:x}} + 1}} }}
 
|{{#vardefine:moblist| {{#var:moblist}}{{*}}[[{{#explode: {{{mobs|}}} |,| {{#var:x}} }}]]}}{{#vardefine: x | {{#expr:{{#var:x}} + 1}} }}
Line 24: Line 16:
 
<!--
 
<!--
   
-->{| class='wikitable' style="width: 50%; text-align: center"
+
-->{| class='wikitable' style="max-width: 65%; text-align: center"
 
!colspan="2" style="width=66%"| <big>{{{name|}}}</big><br>Location: {{{coordinates|}}}{{{location|?}}}<br>{{#if:{{{level|}}}|Recommended Min. Level: {{{level}}}}}
!colspan="2" | {{#switch: {{lc:{{{name|}}}}}
 
  +
|rowspan="5" style="width="33%"| {{RenderLocation|location={{{name|}}}|coordinates={{{location|}}}{{{coordinates|}}}|image_only=true|style=margin-left: auto; margin-right: auto;}}
| cave = <big>Cave</big>
 
| ruins = <big>Ruins</big>
 
| sewer
 
| sewers = <big>Sewer</big>
 
| corruption spike = <big>Corruption Spike</big>
 
| <big>{{{name|Location}}}</big>
 
}}<br>Location: {{{location|?}}}<br>{{#if:{{{level|}}}|Recommended Min. Level: {{{level}}}}}
 
 
|-
 
|-
 
{{#if:{{{purpose|}}}|!style="width:15%"{{!}}Purpose
 
{{#if:{{{purpose|}}}|!style="width:15%"{{!}}Purpose
Line 51: Line 37:
 
{{!}} {{#var:moblist}}
 
{{!}} {{#var:moblist}}
 
{{!-}}}}
 
{{!-}}}}
{{#if:{{{moblist1|}}}|!style="width:15%"{{!}}Mobs
+
{{#if:{{{mobs_raw|}}}|!style="width:15%"{{!}}Mobs
{{!}} <ul>{{#vardefine:a|1}}{{#while:
+
{{!}} {{{mobs_raw|}}}
| {{{moblist{{#var:a}}|}}}
 
| <li>{{{moblist{{#var:a}}|}}}</li>{{#vardefine:a|{{#expr:{{#var:a}}+1}}}}
 
}}</ul>
 
 
{{!-}}}}
 
{{!-}}}}
 
{{#if:{{{info|}}}|!style="width:15%"{{!}}Info
 
{{#if:{{{info|}}}|!style="width:15%"{{!}}Info
 
{{!}} {{{info}}}
 
{{!}} {{{info}}}
  +
{{!-}}}}
  +
{{#if:{{{link|}}}|!colspan="2" style="font-size:smaller;"{{!}} [[{{{link|}}}|{{{link_name|{{{link|}}}}}}]]
 
{{!-}}}}
 
{{!-}}}}
 
|}</includeonly>
 
|}</includeonly>

Latest revision as of 22:29, 4 August 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
PinpointConcept2.png
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
PinpointConcept2.png
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: 442, 71, -1153
PinpointConcept2.png
Loot There are no loot chests at this location.
Info A strange place!