Template:Infobox location/doc: Difference between revisions
Appearance
No edit summary |
FossilLord (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
;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>{{infobox location | |||
<pre> | | name = Land of Bob [defaults to pagename] | ||
{{infobox location | | 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 | |||
}}</pre> | |||
}} | |||
</pre> | |||
Results in... | Results in... | ||
{{infobox location | {{infobox location | ||
| name = Land of Bob | |||
| image = File:Example.jpg | |||
| caption = Bob the Flower | |||
| map = File:Example.jpg | |||
| mapcaption = Bob the Flower | |||
| type = Garden | |||
| location = Earth | |||
| inhabitants = Flowerfolk | |||
|web serial = imaginary | |||
}} | }} | ||
<includeonly>[[Category: | <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>