Difference between revisions of "Template:Infobox item"
From Tycoon Gaming
BelgianCat (talk | contribs) m (+ description data source) |
m (cough) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
<data source="exportlocation"><label>Export at</label></data> | <data source="exportlocation"><label>Export at</label></data> | ||
<data source="requires"><label>Requirements</label></data> | <data source="requires"><label>Requirements</label></data> | ||
− | </infobox><includeonly>[[Category:Items]]</includeonly><noinclude>{{Documentation}}</noinclude> | + | </infobox> |
+ | <includeonly> | ||
+ | {{#ifeq:{{NAMESPACE}}|Main| | ||
+ | {{#if:{{#explode:{{PAGENAME}}|:|3}}| | ||
+ | [[Category:Items]] | ||
+ | | [[Category:Items]] | ||
+ | }} | ||
+ | | {{#if:{{#explode:{{PAGENAME}}|:|3}}| | ||
+ | [[Category:{{#explode:{{PAGENAME}}|:|1|2}}:Items]] | ||
+ | | [[Category:Items]] | ||
+ | }} | ||
+ | </includeonly> | ||
+ | <noinclude>{{Documentation}}</noinclude> |
Revision as of 16:58, 4 May 2024
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, 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 }}