Difference between revisions of "Template:InfoBox UOItem"

m
m
Line 1: Line 1:
{| class="infobox centeredtext" style="width:68%;{{#switch: {{padleft:|1|{{{position}}} }}
+
{{#vardefine: color_physical | grey  }}
| c = margin: 0 auto
+
{{#vardefine: color_fire    | orange }}
| r = float:right
+
{{#vardefine: color_cold    | blue  }}
| #default = float:left
+
{{#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}}}]]|&nbsp;This image is not yet available.&nbsp;{{#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}}}]]|&nbsp;This image is not yet available.&nbsp;{{#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. -->
 
|-
 
|-
| {{{name}}}
+
{{#if: {{{crafter|}}}            | {{{crafterText|Crafted}}} By {{{crafter}}} }}
|-
+
{{#if: {{{exceptional|}}}        | exceptional }}
| {{#if: {{{crafter|}}} | {{ucfirst:{{{crafterText|crafted}}} }} By {{{crafter}}} }}
+
{{#if: {{{alignment|}}}          | {{#switch: {{padleft:|1|{{{alignment}}} }}
|-
+
  | b = Blessed
| {{#if: {{{charges|}}} | [ Charges: {{{charges}}} ] }}
+
  | c = Cursed
|-
+
  | #default =
| {{#if: {{{exceptional|}}} | exceptional }}
+
}} }}
|-
+
{{#if: {{{spell_channeling|}}}   | Spell Channeling }}
| {{#if: {{{alignment|}}} | {{#switch: {{padleft:|1|{{{alignment}}} }}
+
{{#if: {{{weight|}}}            | {{#replace: {{{weight}}}-| to }} stone{{#ifeq: {{{weight}}} | 1 | | s }} | unknown weight }}
| b = Blessed
+
{{#if: {{{resist_physical|}}}    | <span style="color={{#var:color_physical}}"> Physical Resist {{{resist_physical}}}% </span>}}
| c = Cursed
+
{{#if: {{{resist_fire|}}}        | <span style="color={{#var:color_fire}}">    Fire Resist {{{resist_fire}}}%        </span>}}
| #default =
+
{{#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}}}% }}
| {{#ifeq: {{Boolean|{{{spell_channeling|}}} | 1 | Spell Channeling }}
+
{{#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: {{{weight|}}} | {{#replace: {{{weight}}}|-| to }} stone{{#ifeq: {{{weight}}} | 1 | | s }} | unknown weight }}
+
{{#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>}}
 
|}
 
|}

Revision as of 16:18, 14 July 2016




unknown weight
Slayer
 This image is not yet available.