Шаблон:JobPageHeader: различия между версиями

Материал из SS220
Перейти к навигации Перейти к поиску
imported>Rootoo
мНет описания правки
imported>Rootoo
мНет описания правки
Строка 2: Строка 2:
|colspan=2 style="background-color:rgba({{{headerbgcolor|187, 187, 187}}}); text-align:center; color:{{{headerfontcolor|white}}}; border-radius: 10px 10px 0 0;" |'''{{{stafftype|UNDEFINED}}} STAFF'''
|colspan=2 style="background-color:rgba({{{headerbgcolor|187, 187, 187}}}); text-align:center; color:{{{headerfontcolor|white}}}; border-radius: 10px 10px 0 0;" |'''{{{stafftype|UNDEFINED}}} STAFF'''
|-
|-
|style="width:150px; text-align:center; background-color:rgba({{{headerbgcolor|187, 187, 187}}},0.1); border-radius: 0 0 0 10px;" |[[File:{{{img}}}|{{{jobtitle}}}]] <br> '''{{{jobtitle|Job}}}'''
|style="width:150px; text-align:center; background-color:rgba({{{headerbgcolor|187, 187, 187}}},0.25); border-radius: 0 0 0 10px;" |[[File:{{{img}}}|{{{jobtitle}}}]] <br> '''{{{jobtitle|Job}}}'''
|'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisor:''' {{{superior|Not defined}}}<br>'''Branches:''' {{{branches|Not defined}}}<br>'''Ranks:''' {{#if: {{{ecranks|}}} | '''<br> - EC:''' {{{ecranks|}}} | }} {{#if: {{{fleetranks|}}} | '''<br> - Fleet:''' {{{fleetranks|}}} | }} {{#if: {{{govranks|}}} | '''<br> - Government:''' {{{govranks|}}} | }} {{#if: {{{civranks|}}} | '''<br> - Civilian:''' {{{civranks|}}} | }} {{#if: {{{ecranks|}}}| | {{#if: {{{fleetranks|}}}| | {{#if: {{{govranks|}}}| | {{#if: {{{civranks|}}} | | N/A}} }} }} }} <br>{{#if: {{{alttitles|}}} | '''Alternate Titles:''' {{{alttitles|}}} <br> | }} '''Duties:''' {{{duties|Not defined}}}<br>'''Related Guides:''' {{{guides|Not defined}}}
|'''Difficulty:''' {{{difficulty|Not defined}}}<br>'''Supervisor:''' {{{superior|Not defined}}}<br>'''Branches:''' {{{branches|Not defined}}}<br>'''Ranks:''' {{#if: {{{ecranks|}}} | '''<br> - EC:''' {{{ecranks|}}} | }} {{#if: {{{fleetranks|}}} | '''<br> - Fleet:''' {{{fleetranks|}}} | }} {{#if: {{{govranks|}}} | '''<br> - Government:''' {{{govranks|}}} | }} {{#if: {{{civranks|}}} | '''<br> - Civilian:''' {{{civranks|}}} | }} {{#if: {{{ecranks|}}}| | {{#if: {{{fleetranks|}}}| | {{#if: {{{govranks|}}}| | {{#if: {{{civranks|}}} | | N/A}} }} }} }} <br>{{#if: {{{alttitles|}}} | '''Alternate Titles:''' {{{alttitles|}}} <br> | }} '''Duties:''' {{{duties|Not defined}}}<br>'''Related Guides:''' {{{guides|Not defined}}}
|}
|}
Строка 11: Строка 11:
== Meaning of parameters ==
== 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, ideally high-saturation color. The same color is used at 10% opacity for the image background.<br>
'''headerbgcolor''' is the background color of the upper part which spans the entire width of the screen. This should be a dark, ideally high-saturation color. The same color is used at 25% opacity for the image background.<br>
'''headerfontcolor''' is the font color of the same part as headerbgcolor<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>
'''stafftype''' is the word that is added before STAFF. So adding the word MAINTENANCE here yields MAINTENANCE STAFF. Intended to be in caps.<br>

Версия от 15:40, 2 мая 2023

UNDEFINED STAFF
[[File:{{{img}}}|{{{jobtitle}}}]]
Job
Difficulty: Not defined
Supervisor: Not defined
Branches: Not defined
Ranks: N/A
Duties: Not defined
Related 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.

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, ideally high-saturation color. The same color is used at 25% opacity for the image background.
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.
img is the in-action image file, without the "File:" or "Image:" prefix. (see examples below)
alttitles represent the alternate names that the job can use, if any.
branches represent the branches the position is eligible, usually Expeditionary Corps, Fleet, or Civilian.
ecranks, fleetranks, govranks, and civranks represent the ranks position can hold, by branch. Returns N/A if no ranks are entered.
jobtitle, difficulty, superior, duties, and guides 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:

ENGINEERING STAFF
[[File:{{{img}}}|Engineer]]
Engineer
Difficulty: Medium
Supervisor: The Chief Engineer
Branches: Expeditionary Corps, Sol Central Government Fleet, Civilian
Ranks:
- EC:
Explorer (E-3), Senior Explorer (E-5)
- Fleet:
Crewman Apprentice (E-2), Crewman (E-3), Petty Officer Third Class (E-4), Petty Officer Second Class (E-5)
- Civilian:
Contractor
Alternate Titles: Engine Technician, Damage Control Technician, Electrician, Atmospheric Technician
Duties: Maintain ship power. Patch hull breaches. Make sure that everyone has functioning lights and breathable atmosphere.
Related Guides: Guide to Atmospherics, Guide to Construction, Guide to Supermatter, Guide to Hacking, Guide to the R-UST, Guide to SMES Units, Guide to Computing, Guide to Telecommunications, Guide to Solars


Image defined:

ENGINEERING STAFF
Engineer
Engineer
Difficulty: Medium
Supervisor: The Chief Engineer
Branches: Expeditionary Corps, Sol Central Government Fleet, Civilian
Ranks:
- EC:
Explorer (E-3), Senior Explorer (E-5)
- Fleet:
Crewman (E-3), Petty Officer Third Class (E-4), Petty Officer Second Class (E-5)
- Civilian:
Contractor
Alternate Titles: Engine Technician, Damage Control Technician, Electrician, Atmospheric Technician
Duties: Maintain ship power. Patch hull breaches. Make sure that everyone has functioning lights and breathable atmosphere.
Related Guides: Guide to Atmospherics, Guide to Construction, Guide to Supermatter, Guide to Hacking, Guide to the R-UST, Guide to SMES Units, Guide to Computing, Guide to Telecommunications, Guide to Solars