Difference between revisions of "Template:Infobox item"

From Dwaia Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<table class="infobox">
+
<onlyinclude><table class="infobox">
 
{{ Infobox default title      | {{{title|}}} }}
 
{{ Infobox default title      | {{{title|}}} }}
  
Line 11: Line 11:
 
{{ Infobox conditional data    | Cost to buy  |{{{buy|}}} }}
 
{{ Infobox conditional data    | Cost to buy  |{{{buy|}}} }}
 
{{ Infobox conditional data    | Cost to sell |{{{sell|}}} }}
 
{{ Infobox conditional data    | Cost to sell |{{{sell|}}} }}
</infobox></onlyinclude><noinclude><br style="clear:both;"/>
+
</table></onlyinclude><noinclude><br style="clear:both;"/>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 18:26, 9 February 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