Difference between revisions of "Template:Sandbox"

From NSV13
Jump to navigationJump to search
m (Replaced content with "A sandbox template. Do not actually include this on any pages. Do use this to test whatever template stuff you need to test.")
Tag: Replaced
m
Line 1: Line 1:
 
A sandbox template. Do not actually include this on any pages. Do use this to test whatever template stuff you need to test.
 
A sandbox template. Do not actually include this on any pages. Do use this to test whatever template stuff you need to test.
 +
 +
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: .35em 0 1em 0; border: .2em solid #{{{colour|444444}}}; background: #{{{colour|444444}}};">
 +
<div style="background: #{{{colour|444444}}}; color: {{{hcolour}}}; padding: .4em .8em .5em;"><div style="display: flex;">
 +
{|
 +
|-
 +
|[[Main Page|<span style="border-radius: 0 0 .2em .2em; background: #131414; padding: .77em .4em .3em .4em; font-size: 150%; color: #FFF;">{{#fas:home}}</span>]]
 +
|[[Rules|<span style="border-radius: 0 0 .2em .2em; background: #131414; padding: .77em .425em .3em .425em; font-size: 150%; color: #FFF;">{{#fas:gavel}}</span>]]
 +
|[[Jobs|<span style="border-radius: 0 0 .2em .2em; background: #131414; padding: .77em .38em .3em .38em; font-size: 150%; color: #FFF;">{{#fas:address-card}}</span>]]
 +
|[[Guides|<span style="border-radius: 0 0 .2em .2em; background: #131414; padding: .77em .4em .3em .4em; font-size: 150%; color: #FFF;">{{#fas:info-circle}}</span>]]
 +
|[[Objects|<span style="border-radius: 0 0 .2em .2em; background: #131414; padding: .77em .4em .3em .4em; .38em; font-size: 150%; color: #FFF;">{{#fas:wrench}}</span>]]
 +
|-
 +
|}
 +
{| style="margin-left: auto; margin-right: auto;"
 +
|-
 +
!style="font-size:110%;"|{{{stafftype}}}
 +
|}
 +
</div>
 +
</div>
 +
<div style="display: flex">
 +
{|
 +
!style="width:15%;  |
 +
!style="width:250em;|
 +
|-
 +
|<div style="border: .15em solid #{{{colour|444444}}}; border-radius: .5em; background: #FFF;">|<div style="padding: 1.4em 0 1.4em 0; background: #{{{ebcolour|#444444}}}1e; margin:.25em; border-radius: .5em;">
 +
<center>[[File:{{{img}}}|64px]]<br>'''{{{jobtitle|Job}}}'''</center></div></div>
 +
|<div style="border: .2em solid #{{{colour|444444}}}; border-radius: .5em; background: #FFF;">|<div style="padding: .3em; background: #{{{ebcolour|#444444}}}1e; margin:.25em; border-radius: .5em; line-height:1.2em;">
 +
'''Superiors:''' {{{superior|Not defined}}}
 +
<br>'''Difficulty:''' {{{difficulty|Not defined}}}
 +
<br>'''Guides:''' {{{guides|Not defined}}}
 +
<br>'''Access:''' {{{access|Not defined}}}
 +
<br>'''Duties:''' {{{duties|Not defined}}}
 +
<br>'''Minimum requirements:''' {{{requirements|Not defined}}}
 +
</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.<br>
 +
'''bcolour''' is the color for the job title box.<br>
 +
'''bhcolour''' is the text color for the job title.<br>
 +
'''ebcolour''' is the background color for the section that holds the guides and other info.<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>
 +
'''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.
 +
 +
== 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 = 265473
 +
|hcolour = #FFB300
 +
|bcolour = 265473
 +
|bhcolour = #FFB300
 +
|ebcolour = 265473
 +
|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:Templates]][[Category:Misc Styling Templates]]
 +
</noinclude>

Revision as of 04:20, 28 December 2022

A sandbox template. Do not actually include this on any pages. Do use this to test whatever template stuff you need to test.

[[File:{{{img}}}|64px]]
Job

Superiors: Not defined
Difficulty: Not defined
Guides: Not defined
Access: Not defined
Duties: Not defined
Minimum requirements: 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.
bcolour is the color for the job title box.
bhcolour is the text color for the job title.
ebcolour is the background color for the section that holds the guides and other info.
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.

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 STAFF
Generic captain.png
Captain
Access: All
Difficulty: Very hard
Supervisors: Space Law and Nanotrasen Officials
Rank: Not defined
Duties: Command the ship, protect the nuke disk, stop revolutions, get killed for all mentioned before.
Guides: no separate guides