Difference between revisions of "Template:Infobox item"

From Tycoon Gaming
m (Undo revision 21510 by Donald (talk))
Tag: Undo
m (Test 5)
Line 21: Line 21:
 
{{#ifeq:{{NAMESPACE}}|Main|
 
{{#ifeq:{{NAMESPACE}}|Main|
 
     {{#if:{{#explode:{{PAGENAME}}|:|3}}|
 
     {{#if:{{#explode:{{PAGENAME}}|:|3}}|
         [[Category:Items]]
+
         [[Category:{{#explode:{{PAGENAME}}|:|1|2}}:Items]]
 
     | [[Category:Items]]
 
     | [[Category:Items]]
 
     }}
 
     }}

Revision as of 16:02, 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]]

| [[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
}}