Difference between revisions of "Template:Infobox jobs"

From NSV13
Jump to navigationJump to search
m
m
 
Line 22: Line 22:
 
|data8 = {{{guides|This is the guide}}}
 
|data8 = {{{guides|This is the guide}}}
 
}}
 
}}
<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here --></noinclude>
+
<noinclude>{{documentation|content=
 +
<templatedata>
 +
{
 +
"params": {
 +
"headerbgcolor": {
 +
"label": "Header Color",
 +
"description": "Text header color, Takes css-valid color constants",
 +
"example": "grey, #ff00ff, #abc",
 +
"type": "string",
 +
"default": "#bbbbbb",
 +
"autovalue": "#bbbbbb",
 +
"required": true
 +
},
 +
"headerfontcolor": {
 +
"label": "Header Font Color",
 +
"autovalue": "",
 +
"description": "Header text color, Takes css-valid color constants",
 +
"example": "grey, #ff00ff, #abc",
 +
"type": "string",
 +
"default": "#000000"
 +
},
 +
"bgcolor": {
 +
"label": "Background Color",
 +
"description": "Background of the majority of the template, Takes css-valid color constants",
 +
"example": "grey, #ff00ff, #abc",
 +
"default": "#dddddd",
 +
"autovalue": "",
 +
"suggested": true
 +
},
 +
"name": {
 +
"label": "Name",
 +
"description": "Header Content",
 +
"type": "string",
 +
"default": "{{PAGENAME}}",
 +
"deprecated": "Automatically populated."
 +
},
 +
"image": {
 +
"label": "Image",
 +
"description": "Job image",
 +
"example": "Assistant.png",
 +
"type": "wiki-file-name",
 +
"suggested": true
 +
},
 +
"caption": {
 +
"label": "Image Caption"
 +
},
 +
"access": {
 +
"label": "Default Access",
 +
"description": "Access given under all circumstances.",
 +
"example": "[[Maintenance]], [[Bar]]",
 +
"type": "string",
 +
"default": "N/A"
 +
},
 +
"access2": {
 +
"label": "Additional Access",
 +
"description": "Access given under Skeleton Crew. Should not include regular access.",
 +
"example": "[[Kitchen]]",
 +
"type": "string",
 +
"default": "N/A"
 +
},
 +
"difficulty": {
 +
"label": "Difficulty",
 +
"description": "Job Difficulty",
 +
"example": "Low, Medium, High, Something funny if not really applicable.",
 +
"type": "string",
 +
"default": "N/A"
 +
},
 +
"supervisors": {
 +
"label": "Supervisors",
 +
"description": "Who does this job report to?",
 +
"example": "Centcom, Department Head of Staff",
 +
"type": "string",
 +
"default": "N/A",
 +
"autovalue": "",
 +
"suggested": true
 +
},
 +
"rank": {
 +
"label": "Rank",
 +
"description": "NSV13 Rank",
 +
"example": "Lance Corporal (<b>LCPL</b>)",
 +
"type": "string",
 +
"default": "Missing (???)",
 +
"autovalue": "Missing (<b>???</b>)",
 +
"suggested": true
 +
},
 +
"duties": {
 +
"label": "Duties",
 +
"description": "Job Responsibilities",
 +
"default": "N/A",
 +
"autovalue": "",
 +
"suggested": true
 +
},
 +
"guides": {
 +
"label": "Guides",
 +
"description": "Links to various guides.",
 +
"type": "string",
 +
"default": "This is the guide",
 +
"suggested": true
 +
}
 +
},
 +
"description": "New layout for job page headers.",
 +
"format": "block"
 +
}
 +
</templatedata>}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here --></noinclude>

Latest revision as of 19:35, 13 December 2020

Page Title
Generic assistant2.png
Debugging is fun!
Information
AccessN/A
Additional AccessN/A
DifficultyN/A
SupervisorsN/A
RankMissing (???)
DutiesN/A
GuidesThis is the guide
Template documentation

New layout for job page headers.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Header Colorheaderbgcolor

Text header color, Takes css-valid color constants

Default
#bbbbbb
Example
grey, #ff00ff, #abc
Auto value
#bbbbbb
Stringrequired
Header Font Colorheaderfontcolor

Header text color, Takes css-valid color constants

Default
#000000
Example
grey, #ff00ff, #abc
Auto value
Stringoptional
Background Colorbgcolor

Background of the majority of the template, Takes css-valid color constants

Default
#dddddd
Example
grey, #ff00ff, #abc
Auto value
Unknownsuggested
Namename

Header Content

Default
{{PAGENAME}}
Stringdeprecated
Imageimage

Job image

Example
Assistant.png
Filesuggested
Image Captioncaption

no description

Unknownoptional
Default Accessaccess

Access given under all circumstances.

Default
N/A
Example
[[Maintenance]], [[Bar]]
Stringoptional
Additional Accessaccess2

Access given under Skeleton Crew. Should not include regular access.

Default
N/A
Example
[[Kitchen]]
Stringoptional
Difficultydifficulty

Job Difficulty

Default
N/A
Example
Low, Medium, High, Something funny if not really applicable.
Stringoptional
Supervisorssupervisors

Who does this job report to?

Default
N/A
Example
Centcom, Department Head of Staff
Auto value
Stringsuggested
Rankrank

NSV13 Rank

Default
Missing (???)
Example
Lance Corporal (<b>LCPL</b>)
Auto value
Missing (<b>???</b>)
Stringsuggested
Dutiesduties

Job Responsibilities

Default
N/A
Auto value
Unknownsuggested
Guidesguides

Links to various guides.

Default
This is the guide
Stringsuggested