Difference between revisions of "Template:MobDrops"

From Albion Online Wiki
Jump to navigation Jump to search
(add t7/t8 toggle)
(change if/else logic to switch for one-off names)
Line 3: Line 3:
  
 
SETUP MOBPREFIX VALUES
 
SETUP MOBPREFIX VALUES
  --> {{#vardefine: eliteMob|0}}{{#vardefine: mobPrefix |{{ucfirst:{{#explode:{{PAGENAME}}| |0}} }} }}{{#ifeq: {{PAGENAME}}|Great Mother of the Earthkeeper|{{#vardefine: mobPrefix|Keeper}} }}{{#ifeq: {{#var: mobPrefix}}| Elite| {{#vardefine: eliteMob|1}}{{#vardefine: mobPrefix |{{ucfirst:{{#explode:{{PAGENAME}}| |1}} }} }}}}{{#ifeq: {{#var: mobPrefix}}|Bonecrusher|{{#vardefine: mobPrefix|Keeper}}|{{#ifeq: {{#var: mobPrefix}}|Earthkeeper|{{#vardefine: mobPrefix|Keeper}}|{{#ifeq: {{#var: mobPrefix}}|Berserker|{{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}|{{#ifeq: {{#var: mobPrefix}}|Earthkeeper|{{#vardefine: mobPrefix|Druid}}|{{#ifeq: {{#var: mobPrefix}}|Knifeling|{{#vardefine: mobPrefix|Keeper}} }}||{{#ifeq: {{#var: mobPrefix}}|Wildling|{{#vardefine: mobPrefix|Keeper}} }} }} }} }} }}<!--
+
  -->{{#vardefine: eliteMob|0}}{{#vardefine: mobPrefix |{{ucfirst:{{#explode:{{PAGENAME}}| |0}} }} }}{{#ifeq: {{PAGENAME}}|Great Mother of the Earthkeeper|{{#vardefine: mobPrefix|Keeper}} }}{{#ifeq: {{#var: mobPrefix}}| Elite| {{#vardefine: eliteMob|1}}{{#vardefine: mobPrefix |{{ucfirst:{{#explode:{{PAGENAME}}| |1}} }} }}}}<!--
 +
 
 +
SWITCH FOR 1-OFF MOB NAMES
 +
-->{{ #switch:{{#var: mobPrefix }}
 +
|Berserker={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}{{#vardefine: showT4Lux|0}}{{#vardefine: t4LuxRow | {{#var: hideRow}} }}
 +
|Bonecrusher={{#vardefine: mobPrefix|Keeper}}
 +
|Druid={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}{{#vardefine: showT4Lux|0}}{{#vardefine: t4LuxRow | {{#var: hideRow}} }}
 +
|Earthkeeper={{#vardefine: mobPrefix|Keeper}}
 +
|Knifeling={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}{{#vardefine: showT4Lux|0}}{{#vardefine: t4LuxRow | {{#var: hideRow}} }}
 +
|Wildling={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}{{#vardefine: showT4Lux|0}}{{#vardefine: t4LuxRow | {{#var: hideRow}} }}
 +
|}}<!--
  
 
SWITCH FOR MOBPREFIX TESTS
 
SWITCH FOR MOBPREFIX TESTS

Revision as of 17:51, 18 September 2022

Documentation

Usage

Page dynamic with no parameters:

{{MobDrops}}


Potential Drops

MobDrops may drop Silver, armor, weapons, maps, and any of these items:

Misc Items
Adept's Tome of Insight


No description.

Template parameters

ParameterDescriptionTypeStatus
Page NamePAGENAME

The page value must match the mob to show treasures for.

Default
PAGENAME
Example
Keeper Earthchild
Stringoptional