Difference between revisions of "Template:RareItem"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | + | {{#vardefine: color_physical | #333 }} | |
− | + | {{#vardefine: color_fire | darkgoldenrod }} | |
− | + | {{#vardefine: color_cold | blue }} | |
− | {{#ifeq: {{Boolean|{{{ | + | {{#vardefine: color_poison | green }} |
− | {{# | + | {{#vardefine: color_energy | red }} |
− | {{# | + | {{#vardefine: color_chaos | black }} |
− | {{# | + | {| class=infobox |
− | </ | + | |- |
− | {{ | + | | class=imagecell colspan="2" style="text-align: center; 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>}} |}} |}} |
− | | | + | <!-- The ServUO API is used with the written permission of dmurphy at servuo.com. --> |
− | | | + | |- |
− | | | + | | style="text-align: center" | <nowiki> |
− | | | + | </nowiki>{{#if: {{{crafter|}}} | <br/>{{{crafterText|Crafted}}} By {{{crafter}}} }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{exceptional|}}} | <br/>Exceptional }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{alignment|}}} | <br/>{{#switch: {{padleft:|1|{{{alignment}}} }} |
− | | | + | | b = Blessed |
− | | | + | | c = Cursed |
− | | | + | | #default = |
− | | | + | }} }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{spell_channeling|}}} | <br/>Spell Channeling }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{weight|}}} | <br/>{{#replace: {{{weight}}}|-| to }} stone{{#ifeq: {{{weight}}} | 1 | | s }} | unknown weight }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{resist_physical|}}} | <br/><span style="color:{{#var:color_physical}}"> Physical Resist {{{resist_physical}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{resist_fire|}}} | <br/><span style="color:{{#var:color_fire}}"> Fire Resist {{{resist_fire}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{resist_cold|}}} | <br/><span style="color:{{#var:color_cold}}"> Cold Resist {{{resist_cold}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{resist_poison|}}} | <br/><span style="color:{{#var:color_poison}}"> Poison Resist {{{resist_poison}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{resist_energy|}}} | <br/><span style="color:{{#var:color_energy}}"> Energy Resist {{{resist_energy}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{durability_increase|}}}| <br/>Durability {{{durability_increase}}}% }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{hci|}}} | <br/>Hit Chance Increase {{{hci}}}% }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{dci|}}} | <br/>Defence Chance Increase {{{dci}}}% }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{slayer|}}} | {{#arraydefine: slayerList | {{{slayer}}} }}{{#loop: i |
− | | | + | | 0 |
− | | | + | | {{#arraysize:slayerList}} |
− | | | + | | <br/>[[UO:{{#arrayindex:slayerList|{{#var:i}} }} Slayer]] |
− | | | + | }} }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{damage_increase|}}} | <br/>Damage Increase {{{damage_increase}}}% }} <nowiki> |
− | | | + | </nowiki>{{#if: {{{damage_physical|}}} | <br/><span style="color:{{#var:color_physical}}"> Physical Damage {{{damage_physical}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{damage_fire|}}} | <br/><span style="color:{{#var:color_fire}}"> Fire Damage {{{damage_fire}}}% </span>}} <nowiki> |
− | | skill_required = Archery | + | </nowiki>{{#if: {{{damage_cold|}}} | <br/><span style="color:{{#var:color_cold}}"> Cold Damage {{{damage_cold}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{damage_poison|}}} | <br/><span style="color:{{#var:color_poison}}"> Poison Damage {{{damage_poison}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{damage_energy|}}} | <br/><span style="color:{{#var:color_energy}}"> Energy Damage {{{damage_energy}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{damage_chaos|}}} | <br/><span style="color:{{#var:color_chaos}}"> Chaos Damage {{{damage_chaos}}}% </span>}} <nowiki> |
− | | | + | </nowiki>{{#if: {{{damage_min|}}} | {{#if: {{{damage_max|}}} | Weapon Damage {{{damage_min|}}} - {{{damage_max|}}} }} }} |
− | | | + | </nowiki>{{#if: {{{speed|}}} | <br/>Weapon Speed {{{speed}}}% }} <nowiki> |
− | + | </nowiki>{{#if: {{{strength_req|}}} | <br/>Strength Requirement {{{strength_req}}} }} <nowiki> | |
− | | | + | </nowiki>{{#if: {{{hands_required|}}} | <br/>{{#switch: {{padleft:|1|{{{hands_required}}} }} |
− | + | | 1 = One | |
+ | | o = One | ||
+ | | 2 = Two | ||
+ | | t = Two | ||
+ | | #default = | ||
+ | }}-Handed Weapon }} <nowiki> | ||
+ | </nowiki>{{#if: {{{skill_required|}}} | <br/>Skill Required: {{#switch: {{padleft:|1|{{{skill_required}}} }} | ||
+ | | a = Archery | ||
+ | | f = Fencing | ||
+ | | m = Mace Fighting | ||
+ | | s = Swordsmanship | ||
+ | | t = Throwing | ||
+ | | #default = | ||
+ | }} }} <nowiki> | ||
+ | |||
+ | |} |
Revision as of 19:48, 14 July 2016
This image is not yet available. | |
unknown weight
</nowiki> <nowiki> |