Шаблон:Location: различия между версиями

imported>Atlanta-Ned
(W E W who likes major template changes? Revert if this sucks, you won't hurt my feelings)
Нет описания правки
 
(не показано 17 промежуточных версий 5 участников)
Строка 1: Строка 1:
<noinclude><code>
<includeonly>
</noinclude>{|width=300 cellpadding=2 cellspacing=0 bgcolor=#FFFFFF style="float: right; clear: left; margin: 0 0 20px 20px; border: 1px solid {{{imagebgcolor|#bbbbbb}}}"
<div class="mobile-support" style="width: 22.5em; float: right; clear: left; margin: 0 0 0.75em 0.75em; border: 1px solid {{ColorPalette‎‎|{{{department}}}|Light}}; border-radius: var(--border-radius-medium);">
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{department|Undefined}}} Area'''</font>
{|cellpadding=2 cellspacing=0
|style="background-color: {{ColorPalette‎‎|{{{department}}}|Primary}}; border-bottom: 1px solid {{ColorPalette‎‎|{{{department}}}|Opaque}}; border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;" align="center" colspan=2 | '''{{{department|Undefined}}} Area'''
|-
|-
|align=center bgcolor="{{{imagebgcolor|#bbbbbb}}}" width="350" colspan=2 |[[File:{{{image|NPA.png}}}|frameless|300px|center|link={{{big_image|File:{{{image}}}}}}]] '''{{{name|Undefined Location}}}'''
|style="background-color: {{ColorPalette‎‎|{{{department}}}|Transparent}}" align=center width="350" colspan=2 |[[File:{{{image|NPA.png}}}|frameless|300px|center|link={{{big_image|File:{{{image}}}}}}]] '''{{{name|Undefined Location}}}'''
|-
|-
|colspan=2|{{{description|}}}
|colspan=2|{{{description|}}}
Строка 34: Строка 35:
|{{{other|--}}}
|{{{other|--}}}
|-
|-
|colspan=2 align=center style="border-top: 8px solid {{{imagebgcolor|#bbbbbb}}}"|[[File:jobstemp.png|32px|link=Locations]] '''[[Locations]] on /tg/station'''
|colspan=2 align=center style="border-top: 1px solid {{ColorPalette‎‎|{{{department}}}|Secondary}}"|[[File:jobstemp.png|32px|link=Locations]] '''[[Locations|Локации]] на /BANDA/station'''
|}<noinclude></code>
|}</div>
</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
Строка 78: Строка 62:
  |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]]
Строка 99: Строка 83:
  |other=--
  |other=--
  }}
  }}
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]
</noinclude>

Текущая версия от 08:20, 15 июля 2024


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

{{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
Jobstemp.png Локации на /BANDA/station