Difference between revisions of "Template:Infobox item"

From Tycoon Gaming
m (test 4)
m (Undo revision 21510 by Donald (talk))
Tag: Undo
Line 18: Line 18:
 
         <data source="requires"><label>Requirements</label></data>
 
         <data source="requires"><label>Requirements</label></data>
 
</infobox>
 
</infobox>
 +
<includeonly>
 
{{#ifeq:{{NAMESPACE}}|Main|
 
{{#ifeq:{{NAMESPACE}}|Main|
 
     {{#if:{{#explode:{{PAGENAME}}|:|3}}|
 
     {{#if:{{#explode:{{PAGENAME}}|:|3}}|
Line 27: Line 28:
 
| [[Category:Items]]
 
| [[Category:Items]]
 
}}
 
}}
 +
</includeonly>
 
<noinclude>{{Documentation}}</noinclude>
 
<noinclude>{{Documentation}}</noinclude>

Revision as of 16:00, 4 May 2024


Description

To use this template, copy the following code and fill in the appropriate fields.

Syntax

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

Samples

{{#ifeq:Template|Main| | [[Category:{{#explode:Infobox item|:|1|2}}:Items]]

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