Difference between revisions of "Template:Itembox"
m |
m |
||
Line 1: | Line 1: | ||
− | <ul style="background-color:#111111; border:3px solid #111111; color:#FFFFFF; float:{{{float|{{#if:{{{align|}}}|{{{align}}}|left}}}}}; font-weight:bold; list-style:none; list-style-image:none; list-style-type:none | + | <ul style="background-color:#111111; border:3px solid #111111; color:#FFFFFF; float:{{{float|{{#if:{{{align|}}}|{{{align}}}|left}}}}}; font-weight:bold; list-style:none; list-style-image:none; list-style-type:none; text-align:center; width:auto;"> |
{{#if:{{{name|}}} | {{#if:{{{name|}}} | ||
|<li><font color=#FFFF00>{{{name|}}}</font> | |<li><font color=#FFFF00>{{{name|}}}</font> | ||
Line 153: | Line 153: | ||
</pre> | </pre> | ||
− | <nowiki>font-size: | + | ===Name=== |
− | {{#ifeq:{{FULLPAGENAME}} | + | <pre> |
− | |{{{disambigpage| {{#if:{{NAMESPACE}}|{{NAMESPACE}}:}} {{{name|{{PAGENAME}}}}} }}} | + | |name= |
− | |1 | + | </pre> |
− | |0.85}}em;</nowiki> | + | |
+ | The Name property displays the name of the item at the top of the tooltip in yellow text. When entering a value for this property, any string may be used. If the Name property is left blank or not used, the template is coded to automatically use the name of the page that it is being used on. | ||
+ | |||
+ | The Name property looks as follows: | ||
+ | <span style="background-color:#111111; border:3px solid #111111; color:#FFFF00; font-weight:bold; text-align:center; width:auto;">An_sword_001</span> | ||
+ | |||
+ | |||
+ | <nowiki>font-size:{{#ifeq:{{FULLPAGENAME}}|{{{disambigpage| {{#if:{{NAMESPACE}}|{{NAMESPACE}}:}} {{{name|{{PAGENAME}}}}} }}}|1|0.85}}em;</nowiki> | ||
</noinclude> | </noinclude> |
Revision as of 15:10, 9 August 2007
- Itembox
Usage
Template:Items is meant to be used on various item pages under their requisite "Statistics" sections. It is designed to simulate the look of the tooltips that one encounters when hovering the mouse over an item in the Ultima Online client.
NOTE: As of 8/10/07, this template is far from finished. As more item properties are included and as more functionality is added to the current item properties, both the full template for copying and pasting in the <pre> section and the information on specific item properties below will be updated, respectively.
Full Template
Since it is highly unlikely if not impossible that an item will ever be encountered that uses absolutely every property in the template, Template:Items has been designed with conditional properties. This means that when using this template on an item's page it is intended that only the properties which are displayed on that specific item should be included. Unlike many of the other templates that show in their entirety no matter what, if one of the properties from Template:Items is not included, left blank, or supplied with an impossible value, that property will simply not display at all.
It is suggested that when using Template:Items one should choose one of the two following strategies:
- Copy and paste the entirety of the template, which is included in a <pre> section below, and delete those properties which are not present on the item which you are editing.
- Copy and paste only the properties from below that are present on the item which you are editing and ignore the others completely.
It is NOT recommended that you copy and paste the complete template and leave it in its entirety with blank, unused properties. Template:Items was designed conditionally so that this would not be necessary. It was intended that this template would be easier to use and read due to less unused code, and that this in turn would have the added benefit of saving space.
The following is the entirety of Template:Items, which includes every property that has so far been added.
{{Items |name= |blessed= |weight= |hitstaminaleech= |spellchanneling= |swingspeedincrease= |damageincrease= |poisonresist= |physicaldamage= |poisondamage= |mindamage= |maxdamage= |weaponspeed= |range= |strengthrequirement= |handedweapon= |skillrequired= |durability= }}
Name
|name=
The Name property displays the name of the item at the top of the tooltip in yellow text. When entering a value for this property, any string may be used. If the Name property is left blank or not used, the template is coded to automatically use the name of the page that it is being used on.
The Name property looks as follows: An_sword_001
font-size:{{#ifeq:{{FULLPAGENAME}}|{{{disambigpage| {{#if:{{NAMESPACE}}|{{NAMESPACE}}:}} {{{name|{{PAGENAME}}}}} }}}|1|0.85}}em;