Jump to content

Template:Jobs/doc

From SPS Wiki

Description

[edit source]

This template creates the icon and link for a 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

[edit source]

This template has 2 unnamed parameters:

  1. (mandatory) Name of the job. If set to Unknown no link is set.
  2. (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

[edit source]
{{Jobs
 | 1             = job name (i.e. image name)
 | 2             = image size
 | level         = 
 | title         = 
 | bb            = flag if the job is from Blush Blush
}}

Sample output

[edit source]

Burger Burger Flipper (Lvl 1 - Burger)

{{Jobs|Burger|level=1}}

Love Work at Love

{{Jobs|Love|level=0}}

A Job in Isengard Uruk'hai (Lvl 9 - A Job in Isengard)

{{Jobs|A Job in Isengard|level=9|title=Uruk'hai}}

Errors

[edit source]
  • 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:
  1. A typo in the template parameters
  2. Incorrect "bb" parameter (trying to show a BB job and no parameter, or other way round)
  3. The data is not present in the data modules

Template that creates an inline string with Job Icon and job title.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Job Name1

The name of the Job.

Example
Burger
Stringrequired
Icon Size2

The pixel size of the job icon

Default
20
Example
25
Stringoptional
Job Levellevel

The level of the job.

Example
5
Stringrequired
Job Level Titletitle

The title of the job at that level.

Example
Flipper
Stringoptional
Blush Blush Job Flagbb

Indicator if the job is from Blush Blush

Default
no
Example
yes, y
Stringoptional