Wynncraft Wiki
(forgot link on first element of mob list)
Tag: Source edit
Tag: Source edit
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
<includeonly>{{#if:{{{mobs_raw|}}}||{{#if: {{{mob_groups|}}}|{{#ifexpr: {{#count:{{{mob_groups}}}|,}} > 0 | {{#vardefine:moblist|<span style ="text-align:left"><ul>{{#cargo_query: tables=MinorLocations_MobGroup|fields=MinorLocations_MobGroup.name,MinorLocations_MobGroup.mobs|where=MinorLocations_MobGroup.id IN ({{#arraymap:{{{mob_groups}}}|,|group|"group"|,}})|format=template|template=MinorLocation/MobGroup/display|named args=yes}}</ul></span>}}|{{#vardefine:moblist|{{#cargo_query: tables=MinorLocations_MobGroup|fields=MinorLocations_MobGroup.name,MinorLocations_MobGroup.mobs|where=MinorLocations_MobGroup.id="{{{mob_groups}}}"|format=template|template=MinorLocation/MobGroup/display|named args=yes}}}}}}|{{#vardefine:moblist| [[{{#explode: {{{mobs|}}}|,|0 }}]] }}{{#vardefine:x|1}}{{#while:
<includeonly>{{#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}} }}
}}<!--
+
}}}}}}<!--
   
 
> 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
Line 13: Line 13:
 
| 4 = {{#vardefine: loot_tier4 | {{#expr:{{#var:loot_tier4}} + 1}} }}
 
| 4 = {{#vardefine: loot_tier4 | {{#expr:{{#var:loot_tier4}} + 1}} }}
 
}}{{#vardefine: i | {{#expr:{{#var:i}} + 1}} }}
 
}}{{#vardefine: i | {{#expr:{{#var:i}} + 1}} }}
}}
+
}}<!--
<!--
 
   
-->{| class='wikitable' style="width: 30em; 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 32: Line 25:
 
| grind = {{WynnIcon|blaze powder}} Grinding
 
| grind = {{WynnIcon|blaze powder}} Grinding
 
| transport = {{WynnIcon|saddle}} Transportation
 
| transport = {{WynnIcon|saddle}} Transportation
  +
| #default = {{{purpose|}}}
 
}}
 
}}
 
{{!-}}}}
 
{{!-}}}}
Line 39: Line 33:
 
{{!}}There are no loot chests at this location.
 
{{!}}There are no loot chests at this location.
 
{{!-}}}}
 
{{!-}}}}
{{#if:{{{mobs|}}}|!style="width:15%"{{!}}Mobs
+
{{#if:{{{mobs|{{{mob_groups|}}}}}}|!style="width:15%"{{!}}Mobs
 
{{!}} {{#var:moblist}}
 
{{!}} {{#var:moblist}}
  +
{{!-}}}}
  +
{{#if:{{{mobs_raw|}}}|!style="width:15%"{{!}}Mobs
  +
{{!}} {{{mobs_raw|}}}
 
{{!-}}}}
 
{{!-}}}}
 
{{#if:{{{info|}}}|!style="width:15%"{{!}}Info
 
{{#if:{{{info|}}}|!style="width:15%"{{!}}Info
 
{{!}} {{{info}}}
 
{{!}} {{{info}}}
 
{{!-}}}}
 
{{!-}}}}
  +
{{#if:{{{link|}}}|!colspan="3" style="font-size:smaller;"{{!}} [[{{{link|}}}|{{{link_name|{{{link|}}}}}}]]
|}</includeonly>
 
  +
{{!-}}}}
<noinclude>{{MinorLocation/doc}}</noinclude>
 
 
|}<!--
  +
  +
-->{{#cargo_store:_table=MinorLocations
  +
|name = {{{name|}}}
  +
|coordinates = {{{coordinates|}}}{{{location|}}}
  +
|purpose = {{{purpose|}}}
  +
|mobs = {{{mobs|}}}
  +
|mob_groups = {{{mob_groups|}}}
  +
|loot_tier = {{{loot_tier|}}}
  +
|info = {{{info|}}}
 
}}</includeonly>
  +
<noinclude>{{#cargo_declare:_table=MinorLocations
  +
|name = String
  +
|coordinates = String
  +
|purpose = String
  +
|mobs = List (,) of String
  +
|mob_groups = List (,) of String
  +
|loot_tier = String
  +
|info = Wikitext
  +
}}
 
{{MinorLocation/doc}}</noinclude>

Latest revision as of 00:57, 5 October 2021

This template defines the table "MinorLocations". View table.

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!