Jump to content

Template:Infobox location: Difference between revisions

From Pact Wiki
MugaSofer (talk | contribs)
No edit summary
Tag: visualeditor-wikitext
MugaSofer (talk | contribs)
converted to modern "portable infobox"
Tag: visualeditor-wikitext
Line 1: Line 1:
<onlyinclude>{| class="wikia-infobox" style="float:right"
<onlyinclude><infobox>
 
<title source="name"><default>{{PAGENAME}}</default></title>
|-
<image source="image"><caption source="imagecaption"/></image>
! class="wikia-infobox-header" colspan="2" | {{{title|{{PAGENAME}}}}}
<header>Basic Information</header>
 
<image source="map"><caption source="mapcaption"/></image>
|-
<data source="type"><label>'''Type'''</label></data>
{{#if: {{{image|}}} |
<data source="location"><label>'''Location'''</label></data>
{{!}} class="wikia-infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]]
<data source="inhabitants"><label>'''Inhabitants'''</label></data>
| }}
<header>First Appearance</header>
 
<data source="web serial"></data>
|-
</infobox></onlyinclude><noinclude><br style="clear:both;"/>
{{#if: {{{imagecaption|}}} |
{{!}} class="wikia-infobox-caption" colspan="2" {{!}} {{{imagecaption}}}
| }}
 
|-
{{#if: {{{map|}}} |
{{!}} class="wikia-infobox-image" colspan="2" {{!}} [[File:{{{image}}}|{{{mapwidth|210}}}px|{{{mapcaption|}}}]]
| }}
 
|-
{{#if: {{{mapcaption|}}} |
{{!}} class="wikia-infobox-caption" colspan="2" {{!}} {{{mapcaption}}}
| }}
 
|-
! colspan="2" | <div class="wikia-infobox-section-header">Vital statistics</div>
 
|-
! Type
| {{{type|''Unknown''}}}
 
 
|-
! Location
| {{{location|''Unknown''}}}
 
|-
! Inhabitants
| {{{inhabitants|''Unknown''}}}
 
|-
! First Appearance
| {{{web serial}}}
 
|- style="font-size:0; line-height:0;"
! style="width:50%; padding:0" |
! style="width:50%; padding:0" |
 
|}</onlyinclude><noinclude><br style="clear:both;"/>
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Revision as of 06:02, January 8, 2021

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

<image source="image"></image> <header>Basic Information</header> <image source="map"></image> <label>Type</label> <label>Location</label> <label>Inhabitants</label> <header>First Appearance</header> </infobox>

Description

To use this template, copy the following code and fill in the appropriate fields.

Syntax

{{infobox location
 | title         = 
 | image         = [e.g. "Example.jpg"]
 | imagewidth    = [e.g. "150"] [default: 210 pixels]
 | caption  = 
 | map           = [e.g. "Example.jpg"]
 | mapwidth      = [e.g. "150"] [default: 210 pixels]
 | mapcaption    = 
 | type          = 
 | level         = 
 | location      = 
 | inhabitants   = 
 | web serial    = first appearance
}}

Samples

{{infobox location
 | title         = Flora Island
 | image         = Example.jpg
 | caption  = The island
 | map           = Example.jpg
 | mapcaption    = Zone map
 | type          = Contested
 | level         = 1-5
 | location      = Earth
 | inhabitants   = Stompy Humans, Drinky Bees
 | web serial    = Imaginary 1.1
}}

Results in...

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

<image source="image"></image> <header>Basic Information</header> <image source="map"></image> <label>Type</label> <label>Location</label> <label>Inhabitants</label> <header>First Appearance</header> </infobox>