Template:Infobox item/doc
Appearance
- Description
- This template is used to create an item infobox.
- Syntax
- Type
{{infobox item{{#ifeq: ...|---|||<...>}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}}}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...
<infobox> <title source="name"><default>Infobox item/doc</default></title> <image source="image"/> <label>Type</label> <label>Effects</label> <label>Source</label> <label>Cost to buy</label> <label>Cost to sell</label> </infobox>