Template:Infobox item/doc: Difference between revisions

From Redemption Wiki
Jump to navigation Jump to search
>Default
No edit summary
>Default
No edit summary
Line 7: Line 7:
<pre>{{infobox item
<pre>{{infobox item
| name      = Bob's Petal [defaults to pagename]
| name      = Bob's Petal [defaults to pagename]
| image      = Image:Example.jpg
| image      = File:Example.jpg
| imagewidth = [defaults to 250]
| imagewidth = [defaults to 250]
| caption    = Bob the Flower
| caption    = Bob the Flower
Line 21: Line 21:
{{infobox item
{{infobox item
| name      = Bob's Petal
| name      = Bob's Petal
| image      = Image:Example.jpg
| image      = File:Example.jpg
| caption    = Bob the Flower
| caption    = Bob the Flower
| type      = Petal
| type      = Petal

Revision as of 20:46, 26 May 2015

Description
This template is used to create an item infobox.
Syntax
Type {{infobox item|<...>}} somewhere, with parameters as shown below.
Sample output
{{infobox item
| name       = Bob's Petal [defaults to pagename]
| image      = File:Example.jpg
| imagewidth = [defaults to 250]
| caption    = Bob the Flower
| type       = Petal
| effects    = Adds +1 prettiness
| source     = Earth
| buy        = 1 Seed
| sell       = 5 Pollen
}}

Results in...

Bob's Petal
File:Example.jpg
Bob the Flower
Vital statistics
Type Petal
Effects Adds +1 prettiness
Source Earth
Cost to buy 1 Seed
Cost to sell 5 Pollen