Template:Jobs/doc
Description
[edit source]| This template uses Lua: |
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:
- (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
[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 Flipper (Lvl 1 - Burger)
{{Jobs|Burger|level=1}}
{{Jobs|Love|level=0}}
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:
- 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
Template that creates an inline string with Job Icon and job title.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Job Name | 1 | The name of the Job.
| String | required |
| Icon Size | 2 | The pixel size of the job icon
| String | optional |
| Job Level | level | The level of the job.
| String | required |
| Job Level Title | title | The title of the job at that level.
| String | optional |
| Blush Blush Job Flag | bb | Indicator if the job is from Blush Blush
| String | optional |