Difference between revisions of "Template:Infobox item"

From Dwaia Wiki
Jump to navigation Jump to search
m (1 revision imported)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><infobox>
+
<onlyinclude><table class="infobox">
<title source="title"><default>''Unknown''</default></title>
+
{{ Infobox default title       | {{{title|}}} }}
<image source="image"><caption source="imagecaption"/></image>
+
 
<data source="type"><label>Type</label><default>''Unknown''</default></data>
+
{{ Infobox conditional image   | {{{image|}}} }}
<data source="effects"><label>Effects</label><default>''Unknown''</default></data>
+
{{ Infobox conditional caption | {{{caption|}}} }}
<data source="source"><label>Source</label><default>''Unknown''</default></data>
+
 
<data source="buy"><label>Cost to buy</label><default>''Unknown''</default></data>
+
{{ Infobox conditional data   | Type    |{{{type|}}} }}
<data source="sell"><label>Cost to sell</label><default>''Unknown''</default></data>
+
{{ Infobox conditional data   | Effects |{{{effects|}}} }}
</infobox></onlyinclude><noinclude><br style="clear:both;"/>
+
{{ Infobox conditional data   | Source  |{{{source|}}} }}
{{documentation}}</noinclude>
+
 
 +
{{ Infobox conditional data   | Cost to buy |{{{buy|}}} }}
 +
{{ Infobox conditional data   | Cost to sell |{{{sell|}}} }}
 +
</table></onlyinclude><noinclude><br style="clear:both;"/>
 +
{{documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 00:25, 4 March 2019


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox_item/doc to edit this documentation. (How does this work?)

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

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

Results in...

Power Flower
Example.jpg
Type Food
Effects +1 Fire
Source Vendor
Cost to buy 5g
Cost to sell 1g