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
gkKore Sedai (talk)
(reverting)
Line 1: Line 1:
<onlyinclude><infobox>
{| class="infobox" style="font-size:89%; width:300px;"
    <navigation>{{#if:{{{game|}}}|[[List of {{{game}}} locations|''{{{game}}}'' location]]|Location}}</navigation>
|-
<title source="name"><default>{{PAGENAME}}</default></title>
! colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" |  {{{name|{{PAGENAME}}}}}
<group>
|- style="text-align:center;"
    <image source="image"/>
| colspan="2" style="padding:0.5em;" | [[{{{image|Image:Placeholder location.png}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}''
    <data source="type">
|- style="text-align:center;"
      <label>Type</label>
| colspan="2" style="padding:0.5em;" | [[{{{map}}}|{{{mapwidth|250}}}px]]<br/>''{{{mapcaption| }}}''
    </data>
|-
    <data source="region">
! colspan="2" style="background-color:#3366CC; color:#ffffff;" | Vital statistics
      <label>Region</label>
|-
    </data>
| style="width:30%;" | '''Type'''
    <data source="locations">
| style="width:70%;" | {{{type}}}
      <label>Locations</label>
|-
    </data>
| '''Level'''
    <data source="inhabitants">
| {{{level}}}
      <label>Inhabitants</label>
|-
    </data>
| '''Region'''
  </group>
| {{{region}}}
</infobox></onlyinclude>
|-
<noinclude>
| '''Location'''
== Usage & preview ==
| {{{location}}}
Type in this:
|-
 
| '''Inhabitants'''
<pre>
| {{{inhabitants}}}
{{Infobox location
|}<noinclude><br style="clear:both;" />
|name=
{{documentation}}</noinclude>
|game=
|image=
|type=
|region=
|locations=
|inhabitants=
}}
 
</pre>
 
to see this:
 
{{Infobox location
|name=This is a test
|image=This is a test
|type=This is a test
|region=This is a test
|locations=This is a test
|inhabitants=This is a test
}}
 
 
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</noinclude>

Revision as of 03:51, December 8, 2021

Infobox location
File:Placeholder location.png
[[{{{map}}}|250px]]
Vital statistics
Type {{{type}}}
Level {{{level}}}
Region {{{region}}}
Location {{{location}}}
Inhabitants {{{inhabitants}}}


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
File:Example.jpg
Bob the Flower
File:Example.jpg
Bob the Flower
Vital statistics
Type Garden
Level 10-20
Region Paris
Location Earth
Inhabitants Flowerfolk