Jump to content

Template:Infobox location/doc: Difference between revisions

From Twig Wiki
Default (talk | contribs)
No edit summary
 
FossilLord (talk | contribs)
No edit summary
 
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        = Land of Bob [defaults to pagename]
{{infobox location
| image       = File:Example.jpg
| title        =  
| caption    = Bob the Flower
| image         = [e.g. "Example.jpg"]
| map         = File:Example.jpg
| imagewidth    = [e.g. "150"] [default: 210 pixels]
| mapcaption = Land of Bob
| imagecaption  =
| type       = Garden
| map           = [e.g. "Example.jpg"]
| location   = Earth
| mapwidth      = [e.g. "150"] [default: 210 pixels]
| inhabitants = Flowerfolk
  | mapcaption    =  
|web serial = imaginary
| type         =  
}}</pre>
| 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        = Land of Bob
| image         = Example.jpg
| image       = File:Example.jpg
| imagecaption  = The island
| caption    = Bob the Flower
| map           = Example.jpg
| map         = File:Example.jpg
| mapcaption   = Zone map
| mapcaption = Bob the Flower
| type         = Contested
| type       = Garden
| level        = 1-5
| location    = Earth
| location      = Earth
| inhabitants = Flowerfolk
| inhabitants  = Stompy Humans, Drinky Bees
|web serial = imaginary
}}
}}


<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 06:40, March 17, 2018

Description
This template is used to create a location infobox.
Syntax
Type {{infobox location{{#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 location
| name        = Land of Bob [defaults to pagename]
| image       = File:Example.jpg
| caption     = Bob the Flower
| map         = File:Example.jpg
| mapcaption  = Land of Bob
| type        = Garden
| location    = Earth
| inhabitants = Flowerfolk
|web serial = imaginary
}}

Results in...

<infobox> <title source="name"><default>Infobox location/doc</default></title>

<image source="image"><default>File:Placeholder location.png</default></image> <header>Basic Information</header> <image source="map"></image> <label>Type</label> <label>Location</label> <label>Teams</label> <label>Inhabitants</label> <header>First Appearence</header> <label>Web Serial</label> </infobox>