Шаблон:Заголовок работ: различия между версиями

Материал из Fluffy Frontier
м (Redandwhiteu переименовал страницу Шаблон:JobPageHeader в Шаблон:Заголовок работ)
Нет описания правки
 
(не показано 8 промежуточных версий 1 участника)
Строка 1: Строка 1:
<noinclude><code>
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: .35em 0 1em 0; border: .2em solid #{{{colour|444444}}}; background: #{{{colour|444444}}};">
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
<div style="background: #{{{colour|444444}}}; color: {{{hcolour}}}; padding: .4em .8em .5em;"><center>'''{{{stafftype}}}'''</center></div>
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}} ПЕРСОНАЛ'''</font>
<div style="padding: .15em 0 .15em; overflow: auto; align-items: stretch; display: flex;">
|-
<div style="border: .2em solid #{{{colour|444444}}}; border-radius: .5em; background: #FFFFFF; width: 10%;">
|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="background: #{{{ebcolour|#444444}}}1e; border-radius: .2em; padding: .4em .4em .6em; line-height:1.2em; margin:.25em; height: 88%;"><center>[[File:{{{img}}}|64px]]<br>
|'''Доступ:''' {{{access|Not defined}}}<br> {{#if:{{{additional|}}}|'''[[Terminology#Additional_Access | Дополнительный доступ]]:''' {{{additional|Дополнительный доступ}}}<br>|}}'''Сложность:''' {{{difficulty|Not defined}}}<br>'''Начальники:''' {{{superior|Not defined}}}<br>'''Обязанности:''' {{{duties|Not defined}}}<br>'''Гайды:''' {{{guides|Not defined}}} {{#if: {{{quote|}}} | <br>'''Цитата:''' ''{{{quote}}}''}}
<div style="line-height:1.2em;"><center><span style="font-weight: bold;">{{{jobtitle|Job}}}</span></center></div></center></div></div>
|}
<div style="border: .2em solid #{{{colour|444444}}}; border-radius: .5em; background: #FFFFFF; width:90%;">
<noinclude></code>
<div style="background: #{{{ebcolour|#444444}}}1e; border-radius: .2em; padding: .4em .4em .6em; line-height:1.5em; margin: .25em;">
This template is intended to be at the top of each of the jobs pages to provide a basic overview of each job.
'''Руководители:''' {{{superior|Нет}}}
<br>'''Уровень сложности:''' {{{difficulty|Нет}}}
<br>'''Руководства:''' {{{guides|Нет}}}
<br>'''Доступ:''' {{{access|Нет}}}
<br>'''Обязанности:''' {{{duties|Нет}}}
<br>'''Минимальные требования:''' {{{requirements|Нет}}}
</div></div></div></div>


== Meaning of parameters ==
<noinclude>
Этот шаблон используется в качестве заголовков для работ.


'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color.<br>
== Параметры ==
'''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>
'''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>
'''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 ==
'''colour''' Фоновый цвет заголовка.<br>
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
'''hcolour''' Цвет шрифта заголовка.<br>
'''bcolour''' Цвет фона названия работы.<br>
'''bhcolour''' Цвет названия работы.<br>
'''ebcolour''' Фоновый цвет основного инфобокса.<br>
'''stafftype''' Кодификатор типов отделов. НЕ переведён.<br>
'''img''' Добавление картинки.<br>
'''jobtitle, access, difficulty, guides and duties''' Теста шаблона


No image defined:
== Использование ==
Ниже приводится пример полностью работающего шаблона.


{{JobPageHeader
{{Заголовок работ
|headerbgcolor = darkblue
|colour = 265473
|headerfontcolor = white
|hcolour = #FFB300
|stafftype = КОМАНДНЫЙ
|bcolour = 265473
|imagebgcolor = lightblue
|bhcolour = #FFB300
|jobtitle = Captain
|ebcolour = 265473
|access = All
|img = Generic_captain.png
|additional = N/A
|stafftype = Командование
|difficulty = Very hard
|jobtitle = Станционный капитан
|superior = Space Law and Nanotrasen Officials
|access = Везде
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|difficulty = Очень сложно
|guides = no separate guides
|superior = [[Космозакон]] и ЦК НТ.
|quote = Look at me, I am the captain now.
|duties = Управляйте научно-исследовательской станцией и его службами, выполняя цели и задачи, возложенные на вашу станцию. Решайте конфликты среди экипажа.
|guides = [[Цепь командования]], [[Космозакон]], [[Руководство по судебной практике]], [[Guide to Head of Staff Equipment|Снаряжение глав]], [[Бумажная работа]]
|requirements = Обеспечьте безопасность диску ядерной активации, пинпоинтеру и прочим вещам капитана. Следите за ходом работы станции и корректируйте её по мере необходимости.
}}
}}


Only in-action image defined:
[[Категория:Шаблоны]]</noinclude>
 
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = КОМАНДНЫЙ
|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 = КОМАНДНЫЙ
|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
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = КОМАНДНЫЙ
|imagebgcolor = lightblue
|img = Captain_action.png
|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
}}
 
[[Category:Templates]]
</noinclude>

Текущая версия от 13:27, 20 мая 2023

{{{stafftype}}}
[[File:{{{img}}}|64px]]
Job

Руководители: Нет
Уровень сложности: Нет
Руководства: Нет
Доступ: Нет
Обязанности: Нет
Минимальные требования: Нет


Этот шаблон используется в качестве заголовков для работ.

Параметры

colour Фоновый цвет заголовка.
hcolour Цвет шрифта заголовка.
bcolour Цвет фона названия работы.
bhcolour Цвет названия работы.
ebcolour Фоновый цвет основного инфобокса.
stafftype Кодификатор типов отделов. НЕ переведён.
img Добавление картинки.
jobtitle, access, difficulty, guides and duties Теста шаблона

Использование

Ниже приводится пример полностью работающего шаблона.

Командование
Generic captain.png
Станционный капитан

Руководители: Космозакон и ЦК НТ.
Уровень сложности: Очень сложно
Руководства: Цепь командования, Космозакон, Руководство по судебной практике, Снаряжение глав, Бумажная работа
Доступ: Везде
Обязанности: Управляйте научно-исследовательской станцией и его службами, выполняя цели и задачи, возложенные на вашу станцию. Решайте конфликты среди экипажа.
Минимальные требования: Обеспечьте безопасность диску ядерной активации, пинпоинтеру и прочим вещам капитана. Следите за ходом работы станции и корректируйте её по мере необходимости.