Template:JobPageHeader: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
imported>Steelpoint
No edit summary
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude><code>
<includeonly>{|width="100%" cellspacing="0" cellpadding="2"
</noinclude>{|width="100%" cellspacing="0" cellpadding="2"
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}} STAFF'''</font>
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan=2|<font color="{{{headerfontcolor|#000000}}}">'''{{{stafftype|UNDEFINED}}} STAFF'''</font>
|-
|-
|width = 150 align=center bgcolor="{{{imagebgcolor|#cccccc}}}"|{{#if:{{{img_generic|}}}| [[File:{{{img_generic|{{{jobtitle}}}.png}}}|50px]] | }} {{#if:{{{img|}}}| [[File:{{{img|{{{jobtitle}}}.png}}}|50px]] | }} {{#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: {{{titles|}}} | '''Alternative Titles:''' {{{titles|Not defined}}}<br> }}'''Access:''' {{{access|Not defined}}}<br>'''[[Terminology#Additional_Access | Additional Access]]:''' {{{additional|Not defined}}}<br>'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisors:''' {{{superior|Not defined}}} {{#if: {{{subordinates|}}} | <br>'''Subordinates:''' {{{subordinates}}} }}<br>'''Duties:''' {{{duties|Not defined}}}<br>'''Guides:''' {{{guides|Not defined}}} {{#if: {{{age|}}} | <br>'''Minimum Age:''' {{{age}}}}} {{#if: {{{quote|}}} | <br>'''Quote:''' ''{{{quote}}}''}}
|}</includeonly><noinclude>
== About ==
This template is intended to be at the top of each of the [[Jobs|jobs pages]] like the [[Station Engineer]] to provide a basic overview of each job.
 
== Parameter-Usage ==
{| class="wikitable"
!Parameter
!Default
!Description
|-
!headerbgcolor
|#bbbbbb
|Background-color of the upper part which spans the entire width of the screen. This should be a dark color.
|-
!headerfontcolor
|#000000
|Font-color of the same part as headerbgcolor.
|-
!stafftype
|UNDEFINED
|Word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.
|-
!imagebgcolor
|#cccccc
|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.
|-
!img
|
|In-action image file, without the "File:" or "Image:" prefix.
|-
!img_generic
|
|Generic image file, without the "File:" or "Image:" prefix.
|-
!jobtitle
|Job
|Official name of the role/job
|-
!access
|Not defined
|Access of the role
|-
!additional
|Not defined
|Additional access granted to the role
|-
!difficulty
|Not defined
|Short comment on average difficulty to be excepted
|-
!guides
|Not defined
|List of links to relevant guides
|-
!duties
|Not defined
|A short list of the most important things to do
|-
!age
|
|(Optional), Displays minimum character age
|-
!quote
|
|(Optional), shows a quote when specified
|}
|}
<noinclude></code>
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 ==
== Examples ==
 
=== Bare ===
'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark color.<br>
<pre>{{JobPageHeader}}</pre>
'''headerfontcolor''' is the font color of the same part as headerbgcolor<br>
{{JobPageHeader}}
'''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''' 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, 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
 
No image defined:


=== No image defined ===
<pre>{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|jobtitle = Captain
|access = All
|additional = N/A
|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
|quote = Look at me, I am the captain now.
|age=100
}}</pre>
{{JobPageHeader
{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerbgcolor = darkblue
|headerfontcolor = white
|headerfontcolor = white
Line 36: Line 106:
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
|guides = no separate guides
|guides = no separate guides
|quote = Look at me, I am the captain now.
|age=100
}}
}}


Only in-action image defined:
=== Only in-action image defined ===
 
<pre>{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain_action.png
|jobtitle = Captain
|access = All
|additional = N/A
|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
}}</pre>
{{JobPageHeader
{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerbgcolor = darkblue
|headerfontcolor = white
|headerfontcolor = white
Line 55: Line 142:
}}
}}


Only generic image defined:
=== Only generic image defined ===
 
<pre>{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img_generic = Generic_captain.png
|jobtitle = Captain
|access = All
|additional = N/A
|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
}}</pre>
{{JobPageHeader
{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerbgcolor = darkblue
|headerfontcolor = white
|headerfontcolor = white
Line 72: Line 174:
}}
}}


Both images defined:
=== Both images defined ===
 
<pre>{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain_action.png
|img_generic = Generic_captain.png
|jobtitle = Captain
|access = All
|additional = N/A
|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
}}</pre>
{{JobPageHeader
{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerbgcolor = darkblue
|headerfontcolor = white
|headerfontcolor = white

Latest revision as of 18:20, 19 July 2022

About

This template is intended to be at the top of each of the jobs pages like the Station Engineer to provide a basic overview of each job.

Parameter-Usage

Parameter Default Description
headerbgcolor #bbbbbb Background-color of the upper part which spans the entire width of the screen. This should be a dark color.
headerfontcolor #000000 Font-color of the same part as headerbgcolor.
stafftype UNDEFINED Word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.
imagebgcolor #cccccc 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.
img In-action image file, without the "File:" or "Image:" prefix.
img_generic Generic image file, without the "File:" or "Image:" prefix.
jobtitle Job Official name of the role/job
access Not defined Access of the role
additional Not defined Additional access granted to the role
difficulty Not defined Short comment on average difficulty to be excepted
guides Not defined List of links to relevant guides
duties Not defined A short list of the most important things to do
age (Optional), Displays minimum character age
quote (Optional), shows a quote when specified

Examples

Bare

{{JobPageHeader}}
UNDEFINED STAFF
Job Access: Not defined
Additional Access: Not defined
Difficulty: Not defined
Supervisors: Not defined
Duties: Not defined
Guides: Not defined

No image defined

{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|jobtitle = Captain
|access = All
|additional = N/A
|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
|quote = Look at me, I am the captain now.
|age=100
}}
COMMAND STAFF
Captain Alternative Titles: Station Commander, Facility Overseer
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: 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
Minimum Age: 100
Quote: Look at me, I am the captain now.

Only in-action image defined

{{JobPageHeader
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain_action.png
|jobtitle = Captain
|access = All
|additional = N/A
|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
}}
COMMAND STAFF
Captain action.png
Captain
Alternative Titles: Station Commander, Facility Overseer
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: 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
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img_generic = Generic_captain.png
|jobtitle = Captain
|access = All
|additional = N/A
|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
}}
COMMAND STAFF
Generic captain.png
Captain
Alternative Titles: Station Commander, Facility Overseer
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: 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
|titles = Station Commander, Facility Overseer
|headerbgcolor = darkblue
|headerfontcolor = white
|stafftype = COMMAND
|imagebgcolor = lightblue
|img = Captain_action.png
|img_generic = Generic_captain.png
|jobtitle = Captain
|access = All
|additional = N/A
|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
}}
COMMAND STAFF
Generic captain.png Captain action.png
Captain
Alternative Titles: Station Commander, Facility Overseer
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: 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