Difference between revisions of "Template:JobPageHeader"

From Nuclear 14
Jump to navigation Jump to search
Line 13: Line 13:
</div></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.
'''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

{{JobPageHeader
|colour = 127BB7
|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:JobTemplates]]
</noinclude>

Revision as of 15:14, 25 August 2024

{{{stafftype}}}

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

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

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