Difference between revisions of "Template:Loot InfoBox"

m
m
 
(51 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#arraydefine:lootArrayBase|{{{loot_base}}}}}{{#arraydefine:lootArraySpecial|{{{loot_special}}}}}{{#arraydefine:lootArrayCarved|{{{loot_carved}}}}}{{#arraydefine:lootArrayHarvester|{{{loot_harvester}}}}}{{#arraydefine:lootArrayStealing|{{{loot_stealing}}}}}{| class=infobox
+
{{#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"| Loot
+
|class=titlecell colspan="2"| <span class="translatable">Loot</span>
 
|-
 
|-
| Gold            || {{#if:{{{loot_gold|}}}|{{{loot_gold}}}|unknown{{Missing Info}}}}
+
| <span class="translatable">Gold</span>             || {{#if:{{{loot_gold|}}}|{{{loot_gold}}} <span class="translatable">gp</span>|<span class="translatable">unknown</span>{{Missing Info}}}}
 
|-
 
|-
| Base            || {{#if:{{{loot_base|}}}|{{#arrayprint:lootArrayBase|<br/> }}|unknown{{Missing Info}}}}
+
| <span class="translatable">Base Loot</span>             || {{#if:{{{loot_base|}}}|{{#arrayprint:lootArrayBase|<br/> }}|<span class="translatable">unknown</span>{{Missing Info}}}}
 
|-
 
|-
| Special         || {{#if:{{{loot_special|}}}|{{#arrayprint:lootArraySpecial|<br/> }}|unknown{{Missing Info}}}}
+
| <span class="translatable">Special Loot</span>
 +
| 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}}}}
 
|-
 
|-
| Carved          || {{#if:{{{loot_carved|}}}|{{#arrayprint:lootArrayCarved|<br/> }}|unknown{{Missing Info}}}}
+
| <span class="translatable">Stealing</span>        || {{#if:{{{loot_stealing|}}}|{{#arrayprint:lootArrayStealing|<br/> }}|<span class="translatable">unknown</span>{{Missing Info}}}}
 +
|}
 +
 
 +
{| class=infobox style="clear: right;"
 +
|class=titlecell colspan="21"| <span class="translatable">Carving</span>
 
|-
 
|-
| ...w/Harvester's || {{#if:{{{loot_harvester|}}}|{{#arrayprint:lootArrayHarvester|<br/> }}|unknown{{Missing Info}}}}
+
{{#vardefine: nocarveables|0}}
|-
+
{{#ifeq: {{{pileHidesN|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
| Stealing        || {{#if:{{{loot_stealing|}}}|{{#arrayprint:lootArrayStealing|<br/> }}|unknown{{Missing Info}}}}
+
{{#ifeq: {{{pileHidesS|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{pileHidesH|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{pileHidesB|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{rawBird|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{rawLamb|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{rawChicken|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{rawRibs|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{feathers|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{dragonBlood|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{dragonScaleBlack|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{dragonScaleBlue|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{dragonScaleGreen|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{dragonScaleRed|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{dragonScaleWhite|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{{dragonScaleYellow|}}} | 0 | | {{#vardefine: nocarveables|1}} }}
 +
{{#ifeq: {{#var: nocarveables}} | 0 |
 +
{{!}} colspan="21"{{!}} <span class="translatable">Nothing</span>|
 +
{{Loot_CarveablesTable
 +
| pileHidesN = {{{pileHidesN|}}}
 +
| pileHidesS = {{{pileHidesS|}}}
 +
| pileHidesH = {{{pileHidesH|}}}
 +
| pileHidesB = {{{pileHidesB|}}}
 +
| rawBird = {{{rawBird|}}}
 +
| rawLamb = {{{rawLamb|}}}
 +
| rawChicken = {{{rawChicken|}}}
 +
| rawRibs = {{{rawRibs|}}}
 +
| feathers = {{{feathers|}}}
 +
| dragonBlood = {{{dragonBlood|}}}
 +
| dragonScaleBlack = {{{dragonScaleBlack|}}}
 +
| dragonScaleBlue = {{{dragonScaleBlue|}}}
 +
| dragonScaleGreen = {{{dragonScaleGreen|}}}
 +
| dragonScaleRed = {{{dragonScaleRed|}}}
 +
| dragonScaleWhite = {{{dragonScaleWhite|}}}
 +
| dragonScaleYellow = {{{dragonScaleYellow|}}}
 +
}} }}
 
|}
 
|}

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