Difference between revisions of "Template:Loot InfoBox"

imported>BrianFreud
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:hasScales|0}}{{#arraydefine:lootArrayBase|{{{loot_base}}}}}{{#arraydefine:lootArraySpecial|{{{loot_special}}}}}{{#arraydefine:lootArrayCarved|{{{loot_carved}}}}}{{#arraydefine:carvedOther|{{{carvedOther}}}}}{{#arraydefine:lootArrayStealing|{{{loot_stealing}}}}}{{#arraysort:lootArrayBase|asc}}{{#arraysort:lootArraySpecial|asc}}{{#arraysort:lootArrayCarved|asc}}{{#arraysort:carvedOther|asc}}{{#arraysort:lootArrayStealing|asc}}{| class=infobox style="clear: right;"
+
{{#vardefine:hasScales|0}}{{#arraydefine:lootArrayBase|{{{loot_base}}}}}{{#arraydefine:lootArraySpecial|{{#replace:{{#replace:{{#replace:{{{loot_special}}}|1|①}}|2|②}}|3|③}} }}{{#arraydefine:lootArrayCarved|{{{loot_carved}}}}}{{#arraydefine:carvedOther|{{{carvedOther}}}}}{{#arraydefine:lootArrayStealing|{{{loot_stealing}}}}}{{#arraysort:lootArrayBase|asc}}{{#arraysort:lootArraySpecial|asc}}{{#arraysort:lootArrayCarved|asc}}{{#arraysort:carvedOther|asc}}{{#arraysort:lootArrayStealing|asc}}{| class=infobox style="clear: right;"
 
|class=titlecell colspan="2"| <span class="translatable">Loot</span>
 
|class=titlecell colspan="2"| <span class="translatable">Loot</span>
 
|-
 
|-
Line 7: Line 7:
 
|-
 
|-
 
| <span class="translatable">Special Loot</span>
 
| <span class="translatable">Special Loot</span>
| style="white-space: nowrap;padding-right: 6px;" | {{#if:{{{loot_special|}}}|{{#arrayprint:lootArraySpecial|<br/>|@@@@ |[[Category:UO Mobs that drop {{Trim|{{#ifexpr:{{IsNumber|{{#explode:@@@@| |0}}}}|{{Str Right|@@@@|{{#pos:@@@@}}}}}}|@@@@}}]][[UO:{{#ifexpr:{{IsNumber|{{#explode:@@@@| |0}}}}|{{Str Right|@@@@|{{#pos:@@@@}}}}|@@@@}}|@@@@]] }}|<span class="translatable">unknown</span>{{Missing Info}}}}
+
| style="white-space: nowrap;padding-right: 6px;" | {{#if:{{{loot_special|}}}|{{#arrayprint:lootArraySpecial|<br/>|@@@@ |{{#vardefine:val|{{#replace:{{#replace:{{#replace:@@@@|①|1}}|②|2}}|③|3}} }}[[Category:UO Mobs that drop {{Trim|{{#ifexpr:{{IsNumber|{{#explode:{{#var:val}}| |0}}}}|{{Str right|{{#var:val}}|{{#pos:{{#var:val}}}}}}|{{#var:val}}}}|{{#var:val}}]] }}]][[UO:{{#ifexpr:{{IsNumber|{{#explode:{{#var:val}}| |0}}}}|{{Str right|{{#var:val}}|{{#pos:{{#var:val}}}}}}|{{#var:val}}}}|{{#var:val}}]] }}|<span class="translatable">unknown</span>{{Missing Info}}}}
 
|-
 
|-
 
| <span class="translatable">Stealing</span>        || {{#if:{{{loot_stealing|}}}|{{#arrayprint:lootArrayStealing|<br/> }}|<span class="translatable">unknown</span>{{Missing Info}}}}
 
| <span class="translatable">Stealing</span>        || {{#if:{{{loot_stealing|}}}|{{#arrayprint:lootArrayStealing|<br/> }}|<span class="translatable">unknown</span>{{Missing Info}}}}

Latest revision as of 12:46, 25 May 2020

Loot
Gold unknown
Base Loot unknown
Special Loot unknown
Stealing unknown
Carving
Non-Felucca
Elf/Gargoyle
...w/Harvester's
Human
...w/Harvester's
Felucca
Elf/Gargoyle
...w/Harvester's
Human
...w/Harvester's