Template:Infobox item/doc: Difference between revisions

From Redemption Wiki
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
==Description==
:This template is used to create an item infobox.
To use this template, copy the following code and fill in the appropriate fields.
;Syntax
:Type <code>{{t|infobox item|...}}</code> somewhere, with parameters as shown below.
;Sample output


<pre>{{infobox item
==Syntax==
| name      = Bob's Petal [defaults to pagename]
<pre>
| image     = File:Example.jpg
{{infobox item
| imagewidth = [defaults to 250]
| title        =  
| caption    = Bob the Flower
| image         = [e.g. "Example.jpg"]
| type       = Petal
| imagewidth   = [e.g. "150"] [default: 210 pixels]
| effects   = Adds +1 prettiness
| imagecaption  =
| source     = Earth
| type          =
| buy       = 1 Seed
| effects      =
| sell       = 5 Pollen
| 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
| name      = Bob's Petal
| title        = Power Flower
| image     = File:Example.jpg
| image         = Example.jpg
| caption    = Bob the Flower
| type         = Food
| type       = Petal
| effects       = +1 Fire
| effects   = Adds +1 prettiness
| source       = Vendor
| source     = Earth
| buy           = 5g
| buy       = 1 Seed
| sell         = 1g
| sell       = 5 Pollen
}}
}}


<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