Template:Infobox item/doc: Difference between revisions
Jump to navigation
Jump to search
>Default No edit summary |
>Default m (Protected "Template:Infobox item/doc" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
||
Line 1: | Line 1: | ||
==Description== | |||
To use this template, copy the following code and fill in the appropriate fields. | |||
<pre>{{infobox item | ==Syntax== | ||
| | <pre> | ||
| image | {{infobox item | ||
| imagewidth = [ | | title = | ||
| | | image = [e.g. "Example.jpg"] | ||
| type | | imagewidth = [e.g. "150"] [default: 210 pixels] | ||
| effects | | imagecaption = | ||
| source | | type = | ||
| buy | | effects = | ||
| sell | | source = | ||
}}</pre> | | buy = | ||
| sell = | |||
}} | |||
</pre> | |||
==Samples== | |||
<pre> | |||
{{infobox item | |||
| title = Power Flower | |||
| image = Example.jpg | |||
| type = Food | |||
| effects = +1 Fire | |||
| source = Vendor | |||
| buy = 5g | |||
| sell = 1g | |||
}} | |||
</pre> | |||
Results in... | Results in... | ||
{{infobox item | {{infobox item | ||
| | | title = Power Flower | ||
| image | | image = Example.jpg | ||
| type = Food | |||
| type | | effects = +1 Fire | ||
| effects | | source = Vendor | ||
| source | | buy = 5g | ||
| buy | | sell = 1g | ||
| sell | |||
}} | }} | ||
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 20:46, 26 May 2015
Description
To use this template, copy the following code and fill in the appropriate fields.
Syntax
{{infobox item | title = | image = [e.g. "Example.jpg"] | imagewidth = [e.g. "150"] [default: 210 pixels] | 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...
{{{name}}} | |
---|---|
100px {{{caption}}} | |
Vital statistics | |
Type | Food |
Effects | +1 Fire |
Source | Vendor |
Cost to buy | 5g |
Cost to sell | 1g |