User:Californ1a/T/Professions/doc: Difference between revisions

mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
|vertical = "yes" or "no" to swap whether the level is displayed below the icon or beside it; default "no" if not provided.
|vertical = "yes" or "no" to swap whether the level is displayed below the icon or beside it; default "no" if not provided.
|free = "yes" or "no" to display only free episodes; default "no" if not provided.
|free = "yes" or "no" to display only free episodes; default "no" if not provided.
|date = "now" or any custom date
|<profession> = <level>
|<profession> = <level>
|<profession> goal = <goal level>
}}
}}
</pre>
</pre>

Setting the date param to "now" will use the last edit date of the page the template is used on.


==Examples==
==Examples==
Line 129: Line 133:
|woodcutter = 10
|woodcutter = 10
|carpenter = 10
|carpenter = 10
}}

===Date===
<pre>{{User:Californ1a/T/Professions
|free = yes
|date = now
}}</pre>

Produces:
{{User:Californ1a/T/Professions
|free = yes
|date = now
}}

===Goals===
<pre>{{User:Californ1a/T/Professions
|free = yes
|date = 12 December 1920
|guard = 10
|guard goal = 20
|chef = 20
|fisher = 20
|forager = 10
|forager goal = 20
|alchemist = 10
}}</pre>

Produces:
{{User:Californ1a/T/Professions
|free = yes
|date = 12 December 1920
|guard = 10
|guard goal = 20
|chef = 20
|fisher = 20
|forager = 10
|forager goal = 20
|alchemist = 10
}}

====Goals vertical====
<pre>{{User:Californ1a/T/Professions
|vertical = yes
|date = now
|free = yes
|guard = 10
|guard goal = 20
|chef = 20
|fisher = 20
|forager = 10
|forager goal = 20
|alchemist = 10
}}</pre>

Produces:
{{User:Californ1a/T/Professions
|vertical = yes
|date = now
|free = yes
|guard = 10
|guard goal = 20
|chef = 20
|fisher = 20
|forager = 10
|forager goal = 20
|alchemist = 10
}}
}}


