Difference between revisions of "Template:Infobox item"
From Tycoon Gaming
m (testing template category logic) |
m (test 2) |
||
Line 19: | Line 19: | ||
</infobox> | </infobox> | ||
<includeonly> | <includeonly> | ||
− | {{# | + | {{#ifeq:{{NAMESPACE}}|Main| |
− | + | {{#ifeq:{{#pos:{{PAGENAME}}|:}}|3| | |
− | + | [[Category:{{PAGENAME}}]] | |
− | + | | [[Category:Items]] | |
− | + | }} | |
− | + | | {{#ifeq:{{#pos:{{PAGENAME}}|:}}|3| | |
− | + | [[Category:{{#titleparts:{{PAGENAME}}|1|2}}:Items]] | |
− | + | | [[Category:Items]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Revision as of 15:55, 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| |
{{infobox item | title = Power Flower | image = Example.jpg | type = Food | effects = +1 Fire | source = Vendor | buy = 5g | sell = 1g }}