Difference between revisions of "Template:InfoBox UOItem"

m
m
Line 11: Line 11:
 
<!--  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}}} }}
+
| <nowiki>
{{#if: {{{exceptional|}}}        | exceptional }}
+
</nowiki>{{#if: {{{crafter|}}}            | <br/>{{{crafterText|Crafted}}} By {{{crafter}}} }} <nowiki>
{{#if: {{{alignment|}}}          | {{#switch: {{padleft:|1|{{{alignment}}} }}
+
</nowiki>{{#if: {{{exceptional|}}}        | <br/>exceptional }} <nowiki>
 +
</nowiki>{{#if: {{{alignment|}}}          | <br/>{{#switch: {{padleft:|1|{{{alignment}}} }}  
 
   | b = Blessed
 
   | b = Blessed
 
   | c = Cursed
 
   | c = Cursed
 
   | #default =
 
   | #default =
}} }}
+
}} }} <nowiki>
{{#if: {{{spell_channeling|}}}  | Spell Channeling }}
+
</nowiki>{{#if: {{{spell_channeling|}}}  | <br/>Spell Channeling }} <nowiki>
{{#if: {{{weight|}}}            | {{#replace: {{{weight}}}-| to }} stone{{#ifeq: {{{weight}}} | 1 | | s }} | unknown weight }}
+
</nowiki>{{#if: {{{weight|}}}            | <br/>{{#replace: {{{weight}}}-| to }} stone{{#ifeq: {{{weight}}} | 1 | | s }} | unknown weight }} <nowiki>
{{#if: {{{resist_physical|}}}    | <span style="color={{#var:color_physical}}"> Physical Resist {{{resist_physical}}}% </span>}}
+
</nowiki>{{#if: {{{resist_physical|}}}    | <br/><span style="color={{#var:color_physical}}"> Physical Resist {{{resist_physical}}}% </span>}} <nowiki>
{{#if: {{{resist_fire|}}}        | <span style="color={{#var:color_fire}}">    Fire Resist {{{resist_fire}}}%        </span>}}
+
</nowiki>{{#if: {{{resist_fire|}}}        | <br/><span style="color={{#var:color_fire}}">    Fire Resist {{{resist_fire}}}%        </span>}} <nowiki>
{{#if: {{{resist_cold|}}}        | <span style="color={{#var:color_cold}}">    Cold Resist {{{resist_cold}}}%        </span>}}
+
</nowiki>{{#if: {{{resist_cold|}}}        | <br/><span style="color={{#var:color_cold}}">    Cold Resist {{{resist_cold}}}%        </span>}} <nowiki>
{{#if: {{{resist_poison|}}}      | <span style="color={{#var:color_poison}}">  Poison Resist {{{resist_poison}}}%    </span>}}
+
</nowiki>{{#if: {{{resist_poison|}}}      | <br/><span style="color={{#var:color_poison}}">  Poison Resist {{{resist_poison}}}%    </span>}} <nowiki>
{{#if: {{{resist_energy|}}}      | <span style="color={{#var:color_energy}}">  Energy Resist {{{resist_energy}}}%    </span>}}
+
</nowiki>{{#if: {{{resist_energy|}}}      | <br/><span style="color={{#var:color_energy}}">  Energy Resist {{{resist_energy}}}%    </span>}} <nowiki>
{{#if: {{{durability_increase|}}}| Durability {{{durability_increase}}}% }}
+
</nowiki>{{#if: {{{durability_increase|}}}| <br/>Durability {{{durability_increase}}}% }} <nowiki>
{{#if: {{{hci|}}}                | Hit Chance Increase {{{hci}}}% }}
+
</nowiki>{{#if: {{{hci|}}}                | <br/>Hit Chance Increase {{{hci}}}% }} <nowiki>
{{#if: {{{dci|}}}                | Defence Chance Increase {{{dci}}}% }}
+
</nowiki>{{#if: {{{dci|}}}                | <br/>Defence Chance Increase {{{dci}}}% }} <nowiki>
{{#if: {{{slayer}}}             | {{#arraydefine: slayerList | {{{slayer}}} }}{{#loop: i
+
</nowiki>{{#if: {{{slayer|}}}             | {{#arraydefine: slayerList | {{{slayer}}} }}{{#loop: i
 
   | 0
 
   | 0
 
   | {{#arraysize:slayerList}}
 
   | {{#arraysize:slayerList}}
   | {{#if:{{#expr:{{#var:i}}>0}} |<br/>}} [[UO:{{#arrayindex:paramList|{{#var:i}} }} Slayer|{{#arrayindex:paramList|{{#var:i}} }} Slayer]]
+
   | <br/>[[UO:{{#arrayindex:paramList|{{#var:i}} }} Slayer|{{#arrayindex:paramList|{{#var:i}} }} Slayer]]
}} }}
+
}} }} <nowiki>
{{#if: {{{damage_increase|}}}    | Damage Increase {{{damage_increase}}}% }}
+
</nowiki>{{#if: {{{damage_increase|}}}    | <br/>Damage Increase {{{damage_increase}}}% }} <nowiki>
{{#if: {{{damage_physical|}}}    | <span style="color={{#var:color_physical}}"> Physical Damage {{{damage_physical}}}% </span>}}
+
</nowiki>{{#if: {{{damage_physical|}}}    | <br/><span style="color={{#var:color_physical}}"> Physical Damage {{{damage_physical}}}% </span>}} <nowiki>
{{#if: {{{damage_fire|}}}        | <span style="color={{#var:color_fire}}">    Fire Damage  {{{damage_fire}}}%      </span>}}
+
</nowiki>{{#if: {{{damage_fire|}}}        | <br/><span style="color={{#var:color_fire}}">    Fire Damage  {{{damage_fire}}}%      </span>}} <nowiki>
{{#if: {{{damage_cold|}}}        | <span style="color={{#var:color_cold}}">    Cold Damage  {{{damage_cold}}}%      </span>}}
+
</nowiki>{{#if: {{{damage_cold|}}}        | <br/><span style="color={{#var:color_cold}}">    Cold Damage  {{{damage_cold}}}%      </span>}} <nowiki>
{{#if: {{{damage_poison|}}}      | <span style="color={{#var:color_poison}}">  Poison Damage {{{damage_poison}}}%    </span>}}
+
</nowiki>{{#if: {{{damage_poison|}}}      | <br/><span style="color={{#var:color_poison}}">  Poison Damage {{{damage_poison}}}%    </span>}} <nowiki>
{{#if: {{{damage_energy|}}}      | <span style="color={{#var:color_energy}}">  Energy Damage {{{damage_energy}}}%    </span>}}
+
</nowiki>{{#if: {{{damage_energy|}}}      | <br/><span style="color={{#var:color_energy}}">  Energy Damage {{{damage_energy}}}%    </span>}} <nowiki>
{{#if: {{{damage_chaos|}}}      | <span style="color={{#var:color_energy}}">  Chaos Damage  {{{damage_chaos}}}%      </span>}}
+
</nowiki>{{#if: {{{damage_chaos|}}}      | <br/><span style="color={{#var:color_energy}}">  Chaos Damage  {{{damage_chaos}}}%      </span>}}  
 +
 
 +
 
 +
 
 
|}
 
|}

Revision as of 15:31, 14 July 2016




 This image is not yet available. 
unknown weight