Шаблон:JobPageHeader: различия между версиями
Нет описания правки |
Нет описания правки |
||
Строка 2: | Строка 2: | ||
<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: .2em; color: {{{hcolour}}}; padding: .4em .8em .5em;"><center>'''{{{stafftype}}}'''</center></div> | ||
<div style="padding: .15em 0 .15em; overflow: auto; align-items: stretch; display: flex;"> | <div style="padding: .15em 0 .15em; overflow: auto; align-items: stretch; display: flex;"> | ||
<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> | <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> | |||
<div style="float:left; padding: 0 .1em 0"> | <div style="float:left; padding: 0 .1em 0"> | ||
'''Доступ:''' {{{access|Not defined}}} | '''Доступ:''' {{{access|Not defined}}} | ||
<br>'''Начальство:''' {{{superior|Not defined}}} | <br>'''Начальство:''' {{{superior|Not defined}}} | ||
<br>'''Обязанности:''' {{{duties|Not defined}}} | <br>'''Обязанности:''' {{{duties|Not defined}}} | ||
<br>'''Руководства:''' {{{guides|Not defined}}} | |||
</div></div></div> | </div></div></div> | ||
<noinclude> | <noinclude> |
Версия от 23:14, 26 октября 2020
Job
Доступ: 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