Difference between revisions of "Template:MobDrops"

From Albion Online Wiki
Jump to navigation Jump to search
(fixed second switch)
(change logic to use if instead of ifeq)
Line 1: Line 1:
 
<onlyinclude><includeonly><!--  SETUP BASIC VARS
 
<onlyinclude><includeonly><!--  SETUP BASIC VARS
  -->{{#vardefine: showRow | "font-weight: bold; text-align: left; vertical-align: top; width: 33.3%;" }}{{#vardefine: hideRow| "font-weight: bold; text-align: left; vertical-align: top; width: 33.3%; display: none;" }}{{#vardefine: showT7|1}}{{#vardefine: showT8|1}}{{#vardefine: showRune|1}}{{#vardefine: runeRow | {{#var: showRow}} }}{{#vardefine: showSoul|1}}{{#vardefine: soulRow | {{#var: showRow}} }}{{#vardefine: showRelic|1}}{{#vardefine: relicRow | {{#var: showRow}} }}{{#vardefine: showAvaShard|0}}{{#vardefine: avaShardRow | {{#var: hideRow}} }}{{#vardefine: showT4Lux|0}}{{#vardefine: t4LuxRow | {{#var: hideRow}} }}{{#vardefine: showT5Lux|0}}{{#vardefine: t5LuxRow | {{#var: hideRow}} }}{{#vardefine: showT6Lux|0}}{{#vardefine: t6LuxRow | {{#var: hideRow}} }}{{#vardefine: showKeeper|0}}{{#vardefine: keeperItemRow | {{#var: hideRow}} }}{{#vardefine: treasures_standard_loot| }}{{#vardefine: show_loot_rd_token| yes }}<!--  
+
  -->{{#vardefine: showRow | "font-weight: bold; text-align: left; vertical-align: top; width: 33.3%;" }}{{#vardefine: hideRow| "font-weight: bold; text-align: left; vertical-align: top; width: 33.3%; display: none;" }}{{#vardefine: showT7|yes}}{{#vardefine: showT8|yes}}{{#vardefine: showRune|yes}}{{#vardefine: runeRow | {{#var: showRow}} }}{{#vardefine: showSoul|yes}}{{#vardefine: soulRow | {{#var: showRow}} }}{{#vardefine: showRelic|yes}}{{#vardefine: relicRow | {{#var: showRow}} }}{{#vardefine: showAvaShard|}}{{#vardefine: avaShardRow | {{#var: hideRow}} }}{{#vardefine: showT4Lux|}}{{#vardefine: t4LuxRow | {{#var: hideRow}} }}{{#vardefine: showT5Lux|}}{{#vardefine: t5LuxRow | {{#var: hideRow}} }}{{#vardefine: showT6Lux|}}{{#vardefine: t6LuxRow | {{#var: hideRow}} }}{{#vardefine: showKeeper|}}{{#vardefine: keeperItemRow | {{#var: hideRow}} }}{{#vardefine: treasures_standard_loot| }}{{#vardefine: show_loot_rd_token| yes }}<!--  
  
 
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}} }} }} }}<!--
+
  -->{{#vardefine: eliteMob|}}{{#vardefine: mobPrefix |{{ucfirst:{{#explode:{{PAGENAME}}| |0}} }} }}{{#ifeq: {{PAGENAME}}|Great Mother of the Earthkeeper|{{#vardefine: mobPrefix|Keeper}} }}{{#ifeq: {{#var: mobPrefix}}| Elite| {{#vardefine: eliteMob|yes}}{{#vardefine: mobPrefix |{{ucfirst:{{#explode:{{PAGENAME}}| |1}} }} }} }}<!--
  
 
SWITCH FOR 1-OFF MOB NAMES
 
SWITCH FOR 1-OFF MOB NAMES
 
-->{{ #switch:{{#var: mobPrefix }}
 
-->{{ #switch:{{#var: mobPrefix }}
|Berserker={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}
+
|Berserker={{#vardefine: mobPrefix|Keeper}}
|Bonecrusher={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT4Lux|1}}
+
|Bonecrusher={{#vardefine: mobPrefix|Keeper}}
|Druid={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}
+
|Druid={{#vardefine: mobPrefix|Keeper}}
|Earthkeeper={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT4Lux|1}}
+
|Earthkeeper={{#vardefine: mobPrefix|Keeper}}
|Huntress={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}
+
|Huntress={{#vardefine: mobPrefix|Keeper}}
|Knifeling={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}
+
|Knifeling={{#vardefine: mobPrefix|Keeper}}
|Wildling={{#vardefine: mobPrefix|Keeper}}{{#vardefine: showT7|0}}{{#vardefine: showT8|0}}
+
|Wildling={{#vardefine: mobPrefix|Keeper}}
 
| }}<!--
 
| }}<!--
  
 
SWITCH FOR MOBPREFIX TESTS
 
SWITCH FOR MOBPREFIX TESTS
 
-->{{ #switch:{{#var: mobPrefix }}
 
-->{{ #switch:{{#var: mobPrefix }}
|Keeper={{#set: Mob_Type| {{#var: mobPrefix }} }}{{#vardefine: showKeeper|1}}{{#vardefine: keeperItemRow | {{#var: showRow}} }}{{#vardefine: treasures_standard_loot|yes }}  
+
|Keeper={{#set: Mob_Type| {{#var: mobPrefix }} }}{{#vardefine: showKeeper|yes}}{{#vardefine: keeperItemRow | {{#var: showRow}} }}{{#vardefine: treasures_standard_loot|yes }}  
|{{#vardefine: showRune|0}}{{#vardefine: runeRow | {{#var: hideRow}} }}{{#vardefine: showSoul|0}}{{#vardefine: soulRow | {{#var: hideRow}} }}{{#vardefine: showRelic|0}}{{#vardefine: relicRow | {{#var: hideRow}} }} }}<!--  
+
|{{#vardefine: showRune|}}{{#vardefine: runeRow | {{#var: hideRow}} }}{{#vardefine: showSoul|}}{{#vardefine: soulRow | {{#var: hideRow}} }}{{#vardefine: showRelic|}}{{#vardefine: relicRow | {{#var: hideRow}} }} }}<!--
 +
 
 +
IF FOR LUX ITEM DISPLAY
 +
-->{{#if: {{#var: treasures_standard_loot}}| {{#vardefine: showT4Lux|yes}}{{#vardefine: t4LuxRow | {{#var: showRow}} }}{{#vardefine: showT5Lux|yes}}{{#vardefine: t5LuxRow | {{#var: showRow}} }}{{#vardefine: showT6Lux|yes}}{{#vardefine: t6LuxRow | {{#var: showRow}} }} }}<!--  
 
--->
 
--->
 
== '''Potential Drops''' ==
 
== '''Potential Drops''' ==
Line 38: Line 41:
 
!colspan=6|Runes
 
!colspan=6|Runes
 
|-
 
|-
{{#ifeq: {{#var: showRune}}|1|
+
{{#if: {{#var: showRune}}|
 
{{!}} {{aoitem | name=Adept's Rune | text=none}}<span style="display: none;">[[Drops item::Adept's Rune]] </span>
 
{{!}} {{aoitem | name=Adept's Rune | text=none}}<span style="display: none;">[[Drops item::Adept's Rune]] </span>
 
{{!}} {{aoitem | name=Expert's Rune | text=none}}<span style="display: none;">[[Drops item::Expert's Rune]] </span>
 
{{!}} {{aoitem | name=Expert's Rune | text=none}}<span style="display: none;">[[Drops item::Expert's Rune]] </span>
 
{{!}} {{aoitem | name=Master's Rune | text=none}}<span style="display: none;">[[Drops item::Master's Rune]] </span>
 
{{!}} {{aoitem | name=Master's Rune | text=none}}<span style="display: none;">[[Drops item::Master's Rune]] </span>
{{#ifeq: {{#var: showT7}}|1|{{!}} {{aoitem | name=Grandmaster's Rune | text=none}}<span style="display: none;">[[Drops item::Grandmaster's Rune]] </span> }}
+
{{#if: {{#var: showT7}}|{{!}} {{aoitem | name=Grandmaster's Rune | text=none}}<span style="display: none;">[[Drops item::Grandmaster's Rune]] </span> }}
{{#ifeq: {{#var: showT8}}|1|{{!}} {{aoitem | name=Elder's Rune | text=none}}<span style="display: none;">[[Drops item::Elder's Rune]] </span> }} }}
+
{{#if: {{#var: showT8}}|{{!}} {{aoitem | name=Elder's Rune | text=none}}<span style="display: none;">[[Drops item::Elder's Rune]] </span> }} }}
 
|}
 
|}
 
{| class="wikitable" style={{#var: soulRow}}
 
{| class="wikitable" style={{#var: soulRow}}
 
!colspan=6|Souls
 
!colspan=6|Souls
 
|-
 
|-
{{#ifeq: {{#var: showSoul}}|1|
+
{{#if: {{#var: showSoul}}|
 
{{!}} {{aoitem | name=Adept's Soul| text=none}}<span style="display: none;">[[Drops item::Adept's Soul]] </span>
 
{{!}} {{aoitem | name=Adept's Soul| text=none}}<span style="display: none;">[[Drops item::Adept's Soul]] </span>
 
{{!}} {{aoitem | name=Expert's Soul| text=none}}<span style="display: none;">[[Drops item::Expert's Soul]] </span>
 
{{!}} {{aoitem | name=Expert's Soul| text=none}}<span style="display: none;">[[Drops item::Expert's Soul]] </span>
 
{{!}} {{aoitem | name=Master's Soul| text=none}}<span style="display: none;">[[Drops item::Master's Soul]] </span>
 
{{!}} {{aoitem | name=Master's Soul| text=none}}<span style="display: none;">[[Drops item::Master's Soul]] </span>
{{#ifeq: {{#var: showT7}}|1|{{!}} {{aoitem | name=Grandmaster's Soul| text=none}}<span style="display: none;">[[Drops item::Grandmaster's Soul]] </span> }}
+
{{#if: {{#var: showT7}}|{{!}} {{aoitem | name=Grandmaster's Soul| text=none}}<span style="display: none;">[[Drops item::Grandmaster's Soul]] </span> }}
{{#ifeq: {{#var: showT8}}|1|{{!}} {{aoitem | name=Elder's Soul| text=none}}<span style="display: none;">[[Drops item::Elder's Soul]] </span> }} }}
+
{{#if: {{#var: showT8}}|{{!}} {{aoitem | name=Elder's Soul| text=none}}<span style="display: none;">[[Drops item::Elder's Soul]] </span> }} }}
 
|}
 
|}
 
{| class="wikitable" style={{#var: relicRow}}
 
{| class="wikitable" style={{#var: relicRow}}
 
!colspan=6|Relics
 
!colspan=6|Relics
 
|-
 
|-
{{#ifeq: {{#var: showRelic}}|1|
+
{{#if: {{#var: showRelic}}|
 
{{!}} {{aoitem | name=Adept's Relic| text=none}}<span style="display: none;">[[Drops item::Adept's Relic]] </span>
 
{{!}} {{aoitem | name=Adept's Relic| text=none}}<span style="display: none;">[[Drops item::Adept's Relic]] </span>
 
{{!}} {{aoitem | name=Expert's Relic| text=none}}<span style="display: none;">[[Drops item::Expert's Relic]] </span>
 
{{!}} {{aoitem | name=Expert's Relic| text=none}}<span style="display: none;">[[Drops item::Expert's Relic]] </span>
 
{{!}} {{aoitem | name=Master's Relic| text=none}}<span style="display: none;">[[Drops item::Master's Relic]] </span>
 
{{!}} {{aoitem | name=Master's Relic| text=none}}<span style="display: none;">[[Drops item::Master's Relic]] </span>
{{#ifeq: {{#var: showT7}}|1|{{!}} {{aoitem | name=Grandmaster's Relic| text=none}}<span style="display: none;">[[Drops item::Grandmaster's Relic]] </span> }}
+
{{#if: {{#var: showT7}}|{{!}} {{aoitem | name=Grandmaster's Relic| text=none}}<span style="display: none;">[[Drops item::Grandmaster's Relic]] </span> }}
{{#ifeq: {{#var: showT8}}|1|{{!}} {{aoitem | name=Elder's Relic| text=none}}<span style="display: none;">[[Drops item::Elder's Relic]] </span> }} }}
+
{{#if: {{#var: showT8}}|{{!}} {{aoitem | name=Elder's Relic| text=none}}<span style="display: none;">[[Drops item::Elder's Relic]] </span> }} }}
 
|}
 
|}
 
{| class="wikitable" style={{#var: t4LuxRow}}
 
{| class="wikitable" style={{#var: t4LuxRow}}
 
!colspan=7|T4 Luxury Items
 
!colspan=7|T4 Luxury Items
 
|-
 
|-
{{#ifeq: {{#var: showT4Lux}}|1|
+
{{#if: {{#var: showT4Lux}}|
 
{{!}} {{aoitem | name=Corrupted Scroll| text=none}}<span style="display: none;">[[Drops item::Corrupted Scroll]] </span>
 
{{!}} {{aoitem | name=Corrupted Scroll| text=none}}<span style="display: none;">[[Drops item::Corrupted Scroll]] </span>
 
{{!}} {{aoitem | name=Feather Talisman| text=none}}<span style="display: none;">[[Drops item::Feather Talisman]] </span>
 
{{!}} {{aoitem | name=Feather Talisman| text=none}}<span style="display: none;">[[Drops item::Feather Talisman]] </span>
Line 78: Line 81:
 
{| class="wikitable" style={{#var: t5LuxRow}}
 
{| class="wikitable" style={{#var: t5LuxRow}}
 
!colspan=7|T5 Luxury Items|-
 
!colspan=7|T5 Luxury Items|-
{{#ifeq: {{#var: showT5Lux}}|1|
+
{{#if: {{#var: showT5Lux}}|
 
{{!}} {{aoitem | name=Thin Booklet| text=none}}<span style="display: none;">[[Drops item::Thin Booklet]] </span>
 
{{!}} {{aoitem | name=Thin Booklet| text=none}}<span style="display: none;">[[Drops item::Thin Booklet]] </span>
 
{{!}} {{aoitem | name=Dreamcatcher| text=none}}<span style="display: none;">[[Drops item::Dreamcatcher]] </span>
 
{{!}} {{aoitem | name=Dreamcatcher| text=none}}<span style="display: none;">[[Drops item::Dreamcatcher]] </span>
Line 89: Line 92:
 
!colspan=7|T6 Luxury Items
 
!colspan=7|T6 Luxury Items
 
|-
 
|-
{{#ifeq: {{#var: showT6Lux}}|1|
+
{{#if: {{#var: showT6Lux}}|
 
{{!}} {{aoitem | name=Ancient Tome| text=none}}<span style="display: none;">[[Drops item::Ancient Tome]] </span>
 
{{!}} {{aoitem | name=Ancient Tome| text=none}}<span style="display: none;">[[Drops item::Ancient Tome]] </span>
 
{{!}} {{aoitem | name=Holy Fetish| text=none}}<span style="display: none;">[[Drops item::Holy Fetish]] </span>
 
{{!}} {{aoitem | name=Holy Fetish| text=none}}<span style="display: none;">[[Drops item::Holy Fetish]] </span>
Line 100: Line 103:
 
!colspan=7|Keeper  Items
 
!colspan=7|Keeper  Items
 
|-
 
|-
{{#ifeq: {{#var: showKeeper}}|1|
+
{{#if: {{#var: showKeeper}}|
 
{{!}} {{aoitem | name=Adept's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Adept's Keeper Crest]] </span>
 
{{!}} {{aoitem | name=Adept's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Adept's Keeper Crest]] </span>
 
{{!}} {{aoitem | name=Expert's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Expert's Keeper Crest]] </span>
 
{{!}} {{aoitem | name=Expert's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Expert's Keeper Crest]] </span>
 
{{!}} {{aoitem | name=Master's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Master's Keeper Crest]] </span>
 
{{!}} {{aoitem | name=Master's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Master's Keeper Crest]] </span>
{{#ifeq: {{#var: showT7}}|1|{{!}} {{aoitem | name=Grandmaster's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Grandmaster's Keeper Crest]] </span> }}
+
{{#if: {{#var: showT7}}|{{!}} {{aoitem | name=Grandmaster's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Grandmaster's Keeper Crest]] </span> }}
{{#ifeq: {{#var: showT8}}|1|{{!}} {{aoitem | name=Elder's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Elder's Keeper Crest]] </span> }}
+
{{#if: {{#var: showT8}}|{{!}} {{aoitem | name=Elder's Keeper Crest| text=none}}<span style="display: none;">[[Drops item::Elder's Keeper Crest]] </span> }}
{{#ifeq: {{#var: showT8}}|1|{{!}} {{aoitem | name=Sacred Bone Marrow| text=none}}<span style="display: none;">[[Drops item::Sacred Bone Marrow]] </span>  }} }}
+
{{#if: {{#var: showT8}}|{{!}} {{aoitem | name=Sacred Bone Marrow| text=none}}<span style="display: none;">[[Drops item::Sacred Bone Marrow]] </span>  }} }}
 
|}
 
|}
  

Revision as of 00:52, 19 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 Adept's Dungeon Map (Solo) Expert's Dungeon Map (Solo) Master's Dungeon Map (Solo) Grandmaster's Dungeon Map (Solo) Elder's Dungeon Map (Solo)


No description.

Template parameters

ParameterDescriptionTypeStatus
Page NamePAGENAME

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

Default
PAGENAME
Example
Keeper Earthchild
Stringoptional