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

imported>Azizonkg
м (Защитил страницу Шаблон:JobPageHeader: популярная страница: Изменение этого шаблона будет требовать изменения всех страниц ролей на вики. Но даже, если вы готовы на это, то излишняя информация, которая будет вами добавлена - только нагружает страницу с шаблоном ненужной инфой. ([Редактирование=Разрешено только администраторам] (бессрочно) [Переименование=Разрешено только администраторам] (бессрочно)))
imported>He11Force
(Изменение оформления)
Строка 1: Строка 1:
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
<div style="box-shadow: 0 0 .3em #999; border-radius: 10px; margin: 1em 0 1em 0; padding: 1px;">
<div style="background: #{{{colour|444444}}}; border-radius: .2em; color: {{{hcolour}}}; padding: .4em .8em .5em;"><center>'''{{{stafftype}}}'''</center></div>
<div style="background: #{{{colour|444444}}}; border-radius: 10px; color: {{{hcolour}}}; padding: 7px; position: relative; z-index: 10;"><center>'''{{{stafftype}}}'''</center></div>
<div style="padding: .15em 0 .15em; overflow: auto; align-items: stretch; display: flex;">
<div style="overflow: auto; align-items: stretch; display: flex;">
<div style="background: #{{{colour|777777}}}4e; width: 11em; height:inherit; float:left; margin-right: .5em;"><center><br>[[File:{{{img}}}]]<br>'''{{{jobtitle|Job}}}'''</center></div>
<div style="background: #{{{colour|777777}}}4e; float:left; margin-right: 10px; margin-left: 10px; margin-bottom: 10px; border-radius: 0 0 10px 10px; display: flex; align-items: center; justify-content: center;"><center>
<div style="float:left; padding: 0 .1em 0">
<div style="margin: 10px; width: 128px; height: 100px;">[[File:{{{img}}}|92px]]</div>
'''Глава:''' {{{superior|Not defined}}}
<div style="margin: 10px;">'''{{{jobtitle|Job}}}'''</div></center></div>
<br>'''Сложность:''' {{{difficulty|Not defined}}}
<div style="float:left; margin: 10px;">
<br>'''Руководства:''' {{{guides|Not defined}}}
{|
<br>'''Доступ:''' {{{access|Not defined}}}
|-
<br>'''Обязанности:''' {{{duties|Not defined}}}
|'''Глава: '''
|{{{superior|Not defined}}}
|-
|'''Сложность: '''
|{{{difficulty|Not defined}}}
|-
|'''Руководства: '''
|{{{guides|Not defined}}}
|-
|'''Доступ: '''
|{{{access|Not defined}}}
|-
|'''Обязанности: '''
|{{{duties|Not defined}}}
|}
</div></div></div>
</div></div></div>
<noinclude>
<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.
Строка 25: Строка 40:


{{JobPageHeader
{{JobPageHeader
|colour = B5E2FF
|colour = 127BB7
|hcolour = white
|hcolour = white
|img = Generic_captain.png
|img = Generic_captain.png
Строка 34: Строка 49:
|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
}}
}}


[[Category:Шаблоны]]
[[Category:Шаблоны]]
</noinclude>
</noinclude>

Версия от 14:07, 31 июля 2022

{{{stafftype}}}
[[File:{{{img}}}|92px]]
Job
Глава: 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

colour is the background color of the header. This will also set the image background colour automatically.
hcolour is the font colour for the header. It accepts plaintext colours only. stafftype is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.
img Sets the file without the need for the [[File:]] command. The extension and size modifier must still be specified.
jobtitle, access, difficulty, guides and duties are self-explanatory.

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

COMMAND
Generic captain.png
Captain
Глава: Space Law and Nanotrasen Officials
Сложность: Very hard
Руководства: No separate guides
Доступ: All
Обязанности: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.