Difference between revisions of "Template:Loot InfoBox"

m
m
Line 1: Line 1:
{{#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|{{{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;"
 
|class=titlecell colspan="2"| <span class="translatable">Loot</span>
 
|class=titlecell colspan="2"| <span class="translatable">Loot</span>
 
|-
 
|-
Line 32: Line 32:
 
|style="color:white;background-color: #345!important;"|{{#if: {{{feathers|}}} | {{#ifexpr: {{{feathers|}}} > 0 | <div style="transform: translate(0,4px);position: relative;left: -17px;">{{UO_Image|image|Feather|no}}</div> }} }}
 
|style="color:white;background-color: #345!important;"|{{#if: {{{feathers|}}} | {{#ifexpr: {{{feathers|}}} > 0 | <div style="transform: translate(0,4px);position: relative;left: -17px;">{{UO_Image|image|Feather|no}}</div> }} }}
 
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonBlood|}}} | {{#ifexpr: {{{dragonBlood|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Dragon's Blood|no}}</div> }} }}
 
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonBlood|}}} | {{#ifexpr: {{{dragonBlood|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Dragon's Blood|no}}</div> }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleBlack|}}} | {{#ifexpr: {{{dragonScaleBlack|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Black Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleBlack|}}} | {{#ifexpr: {{{dragonScaleBlack|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Black Dragon Scale|no}}*</div>{{#vardefine:hasScales|0}} }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleBlue|}}} | {{#ifexpr: {{{dragonScaleBlue|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Blue Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleBlue|}}} | {{#ifexpr: {{{dragonScaleBlue|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Blue Dragon Scale|no}}*</div>{{#vardefine:hasScales|0}} }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleGreen|}}} | {{#ifexpr: {{{dragonScaleGreen|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Green Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleGreen|}}} | {{#ifexpr: {{{dragonScaleGreen|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Green Dragon Scale|no}}*</div>{{#vardefine:hasScales|0}} }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleRed|}}} | {{#ifexpr: {{{dragonScaleRed|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Red Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleRed|}}} | {{#ifexpr: {{{dragonScaleRed|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Red Dragon Scale|no}}*</div>{{#vardefine:hasScales|0}} }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleWhite|}}} | {{#ifexpr: {{{dragonScaleWhite|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|White Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleWhite|}}} | {{#ifexpr: {{{dragonScaleWhite|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|White Dragon Scale|no}}*</div>{{#vardefine:hasScales|0}} }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleYellow|}}} | {{#ifexpr: {{{dragonScaleYellow|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Yellow Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleYellow|}}} | {{#ifexpr: {{{dragonScaleYellow|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Yellow Dragon Scale|no}}*</div>{{#vardefine:hasScales|0}} }} }}
 
|- style="border-bottom: 1px solid #999"
 
|- style="border-bottom: 1px solid #999"
 
|Elf/Gargoyle
 
|Elf/Gargoyle
Line 142: Line 142:
 
|style="color:white;background-color: #345!important;"|{{#if: {{{feathers|}}} | {{#ifexpr: {{{feathers|}}} > 0 | <div style="transform: translate(0,4px);position: relative;left: -17px;">{{UO_Image|image|Feather|no}}</div> }} }}
 
|style="color:white;background-color: #345!important;"|{{#if: {{{feathers|}}} | {{#ifexpr: {{{feathers|}}} > 0 | <div style="transform: translate(0,4px);position: relative;left: -17px;">{{UO_Image|image|Feather|no}}</div> }} }}
 
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonBlood|}}} | {{#ifexpr: {{{dragonBlood|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Dragon's Blood|no}}</div> }} }}
 
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonBlood|}}} | {{#ifexpr: {{{dragonBlood|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Dragon's Blood|no}}</div> }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleBlack|}}} | {{#ifexpr: {{{dragonScaleBlack|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Black Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleBlack|}}} | {{#ifexpr: {{{dragonScaleBlack|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Black Dragon Scale|no}}*</div> }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleBlue|}}} | {{#ifexpr: {{{dragonScaleBlue|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Blue Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleBlue|}}} | {{#ifexpr: {{{dragonScaleBlue|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Blue Dragon Scale|no}}*</div> }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleGreen|}}} | {{#ifexpr: {{{dragonScaleGreen|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Green Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleGreen|}}} | {{#ifexpr: {{{dragonScaleGreen|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Green Dragon Scale|no}}*</div> }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleRed|}}} | {{#ifexpr: {{{dragonScaleRed|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Red Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleRed|}}} | {{#ifexpr: {{{dragonScaleRed|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Red Dragon Scale|no}}*</div> }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleWhite|}}} | {{#ifexpr: {{{dragonScaleWhite|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|White Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleWhite|}}} | {{#ifexpr: {{{dragonScaleWhite|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|White Dragon Scale|no}}*</div> }} }}
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleYellow|}}} | {{#ifexpr: {{{dragonScaleYellow|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Yellow Dragon Scale|no}}</div> }} }}
+
|style="color:white;background-color: #345!important;"|{{#if: {{{dragonScaleYellow|}}} | {{#ifexpr: {{{dragonScaleYellow|}}} > 0 | <div style="position: relative;left: -17px;">{{UO_Image|image|Yellow Dragon Scale|no}}*</div> }} }}
 
|- style="border-bottom: 1px solid #999"
 
|- style="border-bottom: 1px solid #999"
 
|Elf/Gargoyle
 
|Elf/Gargoyle
Line 241: Line 241:
 
{{!}}-
 
{{!}}-
 
{{!}}colspan="21"{{!}}{{#arrayprint:carvedOther|<br/> }} }}
 
{{!}}colspan="21"{{!}}{{#arrayprint:carvedOther|<br/> }} }}
 +
{{#ifeq: {{#var:hasScales}} | 1 |
 +
{{!}}- style="border-top: 1px solid #999"
 +
{{!}} colspan="21" {{!}} * Only 1 color of Dragon Scale will be given.}}
 
|}
 
|}

Revision as of 22:39, 22 June 2017

Loot
Gold unknown
Base Loot unknown
Special Loot unknown
...w/Harvester's 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