Template:Item: Difference between revisions

From WiKAPPedia
Jump to navigation Jump to search
Content added Content deleted
m (Protected "Template:Item": High-risk template ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite)))
 
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:Item|pack}}</includeonly><noinclude>
<includeonly><infobox type="Item">
<title source="title"/>
{{doc}}
<image source="image"><caption source="imagecaption"/></image>
</noinclude>
<data source="type"><label>Type</label></data>
<data source="effects"><label>Effects</label></data>
<data source="source"><label>Source</label></data>
<data source="buy"><label>Cost to buy</label></data>
<data source="sell"><label>Cost to sell</label></data>
</infobox>{{#ifeq: {{NAMESPACENUMBER}} | 0 | [[Category:Items]]}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 12:26, 3 January 2023

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

Description

To use this template, add the {{Item}} template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses Fandom's infobox syntax.

Syntax

{{Item
 | title         = 
 | image         = [e.g. "Example.jpg"]
 | imagecaption  = 
 | type          = 
 | effects       = 
 | source        = 
 | buy           = 
 | sell          = 
}}

Sample output

{{Item
 | title         = Power Flower
 | image         = Example.jpg
 | type          = Food
 | effects       = +1 Fire
 | source        = Vendor
 | buy           = 5g
 | sell          = 1g
}}