Difference between revisions of "Template:Location"

From Paradise Station Wiki
Jump to navigation Jump to search
(major styling change, using ParserFunctions to make some fields (including the description) disappear when not set, layout change)
(minor fixing <noinclude> tags, some others.)
Line 1: Line 1:
<code>
<noinclude><code></noinclude>
<includeonly>{| class="wikitable" width=99% cellpadding=2 cellspacing=0
{| class="wikitable" width="100%" cellpadding="2" cellspacing="0"
| bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=3 | {{Color|{{{headerfontcolor|#000000}}}|'''{{{department|Undefined}}} Area'''}}
| bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=3 | {{Color|{{{headerfontcolor|#000000}}}|'''{{{department|Undefined}}} Area'''}}
|- style="font-weight: bold; text-align: center; background: {{{imagebgcolor|#bbbbbb}}};"
|- style="font-weight: bold; text-align: center; background: {{{imagebgcolor|#bbbbbb}}};"
Line 26: Line 26:
|-
|-
| '''Balance Requirements:''' || {{{balance|No major balance requirements.}}}
| '''Balance Requirements:''' || {{{balance|No major balance requirements.}}}
|-
{{#if:{{{other|}}}|{{!}}-|}}
|{{#if:{{{other|}}}|'''Other:''' {{{other}}}|}}
{{#if:{{{other|}}}|{{!}} '''Other:''' {{!}}{{!}} {{{other|}}}|}}
|}
|}
{{#if:{{{description|}}}|{{!}} {{{description}}}|}}
{{#if:{{{image|}}}|{{!}}- style="background: {{{imagebgcolor|#bbbbbb}}};"|}}
{{#if:{{{image|}}}|{{!}}- style="background: {{{imagebgcolor|#bbbbbb}}};"}}
{{#if:{{{image|}}}|{{!}} colspan={{#if:{{{description|}}}|3|2}} {{!}} [[File:{{{image}}}|center|link={{{big_image|File:{{{image}}}}}}|caption={{{name|}}}]]|}}
{{#if:{{{image|}}}|{{!}} colspan={{#if:{{{description|}}}|3|2}} {{!}} [[File:{{{image}}}|center|link={{{big_image|File:{{{image}}}}}}|caption={{{name|}}}]]}}
|}<noinclude></code>
|}</includeonly></code>


This template is intended to be at the top of each of the location pages to provide a basic overview of each location.
This template is intended to be at the top of each of the location pages to provide a basic overview of each location.

Revision as of 16:23, 29 October 2014

Undefined Area
General Notes
Obvious exits: Undefined.
Purpose: Undefined.
Access level: Undefined.
Noteworthy contents: Undefined.
Clearance: Undefined.
Security level: Undefined.
Style: Undefined.
Balance Requirements: No major balance requirements.



This template is intended to be at the top of each of the location pages to provide a basic overview of each location.

Usage

Example of the finished product. Please document any changes you make to the template code in the parameters and usage sections

   {{Template:Location
   | headerbgcolor = darkblue
   | headerfontcolor = white
   | imagebgcolor = lightblue
   | department = General
   | name = Mint and Mint Vault
   | image = Mint.png
   | big_image = Mint_big.png
   | exits = [[Hallway|Hallway]] north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east
   | purpose = Production and storage of [[Coins|coins]]
   | access = Mint for reception desks and loading area, Mint vault for vault
   | contents = Coin press, Some [[Coins|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|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
   | style = Bank
   | balance = No major balance requirements
   | other = --
   }}

... yields:


General Area
General Notes Description
Obvious exits: Hallway north, maintenance south, maintenance east
Purpose: Production and storage of coins
Access level: Mint for reception desks and loading area, Mint vault for vault
Noteworthy contents: Coin press, Some coins
Clearance: Captain, Head of Personnel, Quartermaster, Shaft Miner, Chief Engineer
Security level: Medium to High
Style: Bank
Balance Requirements: No major balance requirements
Other: --
caption=Mint and Mint Vault

And with no image defined:


General Area
General Notes Description
Obvious exits: Hallway north, maintenance south, maintenance east
Purpose: Production and storage of coins
Access level: Mint for reception desks and loading area, Mint vault for vault
Noteworthy contents: Coin press, Some coins
Clearance: Captain, Head of Personnel, Quartermaster, Shaft Miner, Chief Engineer
Security level: Medium to High
Style: Bank
Balance Requirements: No major balance requirements
Other: --
caption=Mint and Mint Vault