Difference between revisions of "Template:Infobox item"

m (User:Thadius856/Infobox moved to Template:Infobox item: Having gotten the nod from a few admins, moving to template namespace.)
(Some noinclude, some includeonly, some documentation)
Line 1: Line 1:
{| style="float:right; height:auto; width: 250px; text-align:center; border:thick solid black; padding: 0em, 0em, 0em, 0em; vertical-align: top; background: #222222; color: #ffffff"
+
<includeonly>{| style="float:right; height:auto; width: 250px; text-align:center; border:thick solid black; padding: 0em, 0em, 0em, 0em; vertical-align: top; background: #222222; color: #ffffff"
 
{{#ifeq:{{{image|}}}|||{{!}} style="text-align: center;" {{!}} [[Image:{{{image}}}]]{{#ifeq:{{{caption|}}}|||<br/><span style="font-size: smaller; font-style: italic;">{{{caption}}}</span>}}}}
 
{{#ifeq:{{{image|}}}|||{{!}} style="text-align: center;" {{!}} [[Image:{{{image}}}]]{{#ifeq:{{{caption|}}}|||<br/><span style="font-size: smaller; font-style: italic;">{{{caption}}}</span>}}}}
 
|-
 
|-
Line 190: Line 190:
 
}}
 
}}
  
|}
+
|}</includeonly>
 +
 
 +
<noinclude>The '''Infobox item''' template is designed to be used on article pages of all kinds. While currently incomplete, more parameters are added often to ensure that this template will eventually be usable for ''any'' item.
 +
 
 +
With the exception of the name= parameter, all parameters in this template are optional. Any optional parameter which is not defined will not display in the template. Parameters may be defined in any order, but should automatically display in the same order as show in UO. ''When using this tempate, it is advised that undefined parameters are removed to keep articles from becoming excessively long and unreadable when being edited.''
 +
 
 +
 
 +
{| style="white-space: pre; font-family: monospace; background: #eeeeee; border: thin solid black;"
 +
!Template Parameters
 +
|-
 +
|
 +
{{Infobox item
 +
&#124; image=
 +
&#124; name=
 +
&#124; weight=
 +
&#124; spellchanneling=
 +
&#124; resistingspells=
 +
&#124; selfrepair=
 +
&#124; hitpointregeneration=
 +
&#124; staminaregeneration=
 +
&#124; manaregeneration=
 +
&#124; defensechanceincrease=
 +
&#124; hitchanceincrease=
 +
&#124; fastercasting=
 +
&#124; fastcastrecovery=
 +
&#124; lowerreagentcost=
 +
&#124; directdamage=
 +
&#124; physicaldamage=
 +
&#124; firedamage=
 +
&#124; colddamage=
 +
&#124; poisondamage=
 +
&#124; energydamage=
 +
&#124; chaosdamage=
 +
&#124; physicalresist=
 +
&#124; fireresist=
 +
&#124; coldresist=
 +
&#124; poisonresist=
 +
&#124; energyresist=
 +
&#124; weapondamage=
 +
&#124; weaponspeed=
 +
&#124; strengthrequirement=
 +
&#124; onehandedweapon=
 +
&#124; twohandedweapon=
 +
&#124; skillrequired=
 +
&#124; durability=
 +
}}
 +
|}</noinclude>

Revision as of 11:16, 14 September 2008


The Infobox item template is designed to be used on article pages of all kinds. While currently incomplete, more parameters are added often to ensure that this template will eventually be usable for any item.

With the exception of the name= parameter, all parameters in this template are optional. Any optional parameter which is not defined will not display in the template. Parameters may be defined in any order, but should automatically display in the same order as show in UO. When using this tempate, it is advised that undefined parameters are removed to keep articles from becoming excessively long and unreadable when being edited.


Template Parameters

{{Infobox item | image= | name= | weight= | spellchanneling= | resistingspells= | selfrepair= | hitpointregeneration= | staminaregeneration= | manaregeneration= | defensechanceincrease= | hitchanceincrease= | fastercasting= | fastcastrecovery= | lowerreagentcost= | directdamage= | physicaldamage= | firedamage= | colddamage= | poisondamage= | energydamage= | chaosdamage= | physicalresist= | fireresist= | coldresist= | poisonresist= | energyresist= | weapondamage= | weaponspeed= | strengthrequirement= | onehandedweapon= | twohandedweapon= | skillrequired= | durability= }}