Template:Infobox item/doc: Difference between revisions

From Redemption Wiki
Jump to navigation Jump to search
>Default
m (Protected "Template:Infobox item/doc" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
>Default
(New page: ;Description :This template is used to create an event infobox. ;Syntax :Type <code>{{t|infobox item|...}}</code> somewhere, with parameters as shown below. ;Sample output <pre>{{infobox ...)
 
Line 1: Line 1:
==Description==
;Description
To use this template, copy the following code and fill in the appropriate fields.
:This template is used to create an event infobox.
;Syntax
:Type <code>{{t|infobox item|...}}</code> somewhere, with parameters as shown below.
;Sample output


==Syntax==
<pre>{{infobox item
<pre>
|name= Bob's Birthday Party
{{infobox item
|image= Image:Example.jpg
| title        =  
|caption= Bob the Flower
| image         = [e.g. "Example.jpg"]
|type= Boo
| imagewidth    = [e.g. "150"] [default: 210 pixels]
|effects= Boo
| imagecaption  =
|source= Boo
| type          =
|buy= Boo
| effects      =
|sell= Boo
| 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
|name= Bob's Birthday Party
| image         = Example.jpg
|image= Image:Example.jpg
| type         = Food
|caption= Bob the Flower
| effects       = +1 Fire
|type= Boo
| source       = Vendor
|effects= Boo
| buy           = 5g
|source= Boo
| sell         = 1g
|buy= Boo
|sell= Boo
}}
}}


<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 20:46, 26 May 2015

Description
This template is used to create an event infobox.
Syntax
Type {{infobox item|<...>}} somewhere, with parameters as shown below.
Sample output
{{infobox item
|name= Bob's Birthday Party
|image= Image:Example.jpg
|caption= Bob the Flower
|type= Boo
|effects= Boo
|source= Boo
|buy= Boo
|sell= Boo
}}

Results in...

Bob's Birthday Party
File:Example.jpg
Bob the Flower
Vital statistics
Type Boo
Effects Boo
Source Boo
Cost to buy Boo
Cost to sell Boo