Difference between revisions of "Template:Location"

From NSV13
Jump to navigationJump to search
imported>Kosmos
m (Changed all locations-templates to resize the pic to 300px (if bigger than that), I hope I'm not making the bandwidth jump because of this.)
m (The locations are now no longer on /tg/station)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude><code>
+
<includeonly>
</noinclude>{|width=800 cellpadding=2 cellspacing=0
+
{|width=300 cellpadding=2 cellspacing=0 bgcolor=#FFFFFF style="float: right; clear: left; margin: 0 0 20px 20px; border: 1px solid {{{imagebgcolor|#bbbbbb}}}"
 
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{department|Undefined}}} Area'''</font>
 
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{department|Undefined}}} Area'''</font>
 
|-
 
|-
|align=center bgcolor="{{{imagebgcolor|#bbbbbb}}}" width="250" rowspan=6|[[File:{{{image|NPA.png}}}|frameless|300px|center|link={{{big_image|File:{{{image}}}}}}]] '''{{{name|Undefined Location}}}'''
+
|align=center bgcolor="{{{imagebgcolor|#bbbbbb}}}" width="350" colspan=2 |[[File:{{{image|NPA.png}}}|frameless|300px|center|link={{{big_image|File:{{{image}}}}}}]] '''{{{name|Undefined Location}}}'''
|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>
+
|colspan=2|{{{description|}}}
 
|-
 
|-
|bgcolor="{{{imagebgcolor|#bbbbbb}}}"| '''Description'''
+
|'''Obvious exits'''
 +
|{{{exits|Not defined}}}
 
|-
 
|-
|"{{{description|Description not available.}}}"
+
|'''Purpose'''
 +
|{{{purpose|Not defined}}}
 
|-
 
|-
|bgcolor="{{{imagebgcolor|#bbbbbb}}}"| '''[[Guide to mapping|Mapping notes]]'''
+
|'''Access level'''
 +
|{{{access|Not defined}}}
 
|-
 
|-
| '''Security level: '''{{{sec_level|Not defined}}}<br> '''Style: ''' {{{style|Not defined}}}<br> '''Balance Requirements: ''' {{{balance|No major balance requirements}}}<br> '''Other: ''' {{{other|--}}}
+
|'''Noteworthy contents'''
|}<noinclude></code>
+
|{{{contents|Not defined}}}
 +
|-
 +
|'''Clearance'''
 +
|{{{clearance|Not defined}}}
 +
|-
 +
|'''Security level'''
 +
|{{{sec_level|Not defined}}}
 +
|-
 +
|'''Style'''
 +
|{{{style|Not defined}}}
 +
|-
 +
|'''Balance Requirements'''
 +
|{{{balance|No major balance requirements}}}
 +
|-
 +
|'''Other Notes'''
 +
|{{{other|--}}}
 +
|-
 +
|colspan=2 align=center style="border-top: 8px solid {{{imagebgcolor|#bbbbbb}}}"|[[File:NSVBanner299.png|150px|link=Locations]] '''[[Locations]] on NSV13'''
 +
|}
 +
</includeonly>
 +
 
 +
<noinclude>
 
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>
+
<pre>{{Location
  <nowiki>|headerbgcolor=black</nowiki>
 
  <nowiki>|headerfontcolor=white</nowiki>
 
  <nowiki>|imagebgcolor=grey</nowiki>
 
  <nowiki>|department=Space</nowiki>
 
  <nowiki>|name=Space</nowiki>
 
  <nowiki>|image=Space.png</nowiki>
 
  <nowiki>|big_image=Space.png</nowiki>
 
  <nowiki>|exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]</nowiki>
 
  <nowiki>|purpose=A cold, horrible place full of vacuum and a few locations floating around</nowiki>
 
  <nowiki>|access=</nowiki>
 
  <nowiki>|contents=Vacuum, dark matter</nowiki>
 
  <nowiki>|clearance=Anyone</nowiki>
 
  <nowiki>|description=The Final Frontier.</nowiki>
 
  <nowiki>|sec_level=None</nowiki>
 
  <nowiki>|style=Space</nowiki>
 
  <nowiki>|balance=--</nowiki>
 
  <nowiki>|other=--</nowiki>
 
  <nowiki>}}</nowiki>
 
 
 
...yields:
 
{{Template:Location
 
 
  |headerbgcolor=black
 
  |headerbgcolor=black
 
  |headerfontcolor=white
 
  |headerfontcolor=white
 
  |imagebgcolor=grey
 
  |imagebgcolor=grey
 +
|department=Space
 
  |name=Space
 
  |name=Space
 
  |image=Space.png
 
  |image=Space.png
  |department=Space
+
  |big_image=Space.png
 
  |exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
 
  |exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
 
  |purpose=A cold, horrible place full of vacuum and a few locations floating around
 
  |purpose=A cold, horrible place full of vacuum and a few locations floating around
Line 58: Line 61:
 
  |balance=--
 
  |balance=--
 
  |other=--
 
  |other=--
  }}
+
  }}</pre>
  
 
+
...yields:
No image defined:
+
  {{Location
  {{Template:Location
 
 
  |headerbgcolor=black
 
  |headerbgcolor=black
 
  |headerfontcolor=white
 
  |headerfontcolor=white
 
  |imagebgcolor=grey
 
  |imagebgcolor=grey
 
  |name=Space
 
  |name=Space
 +
|image=Space.png
 
  |department=Space
 
  |department=Space
 
  |exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
 
  |exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
Line 79: Line 82:
 
  |other=--
 
  |other=--
 
  }}
 
  }}
[[Category:Templates]]</noinclude>
+
 
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 04:19, 30 June 2020


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

Usage[edit source]

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

{{Location
 |headerbgcolor=black
 |headerfontcolor=white
 |imagebgcolor=grey
 |department=Space
 |name=Space
 |image=Space.png
 |big_image=Space.png
 |exits=[[Space Station 13]], [[Abandoned Satellite]], [[Derelict]], [[Mining Station]]
 |purpose=A cold, horrible place full of vacuum and a few locations floating around
 |access=
 |contents=Vacuum, dark matter
 |clearance=Anyone
 |description=The Final Frontier.
 |sec_level=None
 |style=Space
 |balance=--
 |other=--
 }}

...yields:

Space Area
Space.png
Space
The Final Frontier.
Obvious exits Space Station 13, Abandoned Satellite, Derelict, Mining Station
Purpose A cold, horrible place full of vacuum and a few locations floating around
Access level
Noteworthy contents Vacuum, dark matter
Clearance Anyone
Security level None
Style Space
Balance Requirements
Other Notes
NSVBanner299.png Locations on NSV13