Difference between revisions of "Template:JobPageHeader"

From NSV13
Jump to navigationJump to search
m (changes guide default to be: this is the guide)
m (doc template usage)
Line 1: Line 1:
<noinclude><code>
+
{|width="50%" cellspacing="0" cellpadding="2"
</noinclude>{|width="50%" 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>
 
|-
 
|-
Line 6: Line 5:
 
|'''Access:''' {{{access|Not defined}}}<br> {{#if:{{{additional|}}}|'''[[Terminology#Additional_Access | Additional Access]]:''' {{{additional|Not defined}}}<br>|}}'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisors:''' {{{superior|Not defined}}}<br>'''Rank:''' {{{rank|Not defined}}}<br>'''Duties:''' {{{duties|Not defined}}}<br>'''Guides:''' {{{guides|This is the guide}}} {{#if: {{{quote|}}} | <br>'''Quote:''' ''{{{quote}}}''}}
 
|'''Access:''' {{{access|Not defined}}}<br> {{#if:{{{additional|}}}|'''[[Terminology#Additional_Access | Additional Access]]:''' {{{additional|Not defined}}}<br>|}}'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisors:''' {{{superior|Not defined}}}<br>'''Rank:''' {{{rank|Not defined}}}<br>'''Duties:''' {{{duties|Not defined}}}<br>'''Guides:''' {{{guides|This is the guide}}} {{#if: {{{quote|}}} | <br>'''Quote:''' ''{{{quote}}}''}}
 
|}
 
|}
<noinclude></code>
+
<noinclude>
This template is intended to be at the top of each of the jobs pages to provide a basic overview of each job.
+
{{documentation}}
 
+
[[Category:Templates]]</noinclude>
== 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>
 
'''headerfontcolor''' is the font color of the same part as headerbgcolor<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''' 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. '''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:
 
 
 
{{JobPageHeader
 
|headerbgcolor = darkblue
 
|headerfontcolor = white
 
|stafftype = COMMAND
 
|imagebgcolor = lightblue
 
|jobtitle = Captain
 
|access = All
 
|additional = N/A
 
|difficulty = Very hard
 
|superior = Space Law and Nanotrasen Officials
 
|rank = Captain ('''CPT''')
 
|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.
 
}}
 
 
 
Only in-action image defined:
 
 
 
{{JobPageHeader
 
|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
 
|rank = Captain ('''CPT''')
 
|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
 
|additional = N/A
 
|difficulty = Very hard
 
|superior = Space Law and Nanotrasen Officials
 
|rank = Captain ('''CPT''')
 
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
 
|guides = no separate guides
 
}}
 
 
 
Both images defined:
 
 
 
{{JobPageHeader
 
|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
 
|rank = Captain ('''CPT''')
 
|duties = Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
 
|guides = no separate guides
 
}}
 
 
 
[[Category:Templates]]
 
</noinclude>
 

Revision as of 19:46, 22 November 2020

UNDEFINED STAFF
Job Access: Not defined
Difficulty: Not defined
Supervisors: Not defined
Rank: Not defined
Duties: Not defined
Guides: This is the guide
Template documentation[view] [edit] [history] [purge]

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

headerbgcolor is the background color of the upper part which spans the entire width of the screen. This should be a dark color.
headerfontcolor is the font color of the same part as headerbgcolor
stafftype is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. 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.
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. 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 STAFF
Captain Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: Space Law and Nanotrasen Officials
Rank: Captain (CPT)
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.


Only in-action image defined:

COMMAND STAFF
Captain action.png
Captain
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: Space Law and Nanotrasen Officials
Rank: Captain (CPT)
Duties: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Guides: no separate guides


Only generic image defined:

COMMAND STAFF
Generic captain.png
Captain
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: Space Law and Nanotrasen Officials
Rank: Captain (CPT)
Duties: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Guides: no separate guides


Both images defined:

COMMAND STAFF
Generic captain.png Captain action.png
Captain
Access: All
Additional Access: N/A
Difficulty: Very hard
Supervisors: Space Law and Nanotrasen Officials
Rank: Captain (CPT)
Duties: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Guides: no separate guides