Difference between revisions of "Template:Location"

From Paradise Station Wiki
Jump to navigation Jump to search
(Created page with "<noinclude><code> </noinclude>{|width=800 cellpadding=2 cellspacing=0 |bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}...")
 
(major styling change, using ParserFunctions to make some fields (including the description) disappear when not set, layout change)
Line 1: Line 1:
<noinclude><code>
<code>
</noinclude>{|width=800 cellpadding=2 cellspacing=0
<includeonly>{| class="wikitable" width=99% cellpadding=2 cellspacing=0
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{department|Undefined}}} Area'''</font>
| bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=3 | {{Color|{{{headerfontcolor|#000000}}}|'''{{{department|Undefined}}} Area'''}}
|- style="font-weight: bold; text-align: center; background: {{{imagebgcolor|#bbbbbb}}};"
| General
| Notes
{{#if:{{{description|}}}|{{!}} Description|}}
|- valign="top"
|
{|
| '''Obvious exits:''' || {{{exits|Undefined.}}}
|-
|-
|align=center bgcolor="{{{imagebgcolor|#bbbbbb}}}" width="250" rowspan=6|[[File:{{{image|NPA.png}}}|center|link={{{big_image|File:{{{image}}}}}}]] '''{{{name|Undefined Location}}}'''
| '''Purpose:''' || {{{purpose|Undefined.}}}
|bgcolor="{{{imagebgcolor|#bbbbbb}}}"| '''General'''
|-
|-
|'''Obvious exits:''' {{{exits|Not defined}}}<br>'''Purpose:''' {{{purpose|Not defined}}}<br>'''Access level:''' {{{access|Not defined}}}<br>'''Noteworthy contents:''' {{{contents|Not defined}}}<br>'''Clearance:''' {{{clearance|Not defined}}}<br>
| '''Access level:''' || {{{access|Undefined.}}}
|-
|-
|bgcolor="{{{imagebgcolor|#bbbbbb}}}"| '''Description'''
| '''Noteworthy contents:''' || {{{contents|Undefined.}}}
|-
|-
|"{{{description|Description not available.}}}"
| '''Clearance:''' || {{{clearance|Undefined.}}}
|}
|
{|
| '''Security level:''' || {{{sec_level|Undefined.}}}
|-
|-
|bgcolor="{{{imagebgcolor|#bbbbbb}}}"| '''[[Guide to mapping|Mapping notes]]'''
| '''Style:''' || {{{style|Undefined.}}}
|-
|-
| '''Security level: '''{{{sec_level|Not defined}}}<br> '''Style: ''' {{{style|Not defined}}}<br> '''Balance Requirements: ''' {{{balance|No major balance requirements}}}<br> '''Other: ''' {{{other|--}}}
| '''Balance Requirements:''' || {{{balance|No major balance requirements.}}}
|}<noinclude></code>
|-
|{{#if:{{{other|}}}|'''Other:''' {{{other}}}|}}
|}
{{#if:{{{description|}}}|{{!}} {{{description}}}|}}
{{#if:{{{image|}}}|{{!}}- style="background: {{{imagebgcolor|#bbbbbb}}};"}}
{{#if:{{{image|}}}|{{!}} colspan={{#if:{{{description|}}}|3|2}} {{!}} [[File:{{{image}}}|center|link={{{big_image|File:{{{image}}}}}}|caption={{{name|}}}]]}}
|}</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.
== Usage ==
== Usage ==
Example of the finished product. Please document any changes you make to the template code in the parameters and usage sections
Example of the finished product. Please document any changes you make to the template code in the parameters and usage sections
    <nowiki>{{Template:Location</nowiki>
    <nowiki>| headerbgcolor = darkblue</nowiki>
    <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 = Mint_big.png</nowiki>
    <nowiki>| exits = [[Hallway|Hallway]] north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east</nowiki>
    <nowiki>| purpose = Production and storage of [[Coins|coins]]</nowiki>
    <nowiki>| access = Mint for reception desks and loading area, Mint vault for vault</nowiki>
    <nowiki>| contents = Coin press, Some [[Coins|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|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.</nowiki>
    <nowiki>| sec_level = Medium to High</nowiki>
    <nowiki>| style = Bank</nowiki>
    <nowiki>| balance = No major balance requirements</nowiki>
    <nowiki>| other = --</nowiki>
    <nowiki>}}</nowiki>


  <nowiki>{{Template:Location</nowiki>
... yields:
  <nowiki>|headerbgcolor=darkblue</nowiki>
  <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=Mint_big.png</nowiki>
  <nowiki>|exits=[[Hallway|Hallway]] north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east</nowiki>
  <nowiki>|purpose=Production and storage of [[Coins|coins]]</nowiki>
  <nowiki>|access=Mint for reception desks and loading area, Mint vault for vault</nowiki>
  <nowiki>|contents=Coin press, Some [[Coins|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|main hallway]] in the north. Modeled to look like a bank, it is intended to stora money and other valuables. It's vault is a lot less protected than the [[Vault| main vault]] tho.</nowiki>
  <nowiki>|sec_level=Medium to high</nowiki>
  <nowiki>|style=Bank</nowiki>
  <nowiki>|balance=No major balance requirements</nowiki>
  <nowiki>|other=--</nowiki>
  <nowiki>}}</nowiki>


...yields:
{{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 = --
}}


{{Template:Location
And with no image defined:
|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 stora money and other valuables. It's vault is a lot less protected than the [[Vault| main vault]] tho.
|sec_level=Medium to high
|style=Bank
|balance=No major balance requirements
|other=--
}}


No image defined:
{{Template:Location
| headerbgcolor = darkblue
| headerfontcolor = white
| imagebgcolor = lightblue
| department = General
| name = Mint and Mint Vault
| image = Mint.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 = --
}}


{{Template:Location
|headerbgcolor=darkblue
|headerfontcolor=white
|imagebgcolor=lightblue
|department = General
|name=Mint and Mint Vault
|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 stora money and other valuables. It's vault is a lot less protected than the [[Vault| main vault]] tho.
|sec_level=Medium to high
|style=Bank
|balance=No major balance requirements
|other=--
}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 15:35, 29 October 2014

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: --
A semi-protected room, accessible from the south and east from 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 main vault though.
caption=Mint and Mint Vault

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:

Template loop detected: Template:Location

And with no image defined:

Template loop detected: Template:Location</noinclude>

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: --
A semi-protected room, accessible from the south and east from 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 main vault though.
caption=Mint and Mint Vault

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:

Template loop detected: Template:Location

And with no image defined:

Template loop detected: Template:Location</noinclude>