Template:Location: Difference between revisions

Template page
(added meta tags for images)
(edited text coloring)
Line 1: Line 1:
{| 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}}}};"
{| class="infobox" cellspacing="5" style="width: 25em; font-size: 90%; text-align: left; float: right; clear: right; margin: 0 0 1em 1em; {{#if:{{{bg_color|}}}|color:#{{PaletteText|{{{bg_color|}}}}}|}};  background-color:#{{#if:{{{bg_color|}}}|{{Palette|{{{bg_color|}}}}}|{{Palette|PC}}}};"
! colspan="2" style="font-size: 160%; text-align: center; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Location}}}};" | Location
! colspan="2" style="font-size: 160%; text-align: center; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Location}}}};" | Location
|-
|-
Line 9: Line 9:
}}
}}
{{#if:{{{rpg|}}}|
{{#if:{{{rpg|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} RPG
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} RPG
{{!}} {{{rpg|}}}
{{!}} {{{rpg|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{type|}}}|
{{#if:{{{type|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Type
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Type
{{!}} {{{type|}}}
{{!}} {{{type|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{island|}}}|
{{#if:{{{island|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Island
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Island
{{!}} {{{island|}}}
{{!}} {{{island|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{region|}}}|
{{#if:{{{region|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Region
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Region
{{!}} {{{region|}}}
{{!}} {{{region|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{city|}}}|
{{#if:{{{city|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} City
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} City
{{!}} {{{city|}}}
{{!}} {{{city|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{faction|}}}|
{{#if:{{{faction|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Faction
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Faction
{{!}} {{{faction|}}}
{{!}} {{{faction|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{affiliation|}}}|
{{#if:{{{affiliation|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Affiliation
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Affiliation
{{!}} {{{affiliation|}}}
{{!}} {{{affiliation|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{owner|}}}|
{{#if:{{{owner|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Owner
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Owner
{{!}} {{{owner|}}}
{{!}} {{{owner|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{residents|}}}|
{{#if:{{{residents|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Residents
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Residents
{{!}} {{{residents|}}}
{{!}} {{{residents|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{population|}}}|
{{#if:{{{population|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Population
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Population
{{!}} {{{population|}}}
{{!}} {{{population|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{position|}}}|
{{#if:{{{position|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Position
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Position
{{!}} {{{position|}}}
{{!}} {{{position|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{status|}}}|
{{#if:{{{status|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Status
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Status
{{!}} {{{status|}}}
{{!}} {{{status|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{creator|}}}|
{{#if:{{{creator|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Creator
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Creator
{{!}} {{{creator|}}}
{{!}} {{{creator|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{pronunciation|}}}|
{{#if:{{{pronunciation|}}}|
! style="padding-left: 5px; padding-right: 5px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Pronunciation
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|PC}}}};" {{!}} Pronunciation
{{!}} {{{pronunciation|}}}
{{!}} {{{pronunciation|}}}
{{!}}-
{{!}}-

Revision as of 15:57, 15 September 2021

Location
Location


Usage

{{Location
| bg_color      =
| name          =
| image         =
| caption       =
| rpg           =
| type          =
| island        =
| region        =
| city          =
| 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.