Template:Item infobox: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(Thar)
(Work please)
Line 11: Line 11:
<div>
<div>
<div style="width: 50%; float: left;">
<div style="width: 50%; float: left;">
[[Image:P-body {{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}.png|128px]]
[[Image:P-body {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|128px]]
</div>
</div>
<div style="width: 50%; float: right;">
<div style="width: 50%; float: right;">
[[Image:Atlas {{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}.png|128px]]
[[Image:Atlas {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|128px]]
</div>
</div>
</div>}}
</div>}}
Line 26: Line 26:
<div class="section">Item</div>
<div class="section">Item</div>
{{Backpack item
{{Backpack item
|item-name = {{#if:{{{name|}}}|{{{name}}}|{{uc:{{BASEPAGENAME}}}}}}
|item-name-local = {{#if:{{{name|}}}|{{{name}}}|{{uc:{{BASEPAGENAME}}}}}}
|item-name = {{#if:{{{name-override|}}}|{{{name-override}}}|{{uc:{{BASEPAGENAME}}}}}}
|item-level = {{{level|Level 1}}}
|item-level = {{{level|Level 1}}}
|quality = {{{quality|unique}}}
|quality = {{{quality|unique}}}

Revision as of 16:36, 27 April 2011


The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for Item infobox

This template is used to display information about an item.

Parameters

Parameter Example Description
name Spud Hat A name that will be displayed at the top of the infobox, usually this isn't necessary and will use the page title by default.
image Spudburger.png A new image to use under the item's name at the top. Use this only if necessary and stick to the set convention as much as possible.
slot Head The slot that the item is equipped in.
used-by Atlas, P-body A list of classes that can equip the item.
level Level 100 Testing Apparatus The level of the item (used in backpack example)
team-colors yes If set the infobox will link to two versions of a given team colored hat image.
quality genuine Recolor the item name text to represent a different quality (unique by default)