Template:Location: Difference between revisions

Template page
m (1 revision imported)
No edit summary
Line 1: Line 1:
{| class="infobox" style="width: 20em; text-align: left;" cellspacing="2"
{| class="infobox" cellspacing="5" style="width: 25em; font-size: 90%; text-align: left; float: right; clear: right; margin: 0 0 1em 1em; background-color:#{{#if:{{{bg_color|}}}|{{Palette|{{{bg_color|}}}}}|{{Palette|PC}}}};"
! colspan="2" style="font-size: 110%; text-align: center;" | Location
! colspan="2" style="font-size: 160%; text-align: center;" | Location
|-
|-
! colspan="2" style="text-align: center; font-size: 120%;" | {{{name}}}
! colspan="2" style="text-align: center; font-size: 160%; padding-top: 14px; padding-bottom: 14px;  background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Location}}}};" " | {{{name|{{PAGENAME}}}}}
|-
|-
{{#if: {{{image|}}} | {{{image}}} {{#if: {{{caption|}}} | <br>{{{caption}}}}}}}  
{{#if: {{{image|}}}|
|-
{{!}} align="center" colspan="2" {{!}} [[{{{image}}}|{{{imagewidth|350}}}px]] {{#if:{{{caption|}}}|<br /><small>{{{caption|}}}}}
{{#ifeq: {{{rpg|}}} | Unknown | | {{#if: {{{rpg|<noinclude>-</noinclude>}}} |
{{!}}-
! RPG
}}
{{!}} {{{rpg}}}
{{#if:{{{rpg|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} RPG
{{!}} {{{rpg|}}}
{{!}}-
}}
{{#if:{{{type|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Type
{{!}} {{{type|}}}
{{!}}-
}}
{{#if:{{{island|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Island
{{!}} {{{island|}}}
{{!}}-
}}
{{#if:{{{region|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Region
{{!}} {{{region|}}}
{{!}}-
}}
{{#if:{{{city|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} City
{{!}} {{{city|}}}
{{!}}-
}}
{{#if:{{{faction|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Faction
{{!}} {{{faction|}}}
{{!}}-
}}
{{#if:{{{affiliation|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Affiliation
{{!}} {{{affiliation|}}}
{{!}}-
}}
{{#if:{{{owner|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Owner
{{!}} {{{owner|}}}
{{!}}-
}}
{{#if:{{{residents|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Residents
{{!}} {{{residents|}}}
{{!}}-
{{!}}-
| {{#ifeq: {{{type|}}} | Unknown |  | {{#if: {{{type|<noinclude>-</noinclude>}}} |
}}
! Location Type
{{#if:{{(population|}}}|
{{!}} {{{type}}}
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Population
{{!}} {{{population|}}}
{{!}}-
{{!}}-
}}}}}}}}
}}
{{#ifeq: {{{population|}}} | Unknown |  | {{#if: {{{population|<noinclude>-</noinclude>}}} |
{{#if:{{{position|}}}|
! Population
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Position
{{!}} {{{population}}}
{{!}} {{{position|}}}
{{!}}-
{{!}}-
}}}}
}}
{{#ifeq: {{{residents|}}} | Unknown |  | {{#if: {{{residents|<noinclude>-</noinclude>}}} |
{{#if:{{{status|}}}|
! Residents
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Status
{{!}} {{{residents}}}
{{!}} {{{status|}}}
{{!}}-
{{!}}-
}}}}
}}
{{#ifeq: {{{position|}}} | Unknown |  | {{#if: {{{position|<noinclude>-</noinclude>}}} |
{{#if:{{{creator|}}}|
! Position
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Creator
{{!}} {{{position}}}
{{!}} {{{creator|}}}
{{!}}-
{{!}}-
}}}}
}}
{{#ifeq: {{{status|}}} | Unknown |  | {{#if: {{{status|<noinclude>-</noinclude>}}} |
{{#if:{{{pronunciation|}}}|
! Status
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Pronunciation
{{!}} {{{status}}}
{{!}} {{{pronunciation|}}}
{{!}}-
{{!}}-
}}}}
}}
|}<noinclude>
|}
 
<noinclude>
== Usage ==
== Usage ==
<div style="width: 40%;"><pre>
<div style="width: 40%;"><pre>
{{Location
{{Location
| name =  
| name         =  
| image =  
| image     =  
| caption =
| caption   =
| rpg =  
| rpg       =  
| type =  
| type       =
| residents =  
| island    =
| population =
| region    =
| position =  
| city      =
| status =  
| owner      =
| faction      =
| affiliation      =
| owner      =
| residents =  
| population =
| position   =
| status     =
| creator    =
| pronunciation =
}}
}}
</pre></div>
</pre></div>

Revision as of 15:56, 22 August 2021

Location
Location
Population


Usage

{{Location
| name          = 
| image      = 
| caption    =
| rpg        = 
| type       = 
| island     =
| region     =
| city       =
| owner      =
| faction      =
| affiliation      =
| owner      =
| residents  = 
| population =
| position   =
| status     =
| creator    =
| pronunciation =
}}

The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically.

Template:Esoteric