(edited text coloring) |
(added hidden) |
||
(5 intermediate revisions by the same user not shown) | |||
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; {{#if:{{{bg_color|}}}|color:#{{PaletteText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{Palette|{{{bg_color|}}}}}|{{Palette| | {| 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|Stone}}}};" | ||
! colspan="2" style="font-size: 160%; | ! colspan="2" style="text-align: center; font-size: 160%; padding-top: 14px; padding-bottom: 14px; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" " | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
! colspan="2" style=" | ! colspan="2" style="font-size: 160%; text-align: center; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" | {{#if:{{{type|}}}|{{{type}}}|Location}} | ||
|- | |- | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:{{{image}}}}}|{{{imagewidth|350}}}px]] {{#if:{{{caption|}}}|<br /><small>{{{caption|}}}}} | {{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:{{{image}}}}}|{{{imagewidth|350}}}px]] {{#if:{{{caption|}}}|<br /><small>{{{caption|}}}}} | ||
{{!}}- | |||
| | |||
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:File:Wiki unknown image.png}}|350px]] {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{rpgManualLink|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} RPG | |||
{{!}} [[{{{rpgManualLink|}}}]] | |||
{{!}}- | |||
| | |||
{{#if:{{{rpg|}}}| | {{#if:{{{rpg|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} RPG | ||
{{!}} {{{rpg|}}} | {{!}} [[{{{rpg|}}}]] | ||
{{!}}- | {{!}}- | ||
}} | |||
}} | }} | ||
{{#if:{{{type|}}}| | {{#if:{{{type|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Type | ||
{{!}} {{{type|}}} | {{!}} {{{type|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{islandManualLink|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Island | |||
{{!}} [[{{{islandManualLink|}}}]] | |||
{{!}}- | |||
| | |||
{{#if:{{{island|}}}| | {{#if:{{{island|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Island | ||
{{!}} {{{island|}}} | {{!}} {{#if:{{{rpg|}}}|[[{{{island|}}} ({{{rpg}}})|{{{island|}}}]]|[[{{{island|}}}]]}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
}} | |||
{{#if:{{{regionManualLink|}}}| | |||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Region | |||
{{!}} [[{{{regionManualLink|}}}]] | |||
{{!}}- | |||
| | |||
{{#if:{{{region|}}}| | {{#if:{{{region|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Region | ||
{{!}} {{{region|}}} | {{!}} {{#if:{{{rpg|}}}|[[{{{region|}}} ({{{rpg}}})|{{{region|}}}]]|[[{{{region|}}}]]}} | ||
{{!}}- | {{!}}- | ||
}} | |||
}} | }} | ||
{{#if:{{{city|}}}| | {{#if:{{{city|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} City | ||
{{!}} {{{city|}}} | {{!}} {{{city|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{faction|}}}| | {{#if:{{{faction|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Faction | ||
{{!}} {{{faction|}}} | {{!}} {{{faction|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{affiliation|}}}| | {{#if:{{{affiliation|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Affiliation | ||
{{!}} {{{affiliation|}}} | {{!}} {{{affiliation|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{owner|}}}| | {{#if:{{{owner|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Owner | ||
{{!}} {{{owner|}}} | {{!}} {{{owner|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{residents|}}}| | {{#if:{{{residents|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Residents | ||
{{!}} {{{residents|}}} | {{!}} {{{residents|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{population|}}}| | {{#if:{{{population|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Population | ||
{{!}} {{{population|}}} | {{!}} {{{population|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{position|}}}| | {{#if:{{{position|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Position | ||
{{!}} {{{position|}}} | {{!}} {{{position|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{status|}}}| | {{#if:{{{status|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Status | ||
{{!}} {{{status|}}} | {{!}} {{{status|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{creator|}}}| | {{#if:{{{creator|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Creator | ||
{{!}} {{{creator|}}} | {{!}} {{{creator|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{pronunciation|}}}| | {{#if:{{{pronunciation|}}}| | ||
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark| | ! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Pronunciation | ||
{{!}} {{{pronunciation|}}} | {{!}} {{{pronunciation|}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
|} | |} | ||
{{#if:{{{island|}}}| | |||
{{#if:{{{rpg|}}}| | |||
<includeonly>[[Category:{{{island|}}} ({{{rpg}}})]]</includeonly>| | |||
<includeonly>[[Category:{{{island|}}}]]</includeonly> | |||
}}| | |||
}} | |||
{{#if:{{{islandHidden|}}}| | |||
{{#if:{{{rpg|}}}| | |||
<includeonly>[[Category:{{{islandHidden|}}} ({{{rpg}}})]]</includeonly>| | |||
<includeonly>[[Category:{{{islandHidden|}}}]]</includeonly> | |||
}}| | |||
}} | |||
{{#if:{{{region|}}}| | |||
{{#if:{{{rpg|}}}| | |||
<includeonly>[[Category:{{{region|}}} ({{{rpg}}})]]</includeonly>| | |||
<includeonly>[[Category:{{{region|}}}]]</includeonly> | |||
}}| | |||
}} | |||
{{#if:{{{regionHidden|}}}| | |||
{{#if:{{{rpg|}}}| | |||
<includeonly>[[Category:{{{regionHidden|}}} ({{{rpg}}})]]</includeonly>| | |||
<includeonly>[[Category:{{{regionHidden|}}}]]</includeonly> | |||
}}| | |||
}} | |||
{{#if:{{{type|}}}| | |||
{{#if:{{{rpg|}}}| | |||
<includeonly>[[Category:{{{type|}}}s ({{{rpg}}})]]</includeonly>| | |||
<includeonly>[[Category:{{{type|}}}s]]</includeonly> | |||
}}| | |||
}} | |||
{{#if:{{{rpg|}}}| | |||
<includeonly>[[Category:Locations ({{{rpg}}})]]</includeonly>| | |||
<includeonly>[[Category:Locations]]</includeonly> | |||
}} | |||
<noinclude> | <noinclude> | ||
Line 84: | Line 145: | ||
<div style="width: 40%;"><pre> | <div style="width: 40%;"><pre> | ||
{{Location | {{Location | ||
| bg_color | | bg_color = | ||
| name | | name = | ||
| image | | image = | ||
| caption | | caption = | ||
| rpg | | rpg = | ||
| type | | rpgManualLink = | ||
| island | | type = | ||
| region | |||
| city | | island = | ||
| faction | | islandHidden = | ||
| affiliation | | islandManualLink = | ||
| owner | | region = | ||
| residents | | regionHidden = | ||
| population | | regionManualLink = | ||
| position | | city = | ||
| status | | faction = | ||
| creator | | affiliation = | ||
| pronunciation = | | owner = | ||
| residents = | |||
| population = | |||
| position = | |||
| status = | |||
| creator = | |||
| pronunciation = | |||
}} | }} | ||
</pre></div> | </pre></div> | ||
The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically. | The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically. | ||
The parameters ending in "hidden" only effect categories and do not display in the infobox. These are great for automatically categorizing pages without displaying redundancies (For example, using islandHidden on the page for Zakaz to put the Zakaz page in the Zakaz category automatically) | |||
The parameters ending in ManualLink will not auto-categorize like their default counterparts, but will display in the infobox. | |||
[[Category:Infobox Templates]] | [[Category:Infobox Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 19:55, 15 April 2022
Location | |
---|---|
Location | |
Usage
{{Location | bg_color = | name = | image = | caption = | rpg = | rpgManualLink = | type = | island = | islandHidden = | islandManualLink = | region = | regionHidden = | regionManualLink = | 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.
The parameters ending in "hidden" only effect categories and do not display in the infobox. These are great for automatically categorizing pages without displaying redundancies (For example, using islandHidden on the page for Zakaz to put the Zakaz page in the Zakaz category automatically)
The parameters ending in ManualLink will not auto-categorize like their default counterparts, but will display in the infobox.