Difference between revisions of "Template:Itembox"

m
m
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<span style="font-size:20px; font-style:italic; font-weight:bold; text-align:center;">This entire page and template is currently in the process of being refactored. (11/26/09)</span>
+
<span style="font-size:20px; font-style:italic; font-weight:bold; text-align:center;">This entire page and template is currently in the process of being refactored. (11/27/09)</span>
 
{{Template Overview
 
{{Template Overview
 
|usedon=item
 
|usedon=item
Line 179: Line 179:
 
{{Template Parameter
 
{{Template Parameter
 
|name=image
 
|name=image
|usage=Optional
 
 
|takes=a string
 
|takes=a string
 
|denotes=the name of a valid image of the item on UOGuide
 
|denotes=the name of a valid image of the item on UOGuide
Line 189: Line 188:
 
{{Template Parameter
 
{{Template Parameter
 
|name=imageheight
 
|name=imageheight
|usage=Mandatory, unless no value is supplied for <span style="font-family:monospace;">image</span>.
+
|usage=mandatory
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the height of the item image
 
|denotes=the height of the item image
 
|generates=the layout code necessary to vertically center the image in the containing area of the backpack
 
|generates=the layout code necessary to vertically center the image in the containing area of the backpack
 +
|othernotes=This parameter is mandatory unless no value is supplied for {{Monospace|image}}.
 
|validvalues=Any whole number.
 
|validvalues=Any whole number.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
 
|name=name
 
|name=name
|usage=Optional
 
 
|takes=a string
 
|takes=a string
 
|denotes=the name of the item
 
|denotes=the name of the item
Line 207: Line 206:
 
{{Template Parameter
 
{{Template Parameter
 
|name=usesremaining
 
|name=usesremaining
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the number of uses remaining on an item
 
|denotes=the number of uses remaining on an item
Line 216: Line 214:
 
{{Template Parameter
 
{{Template Parameter
 
|name=blessed
 
|name=blessed
|usage=Optional
 
 
|takes=a string
 
|takes=a string
 
|denotes=whether the item is Blessed or Cursed
 
|denotes=whether the item is Blessed or Cursed
Line 224: Line 221:
 
{{Template Parameter
 
{{Template Parameter
 
|name=weight
 
|name=weight
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the weight of the item
 
|denotes=the weight of the item
Line 232: Line 228:
 
{{Template Parameter
 
{{Template Parameter
 
|name=swingspeedincrease
 
|name=swingspeedincrease
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the amount of Swing Speed Increase on the item
 
|denotes=the amount of Swing Speed Increase on the item
Line 240: Line 235:
 
{{Template Parameter
 
{{Template Parameter
 
|name=physicalresist
 
|name=physicalresist
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the amount of Physical Resist on the item
 
|denotes=the amount of Physical Resist on the item
Line 248: Line 242:
 
{{Template Parameter
 
{{Template Parameter
 
|name=fireresist
 
|name=fireresist
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the amount of Fire Resist on the item
 
|denotes=the amount of Fire Resist on the item
Line 256: Line 249:
 
{{Template Parameter
 
{{Template Parameter
 
|name=coldresist
 
|name=coldresist
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the amount of Cold Resist on the item
 
|denotes=the amount of Cold Resist on the item
Line 264: Line 256:
 
{{Template Parameter
 
{{Template Parameter
 
|name=poisonresist
 
|name=poisonresist
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the amount of Poison Resist on the item
 
|denotes=the amount of Poison Resist on the item
Line 272: Line 263:
 
{{Template Parameter
 
{{Template Parameter
 
|name=energyresist
 
|name=energyresist
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the amount of Energy Resist on the item
 
|denotes=the amount of Energy Resist on the item
Line 280: Line 270:
 
{{Template Parameter
 
{{Template Parameter
 
|name=physicaldamage
 
|name=physicaldamage
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the percentage of Physical Damage on the item
 
|denotes=the percentage of Physical Damage on the item
Line 288: Line 277:
 
{{Template Parameter
 
{{Template Parameter
 
|name=firedamage
 
|name=firedamage
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the percentage of Fire Damage on the item
 
|denotes=the percentage of Fire Damage on the item
Line 296: Line 284:
 
{{Template Parameter
 
{{Template Parameter
 
|name=colddamage
 
|name=colddamage
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the percentage of Cold Damage on the item
 
|denotes=the percentage of Cold Damage on the item
Line 304: Line 291:
 
{{Template Parameter
 
{{Template Parameter
 
|name=poisondamage
 
|name=poisondamage
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the percentage of Poison Damage on the item
 
|denotes=the percentage of Poison Damage on the item
Line 312: Line 298:
 
{{Template Parameter
 
{{Template Parameter
 
|name=energydamage
 
|name=energydamage
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the percentage of Energy Damage on the item
 
|denotes=the percentage of Energy Damage on the item
Line 320: Line 305:
 
{{Template Parameter
 
{{Template Parameter
 
|name=handedweapon
 
|name=handedweapon
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=whether the item is wielded with one (1) or two (2) hands
 
|denotes=whether the item is wielded with one (1) or two (2) hands
Line 328: Line 312:
 
{{Template Parameter
 
{{Template Parameter
 
|name=durability
 
|name=durability
|usage=Optional
 
 
|takes=a whole number
 
|takes=a whole number
 
|denotes=the minimum and maximum durability of the item
 
|denotes=the minimum and maximum durability of the item

Revision as of 23:06, 26 November 2009

This entire page and template is currently in the process of being refactored. (11/27/09)

Template:Itembox is designed for use on item pages to display an item's picture and properties. It is designed to simulate the item being in a character's backpack with the standard in-game cursor hovering over it and displaying the item's tooltip, all in the format found in the the Ultima Online Classic Client.

Note: If the Classic Client is ever dropped in favor of the Enhanced Client, the look and feel of this template will be changed accordingly.

All of the properties that are displayed in the tooltip portion of the template are displayed as centered and using white text except for the name of the item, which is displayed in yellow text. Most item property names also serve as links to their corresponding pages. The order in which the item properties are displayed is designed to be as close as possible to the order seen in UO. The order in which the template's parameters are used does not affect this order.

Notes on Usage

Since it is highly unlikely, if not impossible, that an item will ever be encountered that uses absolutely every item property that is available in this template, Template:Item Infobox has been designed with conditional parameters. This means that when using this template on an item's page it is intended that only the parameters which correspond to that specific item's properties should be included. Unlike many other templates that show in their entirety no matter what, if one of the parameters from this template is not included or left blank, its associated property will simply not display at all. It is recommended that blank parameters be left out entirely when using this template, as their inclusion will lead to pages being unnecessarily and excessively long and unreadable for editors.

Template

{{Item Infobox
|image=
|imageheight=
|name=
|usesremaining=
|blessed=
|weight=
|armorset=
|weaponarmorset=
|jewelryset=
|durabilityincrease=
|artifactrarity=
|elvesonly=
|gargoylesonly=
|ammo=
|damagemodifier=
|alchemy=
|anatomy=
|animallore=
|animaltaming=
|archery=
|armslore=
|begging=
|blacksmithing=
|bowcraftfletching=
|bushido=
|camping=
|carpentry=
|cartography=
|chivalry=
|cooking=
|detectinghidden=
|discordance=
|evaluatingintelligence=
|fencing=
|fishing=
|focus=
|forensicevaluation=
|glassblowing=
|healing=
|herding=
|hiding=
|imbuing=
|inscription=
|itemidentification=
|lockpicking=
|lumberjacking=
|macefighting=
|magery=
|masonry=
|meditation=
|mining=
|musicianship=
|necromancy=
|ninjitsu=
|parrying=
|peacemaking=
|poisoning=
|provocation=
|removetrap=
|resistingspells=
|snooping=
|spellweaving=
|spiritspeak=
|stealing=
|stealth=
|swordsmanship=
|tactics=
|tailoring=
|tasteidentification=
|tinkering=
|tracking=
|veterinary=
|wrestling=
|randomskill=
|randomcombatskill=
|requirementmondainslegacy=
|velocity=
|spellchanneling=
|mageweapon=
|hitlifeleech=
|hitstaminaleech=
|hitmanaleech=
|slayer1=
|slayer2=
|slayer3=
|randomitemproperty1=
|randomitemproperty2=
|hitdispel=
|hitfireball=
|hitharm=
|hitlightning=
|hitmagicarrow=
|hitenergyarea=
|hitfirearea=
|hitphysicalarea=
|hitpoisonarea=
|hitlowerdefense=
|hitlowerattack=
|balanced=
|randomprotection=
|increasedweapondamage=
|selfrepair=
|strengthbonus=
|dexteritybonus=
|intelligencebonus=
|hitpointincrease=
|staminaincrease=
|manaincrease=
|hitpointregeneration=
|staminaregeneration=
|manaregeneration=
|nightsight=
|luck=
|enhancepotions=
|reflectphysicaldamage=
|hitchanceincrease=
|defensechanceincrease=
|fastercasting=
|fastercastrecovery=
|swingspeedincrease=
|damageincrease=
|spelldamageincrease=
|lowermanacost=
|lowerreagantcost=
|arcanecharges=
|physicalresist=
|fireresist=
|coldresist=
|poisonresist=
|energyresist=
|magearmor=
|usebestweaponskill=
|physicaldamage=
|firedamage=
|colddamage=
|poisondamage=
|energydamage=
|mindamage=
|maxdamage=
|weaponspeed=
|range=
|lowerrequirements=
|strengthrequirement=
|handedweapon=
|skillrequired=
|durability=
|mindurability=
|maxdurability=
|lowerammocost=
|chargesremaining=
|contentsitems=
|contentsstones=
|contents2items=
|contents2stones=
|weightreduction=
|replenishcharges=
|increasedkarmaloss=
|spells=
|turnedonoff=
|petals=
|commontracks=
|uncommontracks=
|raretracks=
}}

Parameters

[[Category:{{{category}}} Templates|Itembox]]

image

  • Usage: Optional
  • Description: The image parameter takes a string denoting the name of a valid image of the item on UOGuide. This is used to generate the item's image in the containing area of the backpack. If this parameter is left blank or omitted, a default value of "Image_Needed.png" is used. Although this parameter is marked as "Optional," if this parameter is not supplied a value an image will be displayed that says "IMAGE NEEDED" and the page will be put into Category:Item infoboxes without image defined so that it may be given a valid image as soon as possible.
  • Valid Value(s): Any string that is the name of a valid image on UOGuide.

imageheight

  • Usage: Mandatory
  • Description: The imageheight parameter takes a whole number denoting the height of the item image. This is used to generate the layout code necessary to vertically center the image in the containing area of the backpack. This parameter is mandatory unless no value is supplied for image.
  • Valid Value(s): Any whole number.

name

  • Usage: Optional
  • Description: The name parameter takes a string denoting the name of the item. This is used to generate the first line of the tooltip section. If this parameter is left blank or omitted, a default value of "{{PAGENAME}}" is used. It is recommended that this field be left blank unless the item's page name has a parenthetical differentiation in it; I.e. "Item Name (Item)."
  • Valid Value(s): Any string.

usesremaining

  • Usage: Optional
  • Description: The usesremaining parameter takes a whole number denoting the number of uses remaining on an item. This is used to generate the "Uses Remaining" item property in the tooltip section. Any whole number may be supplied for this parameter, as it is designed merely to display the "Uses Remaining" property with a realistic number. The ability to supply a specific value as opposed to having a default number is retained due to the possibility that some pages may exist for unique, one-of-a-kind rare items that have a specific number of uses remaining.
  • Valid Value(s): Any whole number.

blessed

  • Usage: Optional
  • Description: The blessed parameter takes a string denoting whether the item is Blessed or Cursed. This is used to generate the "Blessed" or "Cursed" item property in the tooltip section.
  • Valid Value(s): "Cursed," "CURSED," or "cursed" to display "Cursed," and any other value to display "Blessed."

weight

  • Usage: Optional
  • Description: The weight parameter takes a whole number denoting the weight of the item. This is used to generate the "Weight" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

swingspeedincrease

  • Usage: Optional
  • Description: The swingspeedincrease parameter takes a whole number denoting the amount of Swing Speed Increase on the item. This is used to generate the "Swing Speed Increase" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

physicalresist

  • Usage: Optional
  • Description: The physicalresist parameter takes a whole number denoting the amount of Physical Resist on the item. This is used to generate the "Physical Resist" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

fireresist

  • Usage: Optional
  • Description: The fireresist parameter takes a whole number denoting the amount of Fire Resist on the item. This is used to generate the "Fire Resist" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

coldresist

  • Usage: Optional
  • Description: The coldresist parameter takes a whole number denoting the amount of Cold Resist on the item. This is used to generate the "Cold Resist" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

poisonresist

  • Usage: Optional
  • Description: The poisonresist parameter takes a whole number denoting the amount of Poison Resist on the item. This is used to generate the "Poison Resist" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

energyresist

  • Usage: Optional
  • Description: The energyresist parameter takes a whole number denoting the amount of Energy Resist on the item. This is used to generate the "Energy Resist" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

physicaldamage

  • Usage: Optional
  • Description: The physicaldamage parameter takes a whole number denoting the percentage of Physical Damage on the item. This is used to generate the "Physical Damage" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

firedamage

  • Usage: Optional
  • Description: The firedamage parameter takes a whole number denoting the percentage of Fire Damage on the item. This is used to generate the "Fire Damage" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

colddamage

  • Usage: Optional
  • Description: The colddamage parameter takes a whole number denoting the percentage of Cold Damage on the item. This is used to generate the "Cold Damage" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

poisondamage

  • Usage: Optional
  • Description: The poisondamage parameter takes a whole number denoting the percentage of Poison Damage on the item. This is used to generate the "Poison Damage" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

energydamage

  • Usage: Optional
  • Description: The energydamage parameter takes a whole number denoting the percentage of Energy Damage on the item. This is used to generate the "Energy Damage" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).

handedweapon

  • Usage: Optional
  • Description: The handedweapon parameter takes a whole number denoting whether the item is wielded with one (1) or two (2) hands. This is used to generate the "One-Handed Weapon" or "Two-Handed Weapon" item property in the tooltip section.
  • Valid Value(s): "1" to display "One-Handed Weapon," or "2" to display "Two-Handed Weapon."

durability

  • Usage: Optional
  • Description: The durability parameter takes a whole number denoting the minimum and maximum durability of the item. This is used to generate the "Durability" item property in the tooltip section.
  • Valid Value(s): Any whole number greater than or equal to one (1).