Difference between revisions of "Template:RareItem"

m
m (Undo revision 119163 by BrianFreud (talk))
Line 1: Line 1:
{{#vardefine: color_physical | #333  }}
+
__NOEDITSECTION__
{{#vardefine: color_fire    | darkgoldenrod }}
+
<div style="float:left; width:68%;">
{{#vardefine: color_cold    | blue  }}
+
={{{name}}}=
{{#vardefine: color_poison  | green  }}
+
{{#ifeq: {{Boolean|{{{crafted}}} }} | 1 |==&nbsp;&nbsp;&nbsp;&nbsp;''{{{craftText}}} by {{{crafter}}}''== }}
{{#vardefine: color_energy  | red    }}
+
{{#ifeq: {{Boolean|{{{aka|}}} }} | 1 |==a.k.a.: {{{aka}}}== }}
{{#vardefine: color_chaos    | black  }}
+
{{#ifeq: {{Boolean|{{{engraving|}}} }} | 1 |==engraving: {{{engraving}}}== }}
{{#vardefine: hasProps | 0 }}
+
{{#ifeq: {{Boolean|{{{extraprop|}}} }} | 1 |=='''{{{extraprop}}}'''== }}
{| class="infobox {{#if: {{{position|}}} | {{{position|}}}infobox }}"
+
</div>{{#vardefine: imagename|File:UO-Item-{{{graphic}}}-{{{hue}}}.png}}
|-
+
{{ InfoBox_UOItem
| 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}}}]]|&nbsp;This image is not yet available.&nbsp;{{#if:{{{graphic|}}}|{{#if:{{{hue|}}}|{{#vardefine: hasProps | 1 }}<br/>{{#vardefine: hasProps | 1 }}<br/>[http://services.servuo.com/uoapi/item/{{{graphic}}}/{{{hue}}} You can try this image.]{{#vardefine: hasProps | 1 }}<br/>{{#vardefine: hasProps | 1 }}<br/>If it is the correct image,{{#vardefine: hasProps | 1 }}<br/>with the correct hue,{{#vardefine: hasProps | 1 }}<br/>you can save it, then [http://stratics.com/w/index.php?title=Special:Upload&wpDestFile={{#var: imagename}} upload it] to Stratics!
+
| position = left
<small> (Image API is provided by ServUO,{{#vardefine: hasProps | 1 }}<br/>and is used with permission.)</small>}} |}} |}}
+
| graphic = {{{graphic}}}
<!--  The ServUO API is used with the written permission of dmurphy at servuo.com. -->
+
| hue = {{{hue}}}
|-
+
| name            = Some Great Item
|  style="text-align: center" | <nowiki>
+
| crafter          = Elise Symeria The Wikieditor
</nowiki>{{#if: {{{crafter|}}}           | {{#vardefine: hasProps | 1 }}<br/>{{{crafterText|Crafted}}} By {{{crafter}}} }} <nowiki>
+
| charges          = 10
</nowiki>{{#if: {{{exceptional|}}}        | {{#vardefine: hasProps | 1 }}<br/>Exceptional }} <nowiki>
+
| remaining_charges          = 12
</nowiki>{{#if: {{{alignment|}}}         | {{#vardefine: hasProps | 1 }}<br/>{{#switch: {{lcfirst:{{padleft:|1|{{{alignment}}} }} }}
+
| exceptional     = yes
  | b = Blessed
+
| alignment        = blessed
  | c = Cursed
+
| spell_channeling = true
  | #default =
+
| weight          = 5
}} }} <nowiki>
+
| resist_physical  = 1
</nowiki>{{#if: {{{spell_channeling|}}}   | {{#vardefine: hasProps | 1 }}<br/>Spell Channeling }} <nowiki>
+
| resist_fire      = 2
</nowiki>{{#if: {{{weight|}}}            | {{#vardefine: hasProps | 1 }}<br/>{{#replace: {{{weight}}}|-| to }} stone{{#ifeq: {{{weight}}} | 1 | | s }} | unknown weight[[Category:UO:Items with unknown weight]] }} <nowiki>
+
| resist_cold      = 3
</nowiki>{{#if: {{{charges|}}}                | {{#vardefine: hasProps | 1 }}<br/>[ Charges: {{{charges}}} ] }}<nowiki>
+
| resist_poison    = 4
</nowiki>{{#if: {{{resist_physical|}}}    | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_physical}}"> Physical Resist {{{resist_physical}}}% </span>}} <nowiki>
+
| resist_energy    = 5
</nowiki>{{#if: {{{resist_fire|}}}        | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_fire}}">    Fire Resist {{{resist_fire}}}%        </span>}} <nowiki>
+
| durability_increase = 120
</nowiki>{{#if: {{{resist_cold|}}}        | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_cold}}">    Cold Resist {{{resist_cold}}}%        </span>}} <nowiki>
+
| hci = 10
</nowiki>{{#if: {{{resist_poison|}}}      | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_poison}}">  Poison Resist {{{resist_poison}}}%    </span>}} <nowiki>
+
| dci = 10
</nowiki>{{#if: {{{resist_energy|}}}      | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_energy}}">  Energy Resist {{{resist_energy}}}%    </span>}} <nowiki>
+
| slayer          = Wiki Editor
</nowiki>{{#if: {{{durability_increase|}}}| {{#vardefine: hasProps | 1 }}<br/>Durability {{{durability_increase}}}% }} <nowiki>
+
| damage_increase = 20
</nowiki>{{#if: {{{hci|}}}                | {{#vardefine: hasProps | 1 }}<br/>Hit Chance Increase {{{hci}}}% }} <nowiki>
+
| damage_physical = 100
</nowiki>{{#if: {{{dci|}}}               | {{#vardefine: hasProps | 1 }}<br/>Defence Chance Increase {{{dci}}}% }} <nowiki>
+
| damage_fire      = 2
</nowiki>{{#if: {{{slayer|}}}            | {{#arraydefine: slayerList | {{{slayer}}} }}{{#loop: i
+
| damage_cold      = 3
  | 0
+
| damage_poison    = 4
  | {{#arraysize:slayerList}}
+
| damage_energy    = 5
  | {{#vardefine: hasProps | 1 }}<br/>[[UO:{{#arrayindex:slayerList|{{#var:i}} }} Slayer]]
+
| damage_chaos     = 6
}} }} <nowiki>
+
| damage_min      = 10
</nowiki>{{#if: {{{damage_increase|}}}    | {{#vardefine: hasProps | 1 }}<br/>Damage Increase {{{damage_increase}}}% }} <nowiki>
+
| damage_max      = 14
</nowiki>{{#if: {{{damage_physical|}}}    | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_physical}}"> Physical Damage {{{damage_physical}}}% </span>}} <nowiki>
+
| speed            = 2.5
</nowiki>{{#if: {{{damage_fire|}}}        | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_fire}}">    Fire Damage  {{{damage_fire}}}%      </span>}} <nowiki>
+
| hands_required   = 1
</nowiki>{{#if: {{{damage_cold|}}}        | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_cold}}">    Cold Damage  {{{damage_cold}}}%      </span>}} <nowiki>
+
| skill_required   = Archery
</nowiki>{{#if: {{{damage_poison|}}}      | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_poison}}">  Poison Damage {{{damage_poison}}}%    </span>}} <nowiki>
+
| strength_req    = 10
</nowiki>{{#if: {{{damage_energy|}}}     | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_energy}}">  Energy Damage {{{damage_energy}}}%    </span>}} <nowiki>
+
| durability_min   = 38
</nowiki>{{#if: {{{damage_chaos|}}}      | {{#vardefine: hasProps | 1 }}<br/><span style="color:{{#var:color_chaos}}">  Chaos Damage  {{{damage_chaos}}}%      </span>}}  <nowiki>
+
| durability_max   = 38
</nowiki>{{#if: {{{damage_min|}}}        | {{#if: {{{damage_max|}}} | {{#vardefine: hasProps | 1 }}<br/>Weapon Damage {{{damage_min|}}} - {{{damage_max|}}} }} }} <nowiki>
+
| distiller = Brian The WikiEditor
</nowiki>{{#if: {{{speed|}}}              | {{#vardefine: hasProps | 1 }}<br/>Weapon Speed {{{speed}}}% }} <nowiki>
+
| fullness = nearly empty
</nowiki>{{#if: {{{strength_req|}}}      | {{#vardefine: hasProps | 1 }}<br/>Strength Requirement {{{strength_req}}} }} <nowiki>
+
| matured = Test Liquor 2
</nowiki>{{#if: {{{hands_required|}}}    | {{#vardefine: hasProps | 1 }}<br/>{{#switch: {{lcfirst:{{padleft:|1|{{{hands_required}}} }} }}
+
| liquor_type = arak
  | 1 = One
+
| strong_liquor = true
  | o = One
+
| maturing = Test Liquor 1
  | 2 = Two
+
| bacterial_resistance
  | t = Two
+
| explosive = true
  | #default =
+
| start_date = 21/07/16
}}-Handed Weapon }} <nowiki>
+
| bacterial_resistance = ++
</nowiki>{{#if: {{{skill_required|}}}    | {{#vardefine: hasProps | 1 }}<br/>Skill Required: {{#switch: {{lcfirst:{{padleft:|1|{{{skill_required}}} }} }}
+
| no_drop         = true
  | a = Archery
+
| no_trade         = true
  | f = Fencing
+
| no_dye           = true
  | m = Mace Fighting
+
| account_bound   = true
  | s = Swordsmanship
+
| shard_bound   = true
  | t = Throwing
+
| unknown_properties = true
  | #default =
+
}}
}} }}<nowiki>
 
</nowiki>{{#if: {{{durability_min|}}}    | {{#if: {{{durability_max|}}} | {{#vardefine: hasProps | 1 }}<br/>Durability {{{durability_min|}}} / {{{durability_max|}}} }} }} <nowiki>
 
</nowiki>{{#if: {{{remaining_charges|}}}                | {{#vardefine: hasProps | 1 }}<br/>Remaining Charges: {{{remaining_charges}}} }}<nowiki>
 
</nowiki>{{#if: {{{spells|}}}                | {{#vardefine: hasProps | 1 }}<br/>{{{spells}}} Spells }}<nowiki>
 
</nowiki>{{#if: {{{bacterial_resistance|}}}                | {{#vardefine: hasProps | 1 }}<br/>Bacterial Resistance: {{{bacterial_resistance}}} }}<nowiki>
 
</nowiki>{{#if: {{{start_date|}}}                | {{#vardefine: hasProps | 1 }}<br/>Start Date: {{{start_date}}} }}<nowiki>
 
</nowiki>{{#if: {{{matured|}}}                | {{#vardefine: hasProps | 1 }}<br/>Matured: {{{matured}}} }}<nowiki>
 
</nowiki>{{#if: {{{maturing|}}}                | {{#vardefine: hasProps | 1 }}<br/>Maturing: {{{maturing}}} }}<nowiki>
 
</nowiki>{{#if: {{{fullness|}}}     | {{#vardefine: hasProps | 1 }}<br/>Liquor Type: {{#if: {{{strong_liquor|}}} | Strong }} {{#switch: {{lcfirst:{{padleft:|2|{{{liquor_type}}} }} }}
 
  | ak = Akvavit
 
  | ar = Arak
 
  | bo = Bourbon
 
   | br = Brandy
 
   | ca = Cassis
 
  | co = Corn Whisky
 
  | me = Melon Liqueur
 
   | mi = Mist
 
  | sp = Spirytus
 
   | wh = Whiskey
 
  | #default =  
 
}} }}<nowiki>
 
</nowiki>{{#if: {{{fullness|}}}    | {{#vardefine: hasProps | 1 }}<br/>It's {{#switch: {{lcfirst:{{padleft:|1|{{{fullness}}} }} }}
 
  | e = Empty
 
  | f = Full
 
  | h = Half Full
 
  | n = Nearly Empty
 
  | #default = Full
 
}} }}<nowiki>
 
</nowiki>{{#if: {{{explosive|}}}                | {{#vardefine: hasProps | 1 }}<br/>It Looks Explosive. }}<nowiki>
 
</nowiki>{{#if: {{{no_drop|}}}            | {{#vardefine: hasProps | 1 }}<br/>NO DROP }} <nowiki>
 
</nowiki>{{#if: {{{no_trade|}}}          | {{#vardefine: hasProps | 1 }}<br/>NO TRADE }} <nowiki>
 
</nowiki>{{#if: {{{no_dye|}}}            | {{#vardefine: hasProps | 1 }}<br/>NO DYE (not displayed) }} <nowiki>
 
</nowiki>{{#if: {{{account_bound|}}}      | {{#vardefine: hasProps | 1 }}<br/>Account Bound }} <nowiki>
 
</nowiki>{{#if: {{{shard_bound|}}}        | {{#vardefine: hasProps | 1 }}<br/>Shard Bound }}
 
<br/>
 
{{#ifeq: {{#var: hasProps }} | 0 | {{#vardefine: hasUnknownProps | 1 }} }}{{#if: {{{unknown_properties|}}} | {{#vardefine: hasUnknownProps | 1 }} }}{{#ifeq: {{#var: hasUnknownProps }} | 1 | <br/><span style="color:red">Note: The properties for this item are currently incomplete.</span><br/> }}
 
|}
 
<noinclude>
 
* forceBlack
 
::- OPTIONAL.
 
::- If true, the background for the image will be black.
 
* forceWhite
 
::- OPTIONAL.
 
::- If true, the background for the image will be white.
 
::- Note: If forceBlack and forceWhite are both set to true, the background will be black.
 
* charges
 
::- OPTIONAL.
 
::- The number of charges on an item, for properties like: [ Charges: 10 ]
 
::- This should be the max initial value for the item.
 
::- Note that there are multiple properties that display charge counts.
 
::- Default: not shown.
 
* crafter
 
::- OPTIONAL.
 
::- The name of the crafter.
 
::- Default: not shown.
 
* crafterText
 
::- OPTIONAL.
 
::- Crafted, Made, Sewn, etc.
 
::- Default: 'Crafted'
 
* exceptional
 
::- OPTIONAL.
 
::- Is it exceptional quality?
 
::- Default: not shown.
 
::- Note: "Of Exceptional Quality" still needs to be in the item name, if applicable.
 
* alignment
 
::- Optional
 
::- Blessed, Cursed, or nothing.
 
::- Default: not shown.
 
* spell_channeling
 
::- Optional
 
::- Is it spell channeling?
 
::- Default: not shown.
 
* weight
 
::- OPTIONAL.
 
::- Can be a number (1) or a range of numbers (1-24).
 
::- Default: 'unknown weight'
 
* resist_physical
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* resist_fire
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* resist_cold
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* resist_poison
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* resist_energy
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* durability_increase
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* hci
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* dci
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* slayer
 
::- Optional
 
::- The slayer type of the item.  Do not include "Slayer" at the end.
 
::- If more than one slayer type is needed, separate with commas. ("Gargoyle,Daemon")
 
::- Default: not shown
 
* damage_physical
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* damage_fire
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* damage_cold
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* damage_poison
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* damage_energy
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* damage_chaos
 
::- Optional
 
::- A number, without the %.
 
::- Default: not shown
 
* damage_min and damage_max
 
::- Optional
 
::- These two numbers together give the range in damage caused by a weapon.
 
::- Default: not shown.
 
::- Note: both must be defined for this value to be shown.
 
* speed
 
::- Optional
 
::- Weapon Speed.  A number, without the %.
 
::- Default: not shown
 
* strength_req
 
::- Optional
 
::- Strength Requirement.  A number.
 
::- Default: not shown
 
* hands_required
 
::- Optional
 
::- The number of hands required to wield a weapon.
 
::- Default: not shown
 
* skill_required
 
::- Optional
 
::- The skill required to use a weapon; one of: Archery, Fencing, Mace Fighting, Swordsmanship, Throwing
 
::- Default: not shown
 
* durability_min and durability_max
 
::- Optional
 
::- These two numbers together give the current and max durability for an item.
 
::- Default: not shown.
 
::- Note: both must be defined for this value to be shown.
 
* liquor_type
 
::- OPTIONAL.
 
::- The type of an alcohol.
 
::- Valid values: akvavit, arak, bourbon, brandy, cassis, corn whisky, melon liqueur, mist, spirytus, whiskey
 
::- See the strong_liquor parameter for strong liquors.
 
::- Default: not shown.
 
* strong_liquor
 
::- OPTIONAL.
 
::- For double distilled alcohols.
 
::- Set to 'true' if the alchol is double distilled.  (e.g. 'Strong Akvavit')
 
::- Default: not shown.
 
* maturing
 
::- OPTIONAL.
 
::- For distilled alcohols, this is the player-given name of the alchol.
 
::- Default: not shown.
 
* matured
 
::- OPTIONAL.
 
::- For distilled alcohols, this is the player-given name of the alchol.
 
::- Default: not shown.
 
* distiller
 
::- OPTIONAL.
 
::- The name of the distiller for an alcohol.
 
::- Default: not shown.
 
* start_date
 
::- OPTIONAL.
 
::- The date a player-crafted alcohol was started.
 
::- The date should be as in the properties: 'DD/MM/YY'
 
::- Default: not shown.
 
* fullness
 
::- OPTIONAL.
 
::- The state of a bottle, e.g. 'It's Full', 'It's Empty', 'It's Nearly Empty', 'It's Half Full'
 
::- Valid values: 'empty', 'full', 'half', 'nearly'.  If you'd prefer to put 'half full' or 'nearly empty', those will work as well.
 
::- Default: not shown.
 
* explosive
 
::- OPTIONAL.
 
::- Adds the "It Looks Explosive" property.
 
::- Set to true if the item has this property.
 
::- Default: not shown.
 
* bacterial_resistance
 
::- OPTIONAL.
 
::- The bacterial resistance for yeast.
 
::- Valid values: -, --, +-, +, ++
 
::- Default: not shown.
 
* spells
 
::- OPTIONAL.
 
::- The number of spells in a spellbook.
 
::- This should be the initial value for the item, not the maxium, unless there's something inherent to the number which is important (a spellbook with '124 Spells' for example).
 
::- Default: not shown.
 
* remaining_charges
 
::- OPTIONAL.
 
::- The number of charges remaining on an item, for properties like: 'Remaining Charges: 10' or '10 Charges Remaining'
 
::- This should be the max initial value for the item.
 
::- Note that there are multiple properties that display charge counts.
 
::- Default: not shown.
 
* no_drop
 
::- Optional
 
::- The item may not be dropped. (This is an internal flag set by the devs.)
 
* no_trade
 
::- Optional
 
::- The item may not be traded. (This is an internal flag set by the devs.)
 
* no_dye
 
::- Optional
 
::- The item normally WOULD be able to be dyed, but this item may not be dyed.
 
::- This is an internal flag set by the devs.  This flag is not displayed to the player.
 
* account_bound
 
::- Optional
 
::- The item may not be used by other accounts than the original one.
 
* shard_bound
 
::- Optional
 
::- The item may not be transferred between shards.
 
* unknown_properties
 
::- Optional
 
::- Set to 'true' to indicate that some or all of the properties for an item are currently not listed because we do not know them.  If the properties for an item are completely listed, remove this parameter entirely.
 
</noinclude>
 

Revision as of 15:24, 21 July 2016