Шаблон:JobPageHeader: различия между версиями
imported>He11Force (Изменение оформления) |
(Нагло (с большой признательностью и любовью) используем шаблон вики оффов) |
||
Строка 1: | Строка 1: | ||
{{JobNavBar | |||
| Department = {{{stafftype}}} | |||
<div style="overflow: auto; align-items: stretch; display: flex;"> | | color = {{{colour|444444}}} | ||
<div style="background: #{{{colour|777777}}}4e; | | textcolor = {{{hcolour|FFFFFF}}} | ||
< | | padding = 0 | ||
| content = <div style="overflow: auto; align-items: stretch; display: flex;"> | |||
<div style="float:left; | <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="float:left; padding: 0 .1em 0"> | |||
'''Superiors:''' {{{superior|Not defined}}} | |||
<br>'''Difficulty:''' {{{difficulty|Not defined}}} | |||
<br>'''Guides:''' {{{guides|Not defined}}} | |||
<br>'''Access:''' {{{access|Not defined}}} | |||
<br>'''Duties:''' {{{duties|Not defined}}} | |||
{{#if:{{{theft_targets|}}}|<br>'''High-Risk Items:''' {{{theft_targets}}}|}} | |||
</div></div> | |||
}} | |||
|} | |||
< | |||
<noinclude> | <noinclude> | ||
Этот шаблон должен быть сверху страниц ролей. | |||
== | == Параметры == | ||
'''colour''' is the background color of the header. This will also set the image background colour automatically.<br> | '''colour''' is the background color of the header. This will also set the image background colour automatically.<br> | ||
Строка 35: | Строка 26: | ||
'''img''' Sets the file without the need for the <nowiki>[[File:]]</nowiki> command. The extension and size modifier must still be specified.<br> | '''img''' Sets the file without the need for the <nowiki>[[File:]]</nowiki> command. The extension and size modifier must still be specified.<br> | ||
'''jobtitle, access, difficulty, guides and duties''' are self-explanatory. | '''jobtitle, access, difficulty, guides and duties''' are self-explanatory. | ||
'''theft_targets''' is an optional parameter for crewmembers (captaian, heads, etc) who start the round with items which may be antag theft targets | |||
== | == Пример использования == | ||
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 | ||
{{JobPageHeader | {{JobPageHeader | ||
|colour = 127BB7 | |colour = 127BB7 | ||
|hcolour = white | |hcolour = white | ||
|img = Generic_captain.png | |img = Generic_captain.png | ||
|stafftype = COMMAND | |stafftype = COMMAND | ||
|jobtitle = Captain | |jobtitle = Captain | ||
|access = All | |access = All | ||
|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 = | |guides = no separate guides | ||
}} | }} | ||
[[Category: | [[Category:JobTemplates]] | ||
</noinclude> | </noinclude> |
Версия от 21:25, 8 апреля 2024
Этот шаблон должен быть сверху страниц ролей.
Параметры
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.
theft_targets is an optional parameter for crewmembers (captaian, heads, etc) who start the round with items which may be antag theft targets
Пример использования
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