Difference between revisions of "Template:InfoBox UOItem"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | {| | + | {{#vardefine: color_physical | grey }} |
− | + | {{#vardefine: color_fire | orange }} | |
− | + | {{#vardefine: color_cold | blue }} | |
− | + | {{#vardefine: color_poison | green }} | |
− | + | {{#vardefine: color_energy | red }} | |
− | | class=imagecell style="background:{{#ifeq: {{Boolean|{{{forceBlack|}}} }} | 1 | black | {{#ifeq: {{Boolean|{{{forceWhite|}}} }} | 1 | | {{#ifexist:{{#var: imagename}} | {{checkContrast | hue={{{hue|}}} }} |}} }} }}" | {{#ifexist:{{#var: imagename}}|[[{{#var: imagename}}{{!}}Image of {{{name}}}]]| This image is not yet available. {{#if:{{{graphic|}}}|{{#if:{{{hue|}}}|<br/><br/>[http://services.servuo.com/uoapi/item/{{{graphic}}}/{{{hue}}} You can try this image.]<br/><br/>If it is the correct image, with the correct hue,<br/>you can save it, then [http://stratics.com/w/index.php?title=Special:Upload&wpDestFile={{#var: imagename}} upload it] to Stratics! | + | |
+ | {| class=infobox | ||
+ | | class=imagecell colspan="2" style="background:{{#ifeq: {{Boolean|{{{forceBlack|}}} }} | 1 | black | {{#ifeq: {{Boolean|{{{forceWhite|}}} }} | 1 | | {{#ifexist:{{#var: imagename}} | {{checkContrast | hue={{{hue|}}} }} |}} }} }}" | {{#ifexist:{{#var: imagename}}|[[{{#var: imagename}}{{!}}Image of {{{name}}}]]| This image is not yet available. {{#if:{{{graphic|}}}|{{#if:{{{hue|}}}|<br/><br/>[http://services.servuo.com/uoapi/item/{{{graphic}}}/{{{hue}}} You can try this image.]<br/><br/>If it is the correct image, with the correct hue,<br/>you can save it, then [http://stratics.com/w/index.php?title=Special:Upload&wpDestFile={{#var: imagename}} upload it] to Stratics! | ||
<small> (Image API is provided by ServUO,<br/>and is used with permission.)</small>}} |}} |}} | <small> (Image API is provided by ServUO,<br/>and is used with permission.)</small>}} |}} |}} | ||
<!-- The ServUO API is used with the written permission of dmurphy at servuo.com. --> | <!-- The ServUO API is used with the written permission of dmurphy at servuo.com. --> | ||
|- | |- | ||
− | | {{{ | + | {{#if: {{{crafter|}}} | {{{crafterText|Crafted}}} By {{{crafter}}} }} |
− | | | + | {{#if: {{{exceptional|}}} | exceptional }} |
− | | {{#if: {{{ | + | {{#if: {{{alignment|}}} | {{#switch: {{padleft:|1|{{{alignment}}} }} |
− | | | + | | b = Blessed |
− | | {{#if: {{{ | + | | c = Cursed |
− | | | + | | #default = |
− | | {{#if: {{{ | + | }} }} |
− | | | + | {{#if: {{{spell_channeling|}}} | Spell Channeling }} |
− | + | {{#if: {{{weight|}}} | {{#replace: {{{weight}}}-| to }} stone{{#ifeq: {{{weight}}} | 1 | | s }} | unknown weight }} | |
− | | | + | {{#if: {{{resist_physical|}}} | <span style="color={{#var:color_physical}}"> Physical Resist {{{resist_physical}}}% </span>}} |
− | | | + | {{#if: {{{resist_fire|}}} | <span style="color={{#var:color_fire}}"> Fire Resist {{{resist_fire}}}% </span>}} |
− | | # | + | {{#if: {{{resist_cold|}}} | <span style="color={{#var:color_cold}}"> Cold Resist {{{resist_cold}}}% </span>}} |
+ | {{#if: {{{resist_poison|}}} | <span style="color={{#var:color_poison}}"> Poison Resist {{{resist_poison}}}% </span>}} | ||
+ | {{#if: {{{resist_energy|}}} | <span style="color={{#var:color_energy}}"> Energy Resist {{{resist_energy}}}% </span>}} | ||
+ | {{#if: {{{durability_increase|}}}| Durability {{{durability_increase}}}% }} | ||
+ | {{#if: {{{hci|}}} | Hit Chance Increase {{{hci}}}% }} | ||
+ | {{#if: {{{dci|}}} | Defence Chance Increase {{{dci}}}% }} | ||
+ | {{#if: {{{slayer}}} | {{#arraydefine: slayerList | {{{slayer}}} }}{{#loop: i | ||
+ | | 0 | ||
+ | | {{#arraysize:slayerList}} | ||
+ | | {{#if:{{#expr:{{#var:i}}>0}} |<br/>}} [[UO:{{#arrayindex:paramList|{{#var:i}} }} Slayer|{{#arrayindex:paramList|{{#var:i}} }} Slayer]] | ||
}} }} | }} }} | ||
− | | | + | {{#if: {{{damage_increase|}}} | Damage Increase {{{damage_increase}}}% }} |
− | | {{# | + | {{#if: {{{damage_physical|}}} | <span style="color={{#var:color_physical}}"> Physical Damage {{{damage_physical}}}% </span>}} |
− | | | + | {{#if: {{{damage_fire|}}} | <span style="color={{#var:color_fire}}"> Fire Damage {{{damage_fire}}}% </span>}} |
− | + | {{#if: {{{damage_cold|}}} | <span style="color={{#var:color_cold}}"> Cold Damage {{{damage_cold}}}% </span>}} | |
+ | {{#if: {{{damage_poison|}}} | <span style="color={{#var:color_poison}}"> Poison Damage {{{damage_poison}}}% </span>}} | ||
+ | {{#if: {{{damage_energy|}}} | <span style="color={{#var:color_energy}}"> Energy Damage {{{damage_energy}}}% </span>}} | ||
+ | {{#if: {{{damage_chaos|}}} | <span style="color={{#var:color_energy}}"> Chaos Damage {{{damage_chaos}}}% </span>}} | ||
|} | |} |