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 6: Line 6:


<pre>{{infobox item
<pre>{{infobox item
|name= Bob's Petal
| name       = Bob's Petal [defaults to pagename]
|image= Image:Example.jpg
| image     = Image:Example.jpg
|caption= Bob the Flower
| imagewidth = [defaults to 250]
|type= Petal
| caption   = Bob the Flower
|effects= Adds +1 prettiness
| type       = Petal
|source= Earth
| effects   = Adds +1 prettiness
|buy= 1 Seed
| source     = Earth
|sell= 5 Pollen
| buy       = 1 Seed
| sell       = 5 Pollen
}}</pre>
}}</pre>


Line 19: Line 20:


{{infobox item
{{infobox item
|name= Bob's Petal
| name       = Bob's Petal
|image= Image:Example.jpg
| image     = Image:Example.jpg
|caption= Bob the Flower
| caption   = Bob the Flower
|type= Petal
| type       = Petal
|effects= Adds +1 prettiness
| effects   = Adds +1 prettiness
|source= Earth
| source     = Earth
|buy= 1 Seed
| buy       = 1 Seed
|sell= 5 Pollen
| 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
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      = Image: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