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

Материал из MassMeta
Перейти к навигации Перейти к поиску
imported>Delicious
Нет описания правки
м (Пример)
 
(не показано 38 промежуточных версий 14 участников)
Строка 1: Строка 1:
<noinclude><code>
<noinclude><code>
</noinclude>{|width=800 cellpadding=2 cellspacing=0
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
|bgcolor="{{{headerbgcolor|#aaaaaa}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{department|UNDEFINED}}} LOCATION'''</font>
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}} ПЕРСОНАЛ'''</font>
|-
|-
|align=center bgcolor="{{{imagebgcolor|#bbbbbb}}}" width="250" rowspan=6|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{loctitle}}}.png}}}|50px]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{loctitle}}}.png}}}|50px]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }} '''{{{loctitle|Location}}}'''
|width = 150 align=center bgcolor="{{{imagebgcolor|#cccccc}}}"|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }} '''{{{jobtitle|Профессия}}}''' <br> '''{{{jobtitle_ru|Профессия (на RU)}}}'''
|bgcolor="{{{imagebgcolor|#bbbbbb}}}"| '''General'''
|'''Доступ:''' {{{access|Not defined}}}<br> {{#if:{{{additional|}}}|'''{{Tooltip | [[Terminology#Additional_Access|Дополнительный доступ]]| При малом количестве сотрудников на станции}}:''' {{{additional|Not defined}}}<br>|}}'''Сложность:''' {{{difficulty|Not defined}}}<br>'''Руководители:''' {{{superior|Not defined}}}<br>'''Обязанности:''' {{{duties|Not defined}}}<br>'''Руководства:''' {{{guides|Not defined}}} {{#if: {{{quote|}}} | <br>'''Цитаты:''' ''{{{quote}}}''}}
|-
|}
|'''Department:''' {{{department|Not defined}}}<br>'''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>
<noinclude></code>
|-
This template is intended to be at the top of each of the jobs pages to provide a basic overview of each job.
|bgcolor="{{{imagebgcolor|#bbbbbb}}}"| '''Description'''
 
|-
== Meaning of parameters ==
|"{{{description|Description not available.}}}"
 
|-
'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color.<br>
|bgcolor="{{{imagebgcolor|#bbbbbb}}}"| '''[[Guide to mapping|Mapping notes]]'''
'''headerfontcolor''' is the font color of the same part as headerbgcolor<br>
|-
'''stafftype''' is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.<br>
| '''Security level: '''{{{sec_level|Not defined}}}<br> '''Style: ''' {{{style|Not defined}}}<br> '''Balance Requirements: ''' {{{balance|No major balance requirements}}}<br> '''Other: ''' {{{other|--}}}
'''imagebgcolor''' is the background color of the space behind the image and the job title. this should be a light color as the job title is always black.<br>
|}<noinclude></code>
'''img''' is the in-action image file, without the "File:" or "Image:" prefix. (see examples below)
This template is intended to be at the top of each of the location pages to provide a basic overview of each location.
'''img_generic''' is the generic image file, without the "File:" or "Image:" prefix. (see examples below)
== How to use ==
'''jobtitle, access, difficulty, guides and duties''' are self-explanatory. '''quote''' will only show if the parameter is specified
 
== Usage ==
Example of the finished product. Check the source code for the code that generated the thing below. Please document any changes you make to the template code in the parameters and usage sections
 
No image defined:
 
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|jobtitle = Captain
|jobtitle_ru = Капитан
|access = All
|additional = N/A
|difficulty = Very hard
|superior = Space Law and Nanotrasen Officials
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
|quote = Look at me, I am the captain now.
}}
 
Only in-action image defined:


  <nowiki>{{Location</nowiki>
{{JobPageHeader
  <nowiki>|headerbgcolor=darkblue</nowiki>
|headerbgcolor = darkblue
  <nowiki>|headerfontcolor=white</nowiki>
|headerfontcolor = white
  <nowiki>|imagebgcolor=lightblue</nowiki>
|stafftype = COMMAND
  <nowiki>|name=Mint and Mint Vault</nowiki>
|imagebgcolor = lightblue
  <nowiki>|image=Mint.png</nowiki>
|img = Captain_action.png
  <nowiki>|department=General</nowiki>
|jobtitle = Captain
  <nowiki>|exits=[[Hallway|Hallway]] north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east</nowiki>
|jobtitle_ru = Капитан
  <nowiki>|purpose=Production and storage of [[Coins|coins]]</nowiki>
|access = All
  <nowiki>|access=Mint for reception desks and loading area, Mint vault for vault</nowiki>
|additional = N/A
  <nowiki>|contents=Coin press, Some [[Coins|coins]]</nowiki>
|difficulty = Very hard
  <nowiki>|clearance=[[Captain]], [[Head of Personnel]], [[Quartermaster]], [[Shaft Miner]], [[Chief Engineer]]</nowiki>
|superior = Space Law and Nanotrasen Officials
  <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>
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
  <nowiki>|sec_level=Medium to high</nowiki>
|guides = no separate guides
  <nowiki>|style=Bank</nowiki>
}}
  <nowiki>|balance=No major balance requirements</nowiki>
  <nowiki>|other=--</nowiki>
  <nowiki>}}</nowiki>


...yields:
Only generic image defined:


{{Location
{{JobPageHeader
|headerbgcolor=darkblue
|headerbgcolor = darkblue
|headerfontcolor=white
|headerfontcolor = white
|imagebgcolor=lightblue
|stafftype = COMMAND
|name=Mint and Mint Vault
|imagebgcolor = lightblue
|image=Mint.png
|img_generic = Generic_captain.png
|department=General
|jobtitle = Captain
|exits=[[Hallway|Hallway]] north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east
|jobtitle_ru = Капитан
|purpose=Production and storage of [[Coins|coins]]
|access = All
|access=Mint for reception desks and loading area, Mint vault for vault
|additional = N/A
|contents=Coin press, Some [[Coins|coins]]
|difficulty = Very hard
|clearance=[[Captain]], [[Head of Personnel]], [[Quartermaster]], [[Shaft Miner]], [[Chief Engineer]]
|superior = Space Law and Nanotrasen Officials
|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. It's vault is a lot less protected than the [[Vault| main vault]] tho.
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|sec_level=Medium to high
|guides = no separate guides
|style=Bank
|balance=No major balance requirements
|other=--
}}
}}


No image defined:
Both images defined:
 
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain_action.png
|img_generic = Generic_captain.png
|jobtitle = Captain
|jobtitle_ru = Капитан
|access = All
|additional = N/A
|difficulty = Very hard
|superior = Space Law and Nanotrasen Officials
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
}}


{{Location
{{JobPageHeader
|headerbgcolor=darkblue
|headerbgcolor = black
|headerfontcolor=white
|headerfontcolor = green
|imagebgcolor=lightblue
|stafftype = ENEMY
|name=Mint and Mint Vault
|imagebgcolor = green
|department=General
|img_generic =  
|exits=[[Hallway|Hallway]] north, [[Maintenance|maintenance]] south, [[Maintenance|maintenance]] east
|img = Heretic.png
|purpose=Production and storage of [[Coins|coins]]
|jobtitle = Heretic
|access=Mint for reception desks and loading area, Mint vault for vault
|jobtitle_ru = Еретик
|contents=Coin press, Some [[Coins|coins]]
|access = Wherever your job has access to
|clearance=[[Captain]], [[Head of Personnel]], [[Quartermaster]], [[Shaft Miner]], [[Chief Engineer]]
|additional = Wherever you can break into or teleport to.
|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. It's vault is a lot less protected than the [[Vault| main vault]] tho.
|difficulty = '''VERY HARD'''
|sec_level=Medium to high
|superior = Forgotten Gods
|style=Bank
|duties = Find influences, realize they've all been taken. Sacrifice people and become all powerful (or die trying).
|balance=No major balance requirements
|guides = This is the guide.  
|other=--
|quote = 'ADMINS HALP HOW DO I SACRIFICE PEOPLE'
}}
}}
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]
</noinclude>

Текущая версия от 17:34, 29 октября 2024

UNDEFINED ПЕРСОНАЛ
Профессия
Профессия (на RU)
Доступ: Not defined
Сложность: Not defined
Руководители: Not defined
Обязанности: Not defined
Руководства: Not defined

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

Meaning of parameters[править код]

headerbgcolor is the background color of the upper part which spans the entire width of the screen. This should be a dark color.
headerfontcolor is the font color of the same part as headerbgcolor
stafftype is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.
imagebgcolor is the background color of the space behind the image and the job title. this should be a light color as the job title is always black.
img is the in-action image file, without the "File:" or "Image:" prefix. (see examples below) img_generic is the generic image file, without the "File:" or "Image:" prefix. (see examples below) jobtitle, access, difficulty, guides and duties are self-explanatory. quote will only show if the parameter is specified

Usage[править код]

Example of the finished product. Check the source code for the code that generated the thing below. Please document any changes you make to the template code in the parameters and usage sections

No image defined:

COMMAND ПЕРСОНАЛ
Captain
Капитан
Доступ: All
Дополнительный доступ
При малом количестве сотрудников на станции
:
N/A
Сложность: Very hard
Руководители: Space Law and Nanotrasen Officials
Обязанности: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Руководства: no separate guides
Цитаты: Look at me, I am the captain now.


Only in-action image defined:

COMMAND ПЕРСОНАЛ

Captain
Капитан
Доступ: All
Дополнительный доступ
При малом количестве сотрудников на станции
:
N/A
Сложность: Very hard
Руководители: Space Law and Nanotrasen Officials
Обязанности: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Руководства: no separate guides


Only generic image defined:

COMMAND ПЕРСОНАЛ

Captain
Капитан
Доступ: All
Дополнительный доступ
При малом количестве сотрудников на станции
:
N/A
Сложность: Very hard
Руководители: Space Law and Nanotrasen Officials
Обязанности: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Руководства: no separate guides


Both images defined:

COMMAND ПЕРСОНАЛ

Captain
Капитан
Доступ: All
Дополнительный доступ
При малом количестве сотрудников на станции
:
N/A
Сложность: Very hard
Руководители: Space Law and Nanotrasen Officials
Обязанности: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Руководства: no separate guides


ENEMY ПЕРСОНАЛ

Heretic
Еретик
Доступ: Wherever your job has access to
Дополнительный доступ
При малом количестве сотрудников на станции
:
Wherever you can break into or teleport to.
Сложность: VERY HARD
Руководители: Forgotten Gods
Обязанности: Find influences, realize they've all been taken. Sacrifice people and become all powerful (or die trying).
Руководства: This is the guide.
Цитаты: ADMINS HALP HOW DO I SACRIFICE PEOPLE