Line 150: Line 220:
"type": "boolean",
"type": "boolean",
"default": "no"
"default": "no"
},
"date": {
"label": "Date",
"description": "If provided, displays a last updated date underneath. Can be either 'now' to use last revision date of the page, or any custom date string",
"example": "now",
"type": "string"
},
},
"guard": {
"guard": {
"label": "Guard",
"label": "Guard",
"description": "Guard level",
"description": "Guard level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"guard goal": {
"chef": {
"label": "Chef",
"label": "Guard Goal",
"description": "Chef level",
"description": "Guard goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
},
"fisher": {
"chef": {
"label": "Fisher",
"label": "Chef",
"description": "Fisher level",
"description": "Chef level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"chef goal": {
"forager": {
"label": "Forager",
"label": "Chef Goal",
"description": "Forager level",
"description": "Chef goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
},
"alchemist": {
"fisher": {
"label": "Alchemist",
"label": "Fisher",
"description": "Alchemist level",
"description": "Fisher level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"fisher goal": {
"scout": {
"label": "Scout",
"label": "Fisher Goal",
"description": "Scout level",
"description": "Fisher goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
},
"gatherer": {
"forager": {
"label": "Gatherer",
"label": "Forager",
"description": "Gatherer level",
"description": "Forager level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"forager goal": {
"woodcutter": {
"label": "Woodcutter",
"label": "Forager Goal",
"description": "Woodcutter level",
"description": "Forager goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
},
"carpenter": {
"alchemist": {
"label": "Carpenter",
"label": "Alchemist",
"description": "Carpenter level",
"description": "Alchemist level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"alchemist goal": {
"minefighter": {
"label": "Minefighter",
"label": "Alchemist Goal",
"description": "Minefighter level",
"description": "Alchemist goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
},
"bonewright": {
"scout": {
"label": "Bonewright",
"label": "Scout",
"description": "Bonewright level",
"description": "Scout level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"scout goal": {
"miner": {
"label": "Miner",
"label": "Scout Goal",
"description": "Miner level",
"description": "Scout goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
},
"blacksmith": {
"gatherer": {
"label": "Blacksmith",
"label": "Gatherer",
"description": "Blacksmith level",
"description": "Gatherer level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"gatherer goal": {
"stonemason": {
"label": "Stonemason",
"label": "Gatherer Goal",
"description": "Stonemason level",
"description": "Gatherer goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
},
"watchperson": {
"woodcutter": {
"label": "Watchperson",
"label": "Woodcutter",
"description": "Watchperson level",
"description": "Woodcutter level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"woodcutter goal": {
"detective": {
"label": "Detective",
"label": "Woodcutter Goal",
"description": "Detective level",
"description": "Woodcutter goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
},
"carpenter": {
"leatherworker": {
"label": "Leatherworker",
"label": "Carpenter",
"description": "Leatherworker level",
"description": "Carpenter level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": "0"
},
},
"carpenter goal": {
"merchant": {
"label": "Merchant",
"label": "Carpenter Goal",
"description": "Merchant level",
"description": "Carpenter goal level",
"example": "10",
"example": "10",
"type": "number",
"type": "number",
"default": "0"
"default": ""
},
}
"minefighter": {
},
"label": "Minefighter",
"description": "Minefighter level",
"example": "10",
"type": "number",
"default": "0"
},
"minefighter goal": {
"label": "Minefighter Goal",
"description": "Minefighter goal level",
"example": "10",
"type": "number",
"default": ""
},
"bonewright": {
"label": "Bonewright",
"description": "Bonewright level",
"example": "10",
"type": "number",
"default": "0"
},
"bonewright goal": {
"label": "Bonewright Goal",
"description": "Bonewright goal level",
"example": "10",
"type": "number",
"default": ""
},
"miner": {
"label": "Miner",
"description": "Miner level",
"example": "10",
"type": "number",
"default": "0"
},
"miner goal": {
"label": "Miner Goal",
"description": "Miner goal level",
"example": "10",
"type": "number",
"default": ""
},
"blacksmith": {
"label": "Blacksmith",
"description": "Blacksmith level",
"example": "10",
"type": "number",
"default": "0"
},
"blacksmith goal": {
"label": "Blacksmith Goal",
"description": "Blacksmith goal level",
"example": "10",
"type": "number",
"default": ""
},
"stonemason": {
"label": "Stonemason",
"description": "Stonemason level",
"example": "10",
"type": "number",
"default": "0"
},
"stonemason goal": {
"label": "Stonemason Goal",
"description": "Stonemason goal level",
"example": "10",
"type": "number",
"default": ""
},
"watchperson": {
"label": "Watchperson",
"description": "Watchperson level",
"example": "10",
"type": "number",
"default": "0",
"aliases": [
"watchman",
"watchwoman"
]
},
"watchperson goal": {
"label": "Watchperson Goal",
"description": "Watchperson goal level",
"example": "10",
"type": "number",
"default": "",
"aliases": [
"watchman goal",
"watchwoman goal"
]
},
"detective": {
"label": "Detective",
"description": "Detective level",
"example": "10",
"type": "number",
"default": "0"
},
"detective goal": {
"label": "Detective Goal",
"description": "Detective goal level",
"example": "10",
"type": "number",
"default": ""
},
"leatherworker": {
"label": "Leatherworker",
"description": "Leatherworker level",
"example": "10",
"type": "number",
"default": "0"
},
"leatherworker goal": {
"label": "Leatherworker Goal",
"description": "Leatherworker goal level",
"example": "10",
"type": "number",
"default": ""
},
"merchant": {
"label": "Merchant",
"description": "Merchant level",
"example": "10",
"type": "number",
"default": "0"
},
"merchant goal": {
"label": "Merchant Goal",
"description": "Merchant goal level",
"example": "10",
"type": "number",
"default": ""
}
},
"description": "The Professions template is used to display a player's profession levels.",
"description": "The Professions template is used to display a player's profession levels.",
"format": "block"
"format": "block"

Latest revision as of 15:23, 25 November 2024

This is a documentation subpage for User:Californ1a/T/Professions.
It contains usage information, categories, and other content that is not part of the original template page.

The Professions template can be used to show a player's levels in each profession.

{{User:Californ1a/T/Professions
|vertical = "yes" or "no" to swap whether the level is displayed below the icon or beside it; default "no" if not provided.
|free = "yes" or "no" to display only free episodes; default "no" if not provided.
|date = "now" or any custom date
|<profession> = <level>
|<profession> goal = <goal level>
}}

Setting the date param to "now" will use the last edit date of the page the template is used on.

Examples

Vertical

{{User:Californ1a/T/Professions
|vertical = yes
|guard = 10
|chef = 10
|fisher = 10
|forager = 10
|alchemist = 10
|scout = 10
|gatherer = 10
|woodcutter = 10
|carpenter = 10
|minefighter = 10
|bonewright = 10
|miner = 10
|blacksmith = 10
|stonemason = 10
|watchperson = 10
|detective = 10
|leatherworker = 10
|merchant = 10
}}

Produces:

Professions (180)
Hopeport (50)
10 10 10 10 10
Hopeforest (40)
10 10 10 10
Mine of Mantuban (50)
10 10 10 10 10
Crenopolis (40)
10 10 10 10
Last Updated:
{{{date}}}

Horizontal

{{User:Californ1a/T/Professions
|vertical = no
|guard = 10
|chef = 10
|fisher = 10
|forager = 10
|alchemist = 10
|scout = 10
|gatherer = 10
|woodcutter = 10
|carpenter = 10
|minefighter = 10
|bonewright = 10
|miner = 10
|blacksmith = 10
|stonemason = 10
|watchperson = 10
|detective = 10
|leatherworker = 10
|merchant = 10
}}

Produces:

Professions (180)
Hopeport (50)
10 10 10 10 10
Hopeforest (40)
10 10 10 10
Mine of Mantuban (50)
10 10 10 10 10
Crenopolis (40)
10 10 10 10
Last Updated:
{{{date}}}

Free

{{User:Californ1a/T/Professions
|free = yes
|guard = 10
|chef = 10
|fisher = 10
|forager = 10
|alchemist = 10
|scout = 10
|gatherer = 10
|woodcutter = 10
|carpenter = 10
}}

Produces:

Professions (90)
Hopeport (50)
10 10 10 10 10
Hopeforest (40)
10 10 10 10
Last Updated:
{{{date}}}

Date

{{User:Californ1a/T/Professions
|free = yes
|date = now
}}

Produces:

Professions (0)
Hopeport (0)
0 0 0 0 0
Hopeforest (0)
0 0 0 0
Last Updated:
25 November 2024

Goals

{{User:Californ1a/T/Professions
|free = yes
|date = 12 December 1920
|guard = 10
|guard goal = 20
|chef = 20
|fisher = 20
|forager = 10
|forager goal = 20
|alchemist = 10
}}

Produces:

Professions (70)
Hopeport (70)
10/20 20 20 10/20 10
Hopeforest (0)
0 0 0 0
Last Updated:
12 December 1920

Goals vertical

{{User:Californ1a/T/Professions
|vertical = yes
|date = now
|free = yes
|guard = 10
|guard goal = 20
|chef = 20
|fisher = 20
|forager = 10
|forager goal = 20
|alchemist = 10
}}

Produces:

Professions (70)
Hopeport (70)
10/20 20 20 10/20 10
Hopeforest (0)
0 0 0 0
Last Updated:
25 November 2024

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

The Professions template is used to display a player's profession levels.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Verticalvertical

Whether to have the profession level below the icon or beside it

Default
no
Example
yes
Booleanoptional
Freefree

Whether to display only the free episodes

Default
no
Example
yes
Booleanoptional
Datedate

If provided, displays a last updated date underneath. Can be either 'now' to use last revision date of the page, or any custom date string

Example
now
Stringoptional
Guardguard

Guard level

Default
0
Example
10
Numberoptional
Guard Goalguard goal

Guard goal level

Default
Example
10
Numberoptional
Chefchef

Chef level

Default
0
Example
10
Numberoptional
Chef Goalchef goal

Chef goal level

Default
Example
10
Numberoptional
Fisherfisher

Fisher level

Default
0
Example
10
Numberoptional
Fisher Goalfisher goal

Fisher goal level

Default
Example
10
Numberoptional
Foragerforager

Forager level

Default
0
Example
10
Numberoptional
Forager Goalforager goal

Forager goal level

Default
Example
10
Numberoptional
Alchemistalchemist

Alchemist level

Default
0
Example
10
Numberoptional
Alchemist Goalalchemist goal

Alchemist goal level

Default
Example
10
Numberoptional
Scoutscout

Scout level

Default
0
Example
10
Numberoptional
Scout Goalscout goal

Scout goal level

Default
Example
10
Numberoptional
Gatherergatherer

Gatherer level

Default
0
Example
10
Numberoptional
Gatherer Goalgatherer goal

Gatherer goal level

Default
Example
10
Numberoptional
Woodcutterwoodcutter

Woodcutter level

Default
0
Example
10
Numberoptional
Woodcutter Goalwoodcutter goal

Woodcutter goal level

Default
Example
10
Numberoptional
Carpentercarpenter

Carpenter level

Default
0
Example
10
Numberoptional
Carpenter Goalcarpenter goal

Carpenter goal level

Default
Example
10
Numberoptional
Minefighterminefighter

Minefighter level

Default
0
Example
10
Numberoptional
Minefighter Goalminefighter goal

Minefighter goal level

Default
Example
10
Numberoptional
Bonewrightbonewright

Bonewright level

Default
0
Example
10
Numberoptional
Bonewright Goalbonewright goal

Bonewright goal level

Default
Example
10
Numberoptional
Minerminer

Miner level

Default
0
Example
10
Numberoptional
Miner Goalminer goal

Miner goal level

Default
Example
10
Numberoptional
Blacksmithblacksmith

Blacksmith level

Default
0
Example
10
Numberoptional
Blacksmith Goalblacksmith goal

Blacksmith goal level

Default
Example
10
Numberoptional
Stonemasonstonemason

Stonemason level

Default
0
Example
10
Numberoptional
Stonemason Goalstonemason goal

Stonemason goal level

Default
Example
10
Numberoptional
Watchpersonwatchperson watchman watchwoman

Watchperson level

Default
0
Example
10
Numberoptional
Watchperson Goalwatchperson goal watchman goal watchwoman goal

Watchperson goal level

Default
Example
10
Numberoptional
Detectivedetective

Detective level

Default
0
Example
10
Numberoptional
Detective Goaldetective goal

Detective goal level

Default
Example
10
Numberoptional
Leatherworkerleatherworker

Leatherworker level

Default
0
Example
10
Numberoptional
Leatherworker Goalleatherworker goal

Leatherworker goal level

Default
Example
10
Numberoptional
Merchantmerchant

Merchant level

Default
0
Example
10
Numberoptional
Merchant Goalmerchant goal

Merchant goal level

Default
Example
10
Numberoptional