Jump to content

Template:Infobox location: Difference between revisions

From Worm Wiki
Default (talk | contribs)
No edit summary
 
MugaSofer (talk | contribs)
switched
Tag: sourceedit
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px;"
<infobox>
|-
<title source="name"><default>{{PAGENAME}}</default></title>
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" |  {{{name|{{PAGENAME}}}}}
<image source="image"><caption source="imagecaption"/><default>[[File:Placeholder location.png]]</default></image>
|- style="text-align:center;"
<header>Basic Information</header>
| colspan="2" style="padding:0.5em;" | [[{{{image|File:Placeholder location.png}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
<image source="map"><caption source="mapcaption"/></image>
|- style="text-align:center;"
<data source="type"><label>'''Type'''</label></data>
| colspan="2" style="padding:0.5em;" | [[{{{map}}}|{{{mapwidth|250}}}px]]<br/>''{{{mapcaption| }}}''
<data source="location"><label>'''Location'''</label></data>
|-
<data source="team"><label>'''Teams'''</label></data>
! colspan="2" style="background-color:#3366CC; color:#ffffff;" | Vital statistics
<data source="inhabitants"><label>'''Inhabitants'''</label></data>
|-
<data source="base of operations"><label>'''Base of Operations'''</label></data>
| style="width:30%;" | '''Type'''
<header>First Appearence</header>
| style="width:70%;" | {{{type}}}
<data source="web serial"><label>'''Web Serial'''</label></data>
|-
</infobox>
| '''Level'''
 
| {{{level}}}
<br>
|-
<noinclude>
| '''Location'''
{{documentation}}
| {{{location}}}
</noinclude>
|-
| '''Inhabitants'''
| {{{inhabitants}}}
|}<noinclude><br style="clear:both;" />
{{documentation}}</noinclude>

Revision as of 14:55, February 8, 2016

<infobox> <title source="name"><default>Infobox location</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> <label>Base of Operations</label> <header>First Appearence</header> <label>Web Serial</label> </infobox>

Template documentation (for the above template, sometimes hidden or invisible)
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</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> <label>Base of Operations</label> <header>First Appearence</header> <label>Web Serial</label> </infobox>