Difference between revisions of "Template:Acquired from"
Jump to navigation
Jump to search
(add translation support for npc names, when displaying template on a different language page, links will lead to different language versions) |
m (missing bracket fix) |
||
Line 31: | Line 31: | ||
-->{{#ifexpr: {{#var:LVL}} >= 1 and {{#var:LVL}} <= 6|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 1 and {{#var:LVL}} <= 6|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Amity}}) and {{#var:LVL}} <= (6 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Amity}}) and {{#var:LVL}} <= (6 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Respect}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Respect}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 44: | Line 44: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->}}<!-- SMITHS only sell METAL --><!-- | -->}}<!-- SMITHS only sell METAL --><!-- | ||
Line 59: | Line 59: | ||
-->{{#ifexpr: {{#var:LVL}} >= 1 and {{#var:LVL}} <= 6|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 1 and {{#var:LVL}} <= 6|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Amity}}) and {{#var:LVL}} <= (6 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Amity}}) and {{#var:LVL}} <= (6 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Respect}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Respect}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 72: | Line 72: | ||
-->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 12|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 12|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Amity}}) and {{#var:LVL}} <= (12 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Amity}}) and {{#var:LVL}} <= (12 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Respect}}) and {{#var:LVL}} <= (12 + {{#var:Respect}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Respect}}) and {{#var:LVL}} <= (12 + {{#var:Respect}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 85: | Line 85: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->}}<!-- CARPENTERS only sell WOOD --><!-- | -->}}<!-- CARPENTERS only sell WOOD --><!-- | ||
Line 100: | Line 100: | ||
-->{{#ifexpr: {{#var:LVL}} >= 1 and {{#var:LVL}} <= 6|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 1 and {{#var:LVL}} <= 6|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Amity}}) and {{#var:LVL}} <= (6 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Amity}}) and {{#var:LVL}} <= (6 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Respect}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:Respect}}) and {{#var:LVL}} <= (6 + {{#var:Respect}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 113: | Line 113: | ||
-->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 12|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 12|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Amity}}) and {{#var:LVL}} <= (12 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Amity}}) and {{#var:LVL}} <= (12 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Respect}}) and {{#var:LVL}} <= (12 + {{#var:Respect}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Respect}}) and {{#var:LVL}} <= (12 + {{#var:Respect}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 126: | Line 126: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->}}<!-- Using pos to check if item's origin and rarity tags can be sold by the merchant. --><!-- | -->}}<!-- Using pos to check if item's origin and rarity tags can be sold by the merchant. --><!-- | ||
Line 141: | Line 141: | ||
-->{{#ifexpr: {{#var:LVL}} >= 8 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 8 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (8 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (8 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (8 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (8 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor magic|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor magic|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor magic|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor magic|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 154: | Line 154: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: common uncommon elven rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: common uncommon elven rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: common uncommon elven rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: common uncommon elven rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 167: | Line 167: | ||
-->{{#ifexpr: {{#var:LVL}} >= 2 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 2 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: fjall common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: fjall common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: fjall common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: fjall common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 181: | Line 181: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: nistra common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: nistra common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: nistra common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: nistra common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 195: | Line 195: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: skadia common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: skadia common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: skadia common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: skadia common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 209: | Line 209: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->}}<!-- ENDIF JEWELRY CHECK --><!-- | -->}}<!-- ENDIF JEWELRY CHECK --><!-- | ||
Line 223: | Line 223: | ||
-->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 10|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 10|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Amity}}) and {{#var:LVL}} <= (10 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Amity}}) and {{#var:LVL}} <= (10 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Respect}}) and {{#var:LVL}} <= (10 + {{#var:Respect}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:Respect}}) and {{#var:LVL}} <= (10 + {{#var:Respect}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor common uncommon|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common uncommon|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor common uncommon|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common uncommon|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 237: | Line 237: | ||
-->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#var:Jewelry}}|{{#if: {{#pos: aldor common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#var:Jewelry}}|{{#if: {{#pos: aldor common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 251: | Line 251: | ||
-->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}}}<!-- | -->}}}}}}<!-- | ||
-->{{#if: {{#pos: aldor brynn skadia nistra common uncommon|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn skadia nistra common uncommon|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor brynn skadia nistra common uncommon|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn skadia nistra common uncommon|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 265: | Line 265: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor brynn skadia nistra common uncommon|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn skadia nistra common uncommon|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor brynn skadia nistra common uncommon|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn skadia nistra common uncommon|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 279: | Line 279: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor brynn aldwynn maen common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn aldwynn maen common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor brynn aldwynn maen common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor brynn aldwynn maen common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 292: | Line 292: | ||
-->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 16|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 4 and {{#var:LVL}} <= 16|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (16 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (16 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (16 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (4 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (16 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: elven common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: elven common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: elven common uncommon rare|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: elven common uncommon rare|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 305: | Line 305: | ||
-->{{#ifexpr: {{#var:LVL}} >= 1 and {{#var:LVL}} <= 18|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 1 and {{#var:LVL}} <= 18|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (18 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (18 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (18 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (1 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (18 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor common uncommon rare magic|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common uncommon rare magic|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor common uncommon rare magic|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common uncommon rare magic|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 319: | Line 319: | ||
-->{{#ifexpr: {{#var:LVL}} >= 2 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 2 and {{#var:LVL}} <= 14|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:AmityBrynn}}) and {{#var:LVL}} <= (14 + {{#var:AmityBrynn}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:RespectBrynn}}) and {{#var:LVL}} <= (14 + {{#var:RespectBrynn}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 332: | Line 332: | ||
-->{{#ifexpr: {{#var:LVL}} >= 2 and {{#var:LVL}} <= 8|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 2 and {{#var:LVL}} <= 8|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Amity}}) and {{#var:LVL}} <= (8 + {{#var:Amity}})|{{Translate|Amity|Properties}} |}}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Amity}}) and {{#var:LVL}} <= (8 + {{#var:Amity}})|{{Translate|Amity|Properties}} |}}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Respect}}) and {{#var:LVL}} <= (8 + {{#var:Respect}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (2 + {{#var:Respect}}) and {{#var:LVL}} <= (8 + {{#var:Respect}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |-1}}}} | -->{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |0}}}}|{{#if: {{#pos: aldor common|{{#explode:{{#var:Tags}}| |-1}}}} | ||
Line 345: | Line 345: | ||
-->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 20|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= 6 and {{#var:LVL}} <= 20|{{Translate|Neutral|Properties}} {{Translate|Benevolence|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Amity}}) and {{#var:LVL}} <= (20 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Amity}}) and {{#var:LVL}} <= (20 + {{#var:Amity}})|{{Translate|Amity|Properties}} }}<!-- | ||
-->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Respect}}) and {{#var:LVL}} <= (20 + {{#var:Respect}})|{{Translate|Respect|Properties}} | -->{{#ifexpr: {{#var:LVL}} >= (6 + {{#var:Respect}}) and {{#var:LVL}} <= (20 + {{#var:Respect}})|{{Translate|Respect|Properties}}}}<!-- | ||
-->}}<!-- | -->)}}<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->{{#if: {{#var:NobodySells}}||Currently no merchant sells this item.}}<!-- | -->{{#if: {{#var:NobodySells}}||Currently no merchant sells this item.}}<!-- |
Revision as of 17:05, 30 December 2022
Documentation
[purge]
This template automatically provides a list of loot sources (where an item can spawn/who drops an item). It is incomplete, a work in progress.
Usage
Call this template from any item page, place it where you want to have a list of sources. No parameter is required, ie. simply copy this text:
{{Acquired from}}
How does it work? (OLD WAY)
- The template automatically uses the page name as the string to look for.
- We check if the string we're looking for is part of a data string from a given container page.
- If a match is found, we display the source's page name. If not, we display nothing.
- Template assumes that all pages we check have their loot data available in our Data Structure format.
- Due to the
#pos
Parser Function limitation, the loot data strings must have less than 1000 characters.
Live Examples
Example of loot data from Hero Sarcophagus:
<includeonly>{{#switch: {{{1}}} |Loot = Pig-Faced Bascinet, Ceremonial Cuirass, Bollock Dagger, Footman Sword, Rondel, Bastard Sword, Battle Axe, War Pick, Knight Warhammer, Fancy Sword, Decorated Dagger, Orient Staff, Golden Ring, Pearl Necklace, Golden Fancy Ring, Golden Patterned Ring, Sapphire Pendant, Emerald, Sapphire, Sea Pearls, Ruby Beads, Exquisite Casket, Golden Earrings, Amethyst, Aquamarine, Topaz, Golden Brooch, Old Agraffe, Silver Buckle, Golden Cup, Diamond, Ruby |#default = }}</includeonly>
If a container's loot data has more than 1000 characters, the data structure can be organized into multiple entries, for example based on item types.
Example of loot data from Bookshelves:
<includeonly>{{#switch: {{{1}}} |Loot = Plague Doctor Mask, Brynn Vermouth, Mannshire Fortified, Brandy, Lockpicks, Repair Kit, Crowbar, Surgeon's Kit, Horsetail, Peppermint, Mindwort, Burdock, Bogbean, Agrimony, Vivifying Essence, Gwynnel's Elixir, Healing Salve, Splint, Bandage, Ether Inhaler, Antitoxin, Identification Scroll, Enchantment Scroll, Disenchantment Scroll, Bolt of Cloth, Silver Cup, Hourglass, Jade Figurine, Spool of Thread, Silver Buckle, Silver Plate, Decorated Inkpot, Golden Candelabrum, Silver Cutlery, Bottle of Oil, Iron Ingot, Gold Nugget, Silver Nugget, Copper Candlestick, Bottle, Candle-end, Straw, Coal Chunk, Nails, Ladle, Mug, Bowl, Pot, Plate, Rag, Rope |Treatise = Sword Treatise I, Sword Treatise II, Sword Treatise III, Axe Treatise I, Axe Treatise II, Axe Treatise III, Mace Treatise I, Mace Treatise II, Mace Treatise III, Dagger Treatise I, Dagger Treatise II, Dagger Treatise III, Greatswords Treatise I, Greatswords Treatise II, Greatswords Treatise III, Ranged Weapons Treatise I, Ranged Weapons Treatise II, Ranged Weapons Treatise III, Shields Treatise I, Shields Treatise II, Shields Treatise III, Staffs Treatise I, Staffs Treatise II, Staffs Treatise III, Combat Mastery Treatise I, Combat Mastery Treatise II, Combat Mastery Treatise III, Combat Mastery Treatise IV, Athletics Treatise I, Athletics Treatise II, Athletics Treatise III, Athletics Treatise IV, Pyromantic Treatise I, Pyromantic Treatise II, Pyromantic Treatise III, Pyromantic Treatise IV, Geomantic Treatise I, Geomantic Treatise II, Geomantic Treatise III, Geomantic Treatise IV |#default = }}</includeonly>
For each parameter you have to add a new line to the template to check for. Example:
-->{{#if: {{#pos:{{:Bookshelves|Loot}}|{{ROOTPAGENAME}}}} | * [[Bookshelves]] | }}<!-- -->{{#if: {{#pos:{{:Bookshelves|Treatise}}|{{ROOTPAGENAME}}}} | * [[Bookshelves]] | }}<!--