Template:Location: Difference between revisions

Jump to navigation Jump to search
2,897 bytes added ,  15:09, 25 April 2020
m
no edit summary
(updated the template to look nicer and be more compact)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{|width=300 cellpadding=2 cellspacing=0 bgcolor=#FFFFFF style="float: right; clear: left; margin: 0 0 20px 20px; border: 2px ridge; border-color: #d3d3d3; border-radius: 3px;"
{|width=300 cellpadding=2 cellspacing=0 bgcolor=#FFFFFF style="float: right; clear: left; margin: 0 0 20px 20px; border: 2px ridge; border-color: #d3d3d3; border-radius: 3px;"
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" style="border-bottom: 1px solid; border-color: #d3d3d3" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{location|Undefined}}}'''</font>
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" style="border-bottom: 1px solid; border-color: #d3d3d3" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{#if: {{{location|}}}|{{{location}}}|Undefined Location}}'''</font>
|-
|-
|align=center width="350" colspan=2 |[[File:{{{image|NPA.png}}}|frameless|300px|center|link={{{big_image|File:{{{image}}}}}}]]
|align=center width="350" colspan=2 |[[File:{{#if: {{{image|}}}|{{{image}}}|NPA.png}}|frameless|300px|center|link={{{big_image|File:{{{image|}}}|{{{image}}}|NPA.png}}}}}]]
|-
|-
|style="border-bottom: 2px dashed; border-color: #d3d3d3" align="center" colspan=2|<span style="font-size:95%;">''{{{description|}}}''</span>
|style="border-bottom: 2px dashed; border-color: #d3d3d3" align="center" colspan=2|<span style="font-size:95%;">{{#if: {{{description|}}}|''{{{description}}}''|}}</span>
|-  style="border-bottom: 2px dashed; border-color: #d3d3d3; background-color: #f5f5f5;"
| style="border-color: #d3d3d3"| '''Purpose:'''
|{{#if: {{{purpose|}}}|{{{purpose}}}|Unknown}}
|-
|-
|'''Purpose'''
| style="border-color: #d3d3d3"| '''Key&nbsp;items:'''
|{{{purpose|}}}
|{{#if: {{{items|}}}|{{{items}}}|None}}
|-  style="border-bottom: 2px dashed; border-color: #d3d3d3; background-color: #f5f5f5;"
| style="border-color: #d3d3d3"| '''Workers:'''
|{{#if: {{{workers|}}}|{{{workers}}}|None}}
|-
|-
|'''Key items'''
| style="border-color: #d3d3d3"| '''Access:'''
|{{{items|}}}
|{{#if: {{{access|}}}|{{{access}}}|Everyone}}
|-  style="border-bottom: 2px dashed; border-color: #d3d3d3; background-color: #f5f5f5;"
| style="border-color: #d3d3d3"| '''Exits:'''
|{{#if: {{{exits|}}}|{{{exits}}}|Not defined}}
|-
|-
|'''Workers'''
|bgcolor="{{{footerbgcolor|#aaaaaa}}}" style="border-top: 1px solid; border-color: #d3d3d3" align="center" colspan=2|<font color="{{{footerfontcolor|#000000}}}">{{#if: {{{department|}}}|'''{{{department}}}'''|}}</font>
|{{{workers|}}}
|}
</includeonly><noinclude>
== About ==
This template is intended to be at the top of each of the [[Locations]] pages to provide a basic overview of each location.
 
== Parameter-Usage ==
{| class="wikitable"
!Parameter
!Default
!Description
|-
!location
|Undefined Location
|Title of the box
|-
!image
|NPA.png
|Small image of the location to be displayed
|-
!big_image
|
|Big version of the image, linked with the displayed small image
|-
!description
|
|Short decription below the image
|-
!purpose
|Unknown
|Purpose / usage and general context
|-
!items
|None
|Key items
|-
!workers
|None
|Workers
|-
!access
|Everyone
|List of roles that have access to the location
|-
!exits
|Not defined
|List of links for neighboring locations
|-
!department
|
|Department the location belongs to
|-
!headerbgcolor
|#aaaaaa
|Background-color of the header
|-
|-
|'''Clearance'''
!headerfontcolor
|{{{clearance|}}}
|#000000
|Font-color of the header
|-
|-
|'''Exits'''
!footerbgcolor
|{{{exits|Not defined}}}
|#aaaaaa
|Background-color of the footer
|-
|-
|bgcolor="{{{footerbgcolor|#aaaaaa}}}" style="border-top: 1px solid; border-color: #d3d3d3" align="center" colspan=2|<font color="{{{footerfontcolor|#000000}}}">'''{{{department|Undefined}}}'''</font>
!footerfontcolor
|#000000
|Font-color of the footer
|}
|}
</includeonly>


<noinclude>
== Examples ==
This template is intended to be at the top of each of the location pages to provide a basic overview of each location.
=== Bare 1 ===
== Usage ==
{{Location}}
Example of the finished product. Please document any changes you make to the template code in the parameters and usage sections
<pre>{{Location}}</pre>
{{Clear}}
 
=== Bare 2 ===
{{Location
|headerbgcolor=
|headerfontcolor=
|image=
|location=
|description=
|purpose=
|items=
|workers=
|access=
|exits=
|department=
|footerbgcolor=
|footerfontcolor=
}}
<pre>{{Location
|headerbgcolor=
|headerfontcolor=
|image=
|location=
|description=
|purpose=
|items=
|workers=
|access=
|exits=
|department=
|footerbgcolor=
|footerfontcolor=
}}</pre>
{{Clear}}
 
=== Normal ===
{{Location
|headerbgcolor=black
|headerfontcolor=white
|image=Space.png
|location=Space
|description=The Final Frontier.
|purpose=A cold, horrible place full of vacuum and a few locations floating around
|items=Vacuum and dark matter
|workers=None
|access=Everyone
|exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
|department=Outside
|footerbgcolor=black
|footerfontcolor=white
}}
<pre>{{Location
|headerbgcolor=black
|headerfontcolor=white
|image=Space.png
|location=Space
|description=The Final Frontier.
|purpose=A cold, horrible place full of vacuum and a few locations floating around
|items=Vacuum and dark matter
|workers=None
|access=Everyone
|exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
|department=Outside
|footerbgcolor=black
|footerfontcolor=white
}}</pre>


<pre> {{Location
=== Another ===
  |headerbgcolor=black
<pre>{{Location
  |headerfontcolor=white
  |headerbgcolor=#a885a2
  |image=Space.png
  |headerfontcolor = black
  |location=Space
  |image=RD_Lab.png
  |description=The Final Frontier.
  |location=Research and Development Lab
  |purpose=A cold, horrible place full of vacuum and a few locations floating around
  |description=The toy manufacturing room.
  |items=Vacuum and dark matter
  |purpose=To research and develop.
  |workers=None
  |items=[[Destructive Analyzer]], [[Protolathe]], [[R&D Console]] and a [[Circuit Imprinter]]
  |clearance=Anyone
  |workers=[[Scientist]], [[Research Director]]
|exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
  |access=[[Scientist]], [[Roboticist]], [[Research Director]]
  |department=Outside
|exits=[[Research Division]] south
  |footerbgcolor=black
  |department=Science
  |footerfontcolor=white
  |footerbgcolor=#a885a2
  |footerfontcolor = black
  }}</pre>
  }}</pre>
 
{{Location
...yields:
  |headerbgcolor=#a885a2
{{Location
  |headerfontcolor = black
  |headerbgcolor=black
  |image=RD_Lab.png
  |headerfontcolor=white
  |location=Research and Development Lab
  |image=Space.png
  |description=The toy manufacturing room.
  |location=Space
  |purpose=To research and develop.
  |description=The Final Frontier.
  |items=[[Destructive Analyzer]], [[Protolathe]], [[R&D Console]] and a [[Circuit Imprinter]]
  |purpose=A cold, horrible place full of vacuum and a few locations floating around
  |workers=[[Scientist]], [[Research Director]]
  |items=Vacuum and dark matter
  |access=[[Scientist]], [[Roboticist]], [[Research Director]]
  |workers=None
|exits=[[Research Division]] south
  |clearance=Anyone
  |department=Science
|exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
  |footerbgcolor=#a885a2
  |department=Outside
  |footerfontcolor = black
  |footerbgcolor=black
  |footerfontcolor=white
  }}
  }}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
Wiki Staff
6,460

edits

Navigation menu