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

imported>BorisBritva
(Новая страница: «<div style="background: {{{colour}}}; border-radius: .2em; color: #FFF;"><center>'''{{{header}}}'''</center></div> <div style="padding: 0 0.3em; line-height:1.8em...»)
 
imported>RaMMfan
Нет описания правки
Строка 1: Строка 1:
<div style="background: {{{colour}}}; border-radius: .2em; color: #FFF;"><center>'''{{{header}}}'''</center></div>
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
<div style="padding: 0 0.3em; line-height:1.8em; font-size: .9em;">
<div style="background: #{{{colour|444444}}}; border-radius: .2em; color: {{{hcolour}}}; padding: .4em .8em .5em;"><center>'''{{{stafftype}}}'''</center></div>
{{{content}}}
<div style="padding: .15em 0 .15em; overflow: auto; align-items: stretch; display: flex;">
</div>
<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}}}
</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.
 
== Meaning of parameters ==
 
'''colour''' is the background color of the header. This will also set the image background colour automatically.<br>
'''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.<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.
 
== 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
 
{{JobPageHeader
|colour = B5E2FF
|hcolour = white
|img = Generic_captain.png
|stafftype = COMMAND
|jobtitle = Captain
|access = All
|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>

Версия от 18:15, 14 февраля 2020

{{{stafftype}}}

[[File:{{{img}}}]]
Job

Superiors: Not defined
Difficulty: Not defined
Guides: Not defined
Access: Not defined
Duties: 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

Superiors: Space Law and Nanotrasen Officials
Difficulty: Very hard
Guides: no separate guides
Access: All
Duties: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.