Welcome to the SaGa Wiki! We have moved off Fandom very recently, so things are still being set up around here. Please note that some images did not successfully transfer, and will need to be manually reuploaded or replaced.


Note: Keep in mind that once you have an account, you must wait one day and make 5 edits to become autoconfirmed. This allows you to skip questions while editing, to create new articles, and to upload images.

Difference between revisions of "Template:Infobox location"

From SaGa Wiki
Jump to navigationJump to search
(cleanup a few parameters)
(further format)
Line 1: Line 1:
{| class="infobox" style="font-size:89%; width:300px;"
{| class="infobox" style="font-size:90%; width:300px"
|-
|-
! colspan="2" style="background-color:#3B121F; color:#FFF; font-size:120%; padding:1em;" |  {{{name|{{PAGENAME}}}}}
! colspan="2" style="background-color:#3B121F; color:#FFF; font-size:120%; padding:1em" |  {{{name|{{PAGENAME}}}}}
|- style="text-align:center;"
| colspan="2" style="padding:0.5em;" | {{{image|Add an image here!}}}<br>{{{caption|Add a caption here!}}}
|- style="text-align:center;"
| colspan="2" style="padding:0.5em;" | {{{map|Add a map here!}}}<br>{{{mapcaption|Add a map caption here!}}}
|-
|-
! colspan="2" style="background-color:#3B121F; color:#FFF;" | Vital statistics
| colspan="2" style="padding:0.5em;text-align:center" | {{{image|Add an image here!}}}<br>{{{caption|Add a caption here!}}}
|-
|-
| style="width:30%;" | '''Type'''
{{#if:{{{type|}}}|
| style="width:70%;" | {{{type}}}
{{!}} style="width:30%;background:#DDD" {{!}} '''Type'''
{{!}} style="width:70%;background:#DDD" {{!}} {{{type}}}
{{!}}-
}}
{{#if:{{{level|}}}|
{{!}} '''Level'''
{{!}} {{{level}}}
{{!}}-
}}
{{#if:{{{region|}}}|
{{!}} style="background:#DDD" {{!}} '''Region'''
{{!}} style="background:#DDD" {{!}} {{{region}}}
{{!}}-
}}
{{#if:{{{location|}}}|
{{!}} '''Location'''
{{!}} {{{location}}}
{{!}}-
}}
{{#if:{{{inhabitants|}}}|
{{!}} style="background:#DDD" {{!}} '''Inhabitants'''
{{!}} style="background:#DDD" {{!}} {{{inhabitants}}}
}}
|-
|-
| '''Level'''
{{#if:{{{map|}}}{{{mapcaption|}}}|
| {{{level}}}
! colspan="2" style="background-color:#3B121F; color:#FFF;" {{!}} Map
|-
{{!}}-
| '''Region'''
{{!}} colspan="2" style="padding:0.5em;text-align:center" {{!}} {{{map|Add a map here!}}}<br>{{{mapcaption|Add a map caption here!}}}
| {{{region}}}
}}
|-
| '''Location'''
| {{{location}}}
|-
| '''Inhabitants'''
| {{{inhabitants}}}
|}<noinclude>{{clr}}
|}<noinclude>{{clr}}
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Revision as of 00:30, January 9, 2022

Infobox location
Add an image here!
Add a caption here!
Template documentation (for the template shown above, sometimes hidden or invisible)
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        = Land of Bob [defaults to pagename]
| image       = Image:Example.jpg
| caption     = Bob the Flower
| map         = Image:Example.jpg
| mapcaption  = Land of Bob
| type        = Garden
| region      = Paris
| level       = 10-20
| location    = Earth
| inhabitants = Flowerfolk
}}

Results in...

Land of Bob
Image:Example.jpg
Bob the Flower
Type Garden
Level 10-20
Region Paris
Location Earth
Inhabitants Flowerfolk
Map
Image:Example.jpg
Bob the Flower