Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Announcements
Random page
Help about MediaWiki
SPS Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Jobs/doc
Template
Discussion
Canadian English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Special pages
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Description == {{Lua|Module:Jobs|Module:Jobs/Data Crush Crush|Module:Jobs/Data Blush Blush}} This template creates the icon and link for a [[:Category:Jobs|job]]. If job level is set to 0, outputs "Work at [Job]". New job data can be added in the data modules. '''NB''': As Crush Crush has two variations of the job ''Farmer'', the [[High Fantasy Event]] version should be referred to with the name ''Farmer (High Fantasy)''. == List of Parameters == This template has 2 unnamed parameters: #'''(mandatory)''' Name of the job. If set to Unknown no link is set. #'''(optional)''' Height of the icon. Defaults to 20. There is 1 mandatory named parameter: *'''level''': Level of the job. Part of the text. There are also 2 optional named parameters: *'''title''': Displays the inputted title instead of the default output. *'''bb''': Indicates if the job is in Blush Blush. == Syntax == <pre> {{Jobs | 1 = job name (i.e. image name) | 2 = image size | level = | title = | bb = flag if the job is from Blush Blush }} </pre> == Sample output == {{Jobs|Burger|level=1}} <pre> {{Jobs|Burger|level=1}} </pre> ---- {{Jobs|Love|level=0}} <pre> {{Jobs|Love|level=0}} </pre> ---- {{Jobs|A Job in Isengard|level=9|title=Uruk'hai}} <pre> {{Jobs|A Job in Isengard|level=9|title=Uruk'hai}} </pre> == Errors == * '''Incorrect Job name''': This error indicates that the template could not find data for job matching the name given. This likely indicates one of three issues: # A typo in the template parameters # Incorrect "bb" parameter (trying to show a BB job and no parameter, or other way round) # The data is not present in the data modules ---- <templatedata> { "format": "inline", "params": { "1": { "required": true, "description": "The name of the Job.", "example": "Burger", "type": "string", "label": "Job Name" }, "2": { "suggested": false, "description": "The pixel size of the job icon", "example": "25", "type": "string", "label": "Icon Size", "default": "20" }, "level": { "required": true, "description": "The level of the job.", "example": "5", "type": "string", "label": "Job Level" }, "title": { "suggested": false, "description": "The title of the job at that level.", "example": "Flipper", "type": "string", "label": "Job Level Title" }, "bb": { "suggested": false, "description": "Indicator if the job is from Blush Blush", "example": "yes, y", "type": "string", "label": "Blush Blush Job Flag", "default": "no" } }, "paramOrder": [ "1", "2", "level", "title", "bb" ], "format": "{{_\n|_________________ = _\n}}\n", "description": "Template that creates an inline string with Job Icon and job title." } </templatedata> <includeonly>[[Category:Display Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
Summary:
Please note that all contributions to SPS Wiki are considered to be released under the CC-BY-SA license. If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, copied it from a public domain or similar free resource, are quoting material from elsewhere within a sufficiently limited scope to qualify as fair use, or are using material from SPS' games within the scope of our content policy.
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:Jobs
(
edit
)
Template:Lua
(
edit
)
Module:Arguments
(
edit
)
Module:Jobs
(
edit
)
Module:Jobs/Data Blush Blush
(
edit
)
Module:Jobs/Data Crush Crush
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Jobs/doc
Add topic