Difference between revisions of "Template:Location"
Diabloshadow (talk | contribs) (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: | ||
<code> | |||
< | <includeonly>{| class="wikitable" width=99% cellpadding=2 cellspacing=0 | ||
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan= | | 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.}}} | |||
|- | |- | ||
| | | '''Purpose:''' || {{{purpose|Undefined.}}} | ||
| | |||
|- | |- | ||
| | | '''Access level:''' || {{{access|Undefined.}}} | ||
|- | |- | ||
| | | '''Noteworthy contents:''' || {{{contents|Undefined.}}} | ||
|- | |- | ||
| | | '''Clearance:''' || {{{clearance|Undefined.}}} | ||
|} | |||
| | |||
{| | |||
| '''Security level:''' || {{{sec_level|Undefined.}}} | |||
|- | |- | ||
| | | '''Style:''' || {{{style|Undefined.}}} | ||
|- | |- | ||
| ''' | | '''Balance Requirements:''' || {{{balance|No major balance requirements.}}} | ||
|}< | |- | ||
|{{#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> | |||
... 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 = -- | |||
}} | |||
And with no image defined: | |||
No | {{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 = -- | |||
}} | |||
[[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.
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.
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>