Difference between revisions of "Template:JobPageHeader"

From Paradise Station Wiki
Jump to navigation Jump to search
(Fixes defines.)
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude><code>
{{DepartmentNavBar
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
| Department = {{{stafftype}}}
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}}'''</font>
| color     = {{{colour|444444}}}
|-
| textcolor  = {{{hcolour|FFFFFF}}}
|width = 150 align=center bgcolor="{{{imagebgcolor|#cccccc}}}"|[[File:{{{img_generic|{{{jobtitle}}}.png}}}]] <br> <br> '''{{{jobtitle|Job}}}'''
| padding    = 0
|'''Access:''' {{{access|Not defined}}}<br>'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisors:''' {{{superior|Not defined}}}<br>'''Duties:''' {{{duties|Not defined}}}<br>'''Guides:''' {{{guides|Not defined}}}
| content    = <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>
<noinclude></code>
<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>
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.


== Meaning of parameters ==
== Meaning of parameters ==


'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color.<br>
'''colour''' is the background color of the header. This will also set the image background colour automatically.<br>
'''headerfontcolor''' is the font color of the same part as headerbgcolor<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>
'''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''' Sets the file without the need for the <nowiki>[[File:]]</nowiki> command. The extension and size modifier must still be specified.<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.
'''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


== Usage ==
== 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
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
No image defined:
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|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
}}
Only in-action image defined:
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain.png
|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
}}
Only generic image defined:
{{JobPageHeader
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img_generic = Generic_captain.png
|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
}}
Both images defined:


{{JobPageHeader
{{JobPageHeader
|headerbgcolor = darkblue
|colour = 127BB7
|headerfontcolor = white
|hcolour = white
|stafftype = COMMAND
|img = Generic_captain.png
|imagebgcolor = lightblue
|stafftype = COMMAND
|img = Captain.png
|jobtitle = Captain
|img_generic = Generic_captain.png
|access = All
|jobtitle = Captain
|difficulty = Very hard
|access = All
|superior = Space Law and Nanotrasen Officials
|difficulty = Very hard
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|superior = Space Law and Nanotrasen Officials
|guides = no separate guides
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
}}
}}


[[Category:Templates]]
[[Category:JobTemplates]]
</noinclude>
</noinclude>

Latest revision as of 02:49, 23 November 2023

{{{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. theft_targets is an optional parameter for crewmembers (captaian, heads, etc) who start the round with items which may be antag theft targets

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.