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

Материал из Space Station 13
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
Метка: отменено
Строка 1: Строка 1:
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
<noinclude><code>
<div style="background: #{{{colour|444444}}}; border-radius: .2em; color: {{{hcolour}}}; padding: .4em .8em .5em;"><center>'''{{{stafftype}}}'''</center></div>
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
<div style="padding: .15em 0 .15em; overflow: auto; align-items: stretch; display: flex;">
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}} STAFF'''</font>
<div style="background: #{{{colour|777777}}}4e; width: 11em; height:inherit; float:left; margin-right: .5em;"><center><br>{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}|64px]] | }}  
|-
{{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }}<br>'''{{{jobtitle|Job}}}'''</center></div>
|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|Job}}}'''
<div style="float:left; padding: 0 .1em 0">
|'''Доступ:''' {{{access|Не определен}}}<br> {{#if:{{{additional|}}}|'''[[Terminology#Дополнительный Доступ| Дополнительный Доступ]]:''' {{{additional|Не определен}}}<br>|}}'''Сложность:''' {{{difficulty|Не определен}}}<br>'''Начальство:''' {{{superior|Не определен}}}<br>'''Обязанности:''' {{{duties|Not defined}}}<br>'''Руководства:''' {{{guides|Не определен}}} {{#if: {{{quote|}}} | <br>'''Цитата:''' ''{{{quote}}}''}}
'''Доступ:''' {{{access|Не определен}}} {{#if:{{{additional|}}}|'''<br>Дополнительный Доступ:''' {{{additional|Не определен}}}|}}
|}
<br>'''Начальство:''' {{{superior|Не определено}}}
<noinclude></code>
<br>'''Обязанности:''' {{{duties|Не определены}}}
<br>'''Руководства:''' {{{guides|Не определены}}}
<br>'''Сложность:''' {{{difficulty|Не определена}}}
<br>'''Цитата:''' ''{{{quote|Отсутствует}}}''
</div></div></div>
<noinclude>
This template is intended to be at the top of each of the jobs pages to provide a basic overview of each job.
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 ==
== Meaning of parameters ==


'''colour''' is the background color of the header. This will also set the image background colour automatically.<br>
'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color.<br>
'''hcolour''' is the font colour for the header. It accepts plaintext colours only.
'''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>
'''stafftype''' is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.<br>
'''img''' Sets the file without the need for the <nowiki>[[File:]]</nowiki> command. The extension and size modifier must still be specified.<br>
'''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>
'''jobtitle, access, difficulty, guides and duties''' are self-explanatory.
'''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 ==
== 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
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
|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:
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain_action.png
|jobtitle = Captain
|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
}}
Only generic image defined:
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img_generic = Generic_captain.png
|jobtitle = Captain
|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
}}
Both images defined:


{{JobPageHeader
{{JobPageHeader
|colour = B5E2FF
|headerbgcolor = darkblue
|hcolour = white
|headerfontcolor = white
|img = Generic_captain.png
|stafftype = COMMAND
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain_action.png
|img_generic = Generic_captain.png
|jobtitle = Captain
|jobtitle = Captain
|access = All
|access = All
|additional = N/A
|difficulty = Very hard
|difficulty = Very hard
|superior = Space Law and Nanotrasen Officials
|superior = Space Law and Nanotrasen Officials
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
|guides = no separate guides
|quote = Paramedic, was it? I have a better idea. Congratulations on your promotion to Head of Sanitary Hygiene!
}}
}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Версия от 10:46, 22 февраля 2022

UNDEFINED STAFF
Job Доступ: Не определен
Сложность: Не определен
Начальство: Не определен
Обязанности: 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 STAFF
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 STAFF
Captain action.png
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 STAFF
Generic captain.png
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 STAFF
Generic captain.png Captain action.png
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