Difference between revisions of "Template:Location"

From Paradise Station Wiki
Jump to navigation Jump to search
(completely redid UI, added flex boxes, fixed a few page overflow issues)
Line 1: Line 1:
<noinclude><code></noinclude>
<div style="margin: 1em 0 1em 0; background:#{{ColorPalette‎‎|{{{Theme}}}|Tertiary}};  border-style:outset; border-width:.2em; border-color:#{{ColorPalette‎‎|{{{Theme}}}|Secondary}}; border-radius:1em; padding: 1px; width:81.7vw;">
{| class="wikitable" width="100%" cellpadding="2" cellspacing="0"
<div style="background:#{{ColorPalette‎‎|{{{Theme}}}|Primary}}; color:#{{ColorPalette‎‎|{{{Theme}}}|Header Text}}; font-weight:bold; text-align:center; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|{{{Theme}}}|Primary Bold}}; border-radius:.8em; margin: 0 0 .1em 0;"><center>'''{{{department|Undefined}}} Area'''</center></div>
| bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=3 | {{Color|{{{headerfontcolor|#000000}}}|'''{{{department|Undefined}}} Area'''}}
<div style="padding: .15em 0 .15em; margin-bottom:.5em; overflow: auto; align-items: stretch; display: flex;">
|- style="font-weight: bold; text-align: center; background: {{{imagebgcolor|#bbbbbb}}};"
<div style="background:#{{ColorPalette‎‎|{{{Theme}}}|Very Light}}; font-weight:bold; color:black; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|{{{Theme}}}|Light}}; border-radius:.6em; box-shadow: 0 0 .3em #999; width:50%; margin-right: .5em;">
| General
<center>'''General'''</center>
{{#if:{{{description|}}}|{{!}} Description|}}
<hr>
|- valign="top"
|
{|
{|
| '''Obvious exits:''' || {{{exits|Undefined.}}}
| '''Obvious exits:''' || {{{exits|Undefined.}}}
Line 20: Line 18:
| '''Security level:''' || {{{sec_level|Undefined.}}}
| '''Security level:''' || {{{sec_level|Undefined.}}}
|}
|}
{{#if:{{{description|}}}|{{!}} {{{description}}}|}}
{{#if:{{{image|}}}|{{!}}- style="background: {{{imagebgcolor|#bbbbbb}}};"|}}
{{#if:{{{image|}}}|{{!}} colspan={{#if:{{{description|}}}|3|2}} {{!}}<div style="overflow:auto; overflow-x:auto; max-height:40em; width:80em;"> [[File:{{{image}}}|center]]}}
</div>
</div>
|}
<div style="background:#{{ColorPalette‎‎|{{{Theme}}}|Very Light}}; font-weight:bold; color:black; border-style:double; border-width:.2em; border-color:#{{ColorPalette‎‎|{{{Theme}}}|Light}}; border-radius:.6em; box-shadow: 0 0 .3em #999; width:50%; margin-right: .5em;">
{{Locations|Station={{{Station}}}}}
<center>'''Description'''</center>
[[Category:locations]]<noinclude></code>
<hr>
 
{{{description|}}}
This template is intended to be at the top of each of the location pages to provide a basic overview of each location.
</div>
 
</div>
== Usage ==
{{#if:{{{image|}}}|<div style="overflow:auto; overflow-x:auto; max-height:40em; width:100%;"> [[File:{{{image}}}|center]]</div>|}}
Example of the finished product. Please document any changes you make to the template code in the parameters and usage sections
</div>
    <nowiki>{{Template:Location</nowiki>
{{Locations|Station={{{Station}}}}}  
    <nowiki>| headerbgcolor = darkblue</nowiki>
<includeonly>[[Category:locations]]</includeonly>
    <nowiki>| headerfontcolor = white</nowiki>
    <nowiki>| imagebgcolor = lightblue</nowiki>
    <nowiki>| department = General</nowiki>
    <nowiki>| name = Mint and Mint Vault</nowiki>
    <nowiki>| image = Mint.png</nowiki>
    <nowiki>| big_image = Burger.png</nowiki>
    <nowiki>| exits = Hallway north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east</nowiki>
    <nowiki>| purpose = Production and storage of coins</nowiki>
    <nowiki>| access = Mint for reception desks and loading area, Mint vault for vault</nowiki>
    <nowiki>| contents = Coin press, Some coins</nowiki>
    <nowiki>| clearance = [[Captain]], [[Head of Personnel]], [[Quartermaster]], [[Shaft Miner]], [[Chief Engineer]]</nowiki>
    <nowiki>| description = A semi-protected room, accessible from the south and east from [[Maintenance|maintenance]] and from the Hallways in the north. Modeled to look like a bank, it is intended to store money and other valuables. Its vault is a lot less protected than the [[Vault| main vault]] though.</nowiki>
    <nowiki>| sec_level = Medium to High</nowiki>
    <nowiki>}}</nowiki>
 
... yields:
 
{{Template:Location
| headerbgcolor = darkblue
| headerfontcolor = white
| imagebgcolor = lightblue
| department = General
| name = Mint and Mint Vault
| image = Mint.png
| big_image =
| exits = Hallway north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east
| purpose = Production and storage of coins
| access = Mint for reception desks and loading area, Mint vault for vault
| contents = Coin press, Some coins
| clearance = [[Captain]], [[Head of Personnel]], [[Quartermaster]], [[Shaft Miner]], [[Chief Engineer]]
| description = A semi-protected room, accessible from the south and east from [[Maintenance|maintenance]] and from the hallways in the north. Modeled to look like a bank, it is intended to store money and other valuables. Its vault is a lot less protected than the [[Vault| main vault]] though.
| sec_level = Medium to High
}}
 
And with no image defined:
 
{{Template:Location
| headerbgcolor = darkblue
| headerfontcolor = white
| imagebgcolor = lightblue
| department = General
| name = Mint and Mint Vault
| image = Central Command.png
| exits = Hallway north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east
| purpose = Production and storage of coins
| access = Mint for reception desks and loading area, Mint vault for vault
| contents = Coin press, Some coins
| clearance = [[Captain]], [[Head of Personnel]], [[Quartermaster]], [[Shaft Miner]], [[Chief Engineer]]
| description = A semi-protected room, accessible from the south and east from [[Maintenance|maintenance]] and from the main hallway in the north. Modeled to look like a bank, it is intended to store money and other valuables. Its vault is a lot less protected than the [[Vault| main vault]] though.
| sec_level = Medium to High
}}
 
[[Category:Templates]]</noinclude>

Revision as of 16:12, 3 July 2021

Undefined Area
General

Obvious exits: Undefined.
Purpose: Undefined.
Access level: Undefined.
Noteworthy contents: Undefined.
Clearance: Undefined.
Security level: Undefined.
Description

Template:Locations