Difference between revisions of "Template:JobPageHeader"
(Template created using code from tgstation wiki. Original template page: https://tgstation13.org/wiki/Template:JobPageHeader) |
m |
||
Line 4: | Line 4: | ||
|- | |- | ||
|width = 150 align=center bgcolor="{{{imagebgcolor|#cccccc}}}"|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }} '''{{{jobtitle|Job}}}''' | |width = 150 align=center bgcolor="{{{imagebgcolor|#cccccc}}}"|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}|64px]] | }} {{#if:{{{img|}}} | <br> | {{#if:{{{img_generic|}}} | <br> | }} }} '''{{{jobtitle|Job}}}''' | ||
− | |'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisors:''' {{{superior|Not defined}}}<br>'''Duties:''' {{{duties|Not defined}}}<br>'''Guides:''' {{{guides|Not defined}}} {{#if: {{{quote|}}} | <br>'''Quote:''' ''{{{quote}}}''}} | + | |'''Faction:''' {{{faction|Not defined}}}<br>'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisors:''' {{{superior|Not defined}}}<br>'''Duties:''' {{{duties|Not defined}}}<br>'''Guides:''' {{{guides|Not defined}}} {{#if: {{{quote|}}} | <br>'''Quote:''' ''{{{quote}}}''}} |
|} | |} | ||
<noinclude></code> | <noinclude></code> | ||
Line 11: | Line 11: | ||
== Meaning of parameters == | == Meaning of parameters == | ||
− | '''headerbgcolor''' is the background color of the header/upper part which spans the entire width of the screen. This should be a dark color.<br> | + | '''headerbgcolor''' is the background color of the header/upper part which spans the entire width of the screen. This should be a dark color, and can be set with hex color codes.<br> |
− | '''headerfontcolor''' is the font color of the same part as headerbgcolor<br> | + | '''headerfontcolor''' is the font color of the same part as headerbgcolor. This should be white or a complementary bright color (i.e red on black) if the headerbgcolor is a dark color, and can be set with hex color codes.<br> |
'''stafftype''' is the word that is added at the header/upper part. So adding the word INFANTRY here would yield the same word in this box. Intended to be in caps.<br> | '''stafftype''' is the word that is added at the header/upper part. So adding the word INFANTRY here would yield the same word in this box. Intended to be in caps.<br> | ||
− | '''imagebgcolor''' is the background color of the space behind the image and the job title. | + | '''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, and can be set with hex color codes.<br> |
'''img''' is the in-action image file, without the "File:" or "Image:" prefix. (see examples below) | '''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) | '''img_generic''' is the generic image file, without the "File:" or "Image:" prefix. (see examples below) | ||
− | '''jobtitle, difficulty, guides and duties''' are self-explanatory. '''quote''' will only show if the parameter is specified. | + | '''faction, jobtitle, difficulty, guides and duties''' are self-explanatory. '''quote''' will only show if the parameter is specified. |
== Usage == | == Usage == | ||
Line 25: | Line 25: | ||
{{JobPageHeader | {{JobPageHeader | ||
− | |headerbgcolor = | + | |headerbgcolor = #8240c4 |
|headerfontcolor = white | |headerfontcolor = white | ||
|stafftype = COMMAND | |stafftype = COMMAND | ||
− | |imagebgcolor = | + | |imagebgcolor = #b87ef2 |
|jobtitle = Shipmaster | |jobtitle = Shipmaster | ||
+ | |faction = Covenant | ||
|difficulty = Very Hard | |difficulty = Very Hard | ||
|superior = Prophets, the Hierarchs | |superior = Prophets, the Hierarchs | ||
Line 40: | Line 41: | ||
{{JobPageHeader | {{JobPageHeader | ||
− | |headerbgcolor = | + | |headerbgcolor = #8240c4 |
|headerfontcolor = white | |headerfontcolor = white | ||
|stafftype = COMMAND | |stafftype = COMMAND | ||
− | |imagebgcolor = | + | |imagebgcolor = #b87ef2 |
|img = EZealot.png | |img = EZealot.png | ||
|jobtitle = Shipmaster | |jobtitle = Shipmaster | ||
+ | |faction = Covenant | ||
|difficulty = Very Hard | |difficulty = Very Hard | ||
|superior = Prophets, the Hierarchs | |superior = Prophets, the Hierarchs | ||
Line 55: | Line 57: | ||
{{JobPageHeader | {{JobPageHeader | ||
− | |headerbgcolor = | + | |headerbgcolor = #8240c4 |
|headerfontcolor = white | |headerfontcolor = white | ||
|stafftype = COMMAND | |stafftype = COMMAND | ||
− | |imagebgcolor = | + | |imagebgcolor = #b87ef2 |
|img_generic = EZealot.png | |img_generic = EZealot.png | ||
|jobtitle = Shipmaster | |jobtitle = Shipmaster | ||
+ | |faction = Covenant | ||
|difficulty = Very Hard | |difficulty = Very Hard | ||
|superior = Prophets, the Hierarchs | |superior = Prophets, the Hierarchs | ||
Line 70: | Line 73: | ||
{{JobPageHeader | {{JobPageHeader | ||
− | |headerbgcolor = | + | |headerbgcolor = #8240c4 |
|headerfontcolor = white | |headerfontcolor = white | ||
|stafftype = COMMAND | |stafftype = COMMAND | ||
− | |imagebgcolor = | + | |imagebgcolor = #b87ef2 |
|img = EZealot.png | |img = EZealot.png | ||
|img_generic = EZealot.png | |img_generic = EZealot.png | ||
|jobtitle = Shipmaster | |jobtitle = Shipmaster | ||
+ | |faction = Covenant | ||
|difficulty = Very Hard | |difficulty = Very Hard | ||
|superior = Prophets, the Hierarchs | |superior = Prophets, the Hierarchs |
Revision as of 21:19, 18 June 2023
UNDEFINED
Job
Faction: Not defined
Difficulty: Not defined
Supervisors: Not defined
Duties: Not defined
Guides: 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. This template is meant to be a more in-depth and "updated" version of the old JobPageHeader (JobPageBox) template. Courtesy to tgstation wiki for the original template.
Meaning of parameters
headerbgcolor is the background color of the header/upper part which spans the entire width of the screen. This should be a dark color, and can be set with hex color codes.
headerfontcolor is the font color of the same part as headerbgcolor. This should be white or a complementary bright color (i.e red on black) if the headerbgcolor is a dark color, and can be set with hex color codes.
stafftype is the word that is added at the header/upper part. So adding the word INFANTRY here would yield the same word in this box. Intended to be in caps.
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, and can be set with hex color codes.
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)
faction, jobtitle, difficulty, guides and duties are self-explanatory. quote will only show if the parameter is specified.
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
No image defined:
COMMAND | |
Shipmaster | Faction: Covenant Difficulty: Very Hard Supervisors: Prophets, the Hierarchs Duties: Command the ship, beat your subordinates for heresy, get killed because you wanted to help defend the artifact scanner on the ground. Guides: no separate guides Quote: HAAAUUUGGGHHH WABADAUGH |
Only in-action image defined:
Only generic image defined:
Both images defined: