Template:Infobox location/doc: Difference between revisions

From Redemption Wiki
Jump to navigation Jump to search
>Default
No edit summary
>Default
(New page: ;Description :This template is used to create a location infobox. ;Syntax :Type <code>{{t|infobox location|...}}</code> somewhere, with parameters as shown below. ;Sample output <pre>{{in...)
 
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 a location infobox.
;Syntax
:Type <code>{{t|infobox location|...}}</code> somewhere, with parameters as shown below.
;Sample output


==Syntax==
<pre>{{infobox location
<pre>
|name= Bob's Petal
{{infobox location
|image= Image:Example.jpg
| 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
| map          = [e.g. "Example.jpg"]
|buy= 1 Seed
| mapwidth      = [e.g. "150"] [default: 210 pixels]
|sell= 5 Pollen
| mapcaption    =  
}}</pre>
| type         =  
| level        =  
| location      =  
| inhabitants  =  
}}
</pre>
 
==Samples==
<pre>
{{infobox location
| title        = Flora Island
| image        = Example.jpg
| imagecaption  = The island
| map          = Example.jpg
| mapcaption    = Zone map
| type          = Contested
| level        = 1-5
| location      = Earth
| inhabitants  = Stompy Humans, Drinky Bees
}}
</pre>


Results in...
Results in...


{{infobox location
{{infobox location
| title        = Flora Island
|name= Bob's Petal
| image         = Example.jpg
|image= Image:Example.jpg
| imagecaption  = The island
|caption= Bob the Flower
| map          = Example.jpg
|type= Petal
| mapcaption    = Zone map
|effects= Adds +1 prettiness
| type          = Contested
|source= Earth
| level        = 1-5
|buy= 1 Seed
| location      = Earth
|sell= 5 Pollen
| inhabitants  = Stompy Humans, Drinky Bees
}}
}}


<includeonly>[[Category: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 a location infobox.
Syntax
Type {{infobox location|<...>}} somewhere, with parameters as shown below.
Sample output
{{infobox location
|name= Bob's Petal
|image= Image:Example.jpg
|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
[[{{{map}}}|200px]]
{{{mapcaption}}}
Vital statistics
Type Petal
Level {{{level}}}
Location {{{location}}}
Inhabitants {{{inhabitants}}}
Cost to sell 5 Pollen