Template:Fruit/doc: Difference between revisions
More actions
Created page with "== Description == Template:Fruit is an infobox template that provides the most important information about a tree's fruit. This should be used at the very top of fruit articles. Let User talk:TormentInSquallLines know if you have any suggestions or issues. == Syntax == <code>{{t|Fruit|name|obtainment|slot|maxplace|cost|value|droprate|abilities}}</code> Fruit has x parameters, all named. * name is the name of the fruit. This should be what it is named in-game...." |
Update documentation and navigation from reviewed source audit |
||
| Line 4: | Line 4: | ||
Let [[User talk:TormentInSquallLines|TormentInSquallLines]] know if you have any suggestions or issues. | Let [[User talk:TormentInSquallLines|TormentInSquallLines]] know if you have any suggestions or issues. | ||
== Syntax == | == Syntax == | ||
<code>{{t|Fruit|name|obtainment|slot|maxplace| | <code>{{t|Fruit|name|obtainment|slot|maxplace|buycost|placecost|value|droprate|abilities|shake}}</code> | ||
Fruit | Fruit uses named parameters. The purchase cost and placement cost are separate fields. | ||
* name is the name of the fruit. This should be what it is named in-game. It defaults to the page name. | * name is the name of the fruit. This should be what it is named in-game. It defaults to the page name. | ||
* obtainment is how the fruit is obtained. If it is in the normal tycoon, this should be "Tycoon (floor x)", with x being the floor it's on. | * obtainment is how the fruit is obtained. If it is in the normal tycoon, this should be "Tycoon (floor x)", with x being the floor it's on. | ||
* slot is the type of placement slot it uses | * slot is the type of placement slot it uses | ||
* maxplace is the maximum amount of this tree that can be placed on the tycoon. The default is 1. | * maxplace is the maximum amount of this tree that can be placed on the tycoon. The default is 1. | ||
* | * buycost is the cost to obtain the plant, including its currency. | ||
* placecost is the money cost to place the plant. If this increases for successive plants, use a bullet list with exact values. | |||
* cost is a legacy generic Cost field. Existing uses should be migrated because some contain purchase costs and others placement costs. Avoid supplying cost alongside the new fields. | |||
* shake indicates whether the plant can be shaken by hand. The default is Yes. | |||
* value is the base value of the fruit, excluding any multipliers | * value is the base value of the fruit, excluding any multipliers | ||
* droprate is the range of time that it takes for the tree to drop fruit | * droprate is the range of time that it takes for the tree to drop fruit | ||
| Line 21: | Line 24: | ||
---- | ---- | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | |||
"name": { | |||
"label": "Fruit name", | |||
"description": "The name of the fruit in-game", | |||
"example": "Orange", | |||
"type": "line" | |||
}, | |||
"obtainment": { | |||
"label": "Obtainment method", | |||
"description": "The way in which the tree is obtained", | |||
"example": "Tycoon (floor 3)", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Tycoon (floor 1)", | |||
"Tycoon (floor 2)", | |||
"Tycoon (floor 3)", | |||
"Tycoon (floor 4)", | |||
"Tycoon (floor 5)", | |||
"Tycoon (floor 6)", | |||
"Shop" | |||
], | |||
"required": true | |||
}, | |||
"slot": { | |||
"label": "Slot type", | |||
"description": "The type of placement slots the tree can use", | |||
"example": "Big", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"Regular, large", | |||
"Large", | |||
"Regular, large (bonus)" | |||
], | |||
"required": true | |||
}, | |||
"maxplace": { | |||
"label": "Maximum placed", | |||
"description": "The maximum amount of this tree that can be placed on the tycoon", | |||
"example": "3", | |||
"type": "number", | |||
"default": "1", | |||
"required": true | |||
}, | |||
"cost": { | |||
"label": "Tree cost", | |||
"description": "The amount of money it takes to buy the tree. If the tree varies with slot number, write in bullet points the costs.", | |||
"type": "string", | |||
"required": false, | |||
"deprecated": true | |||
}, | |||
"value": { | |||
"label": "Base fruit value", | |||
"description": "The base value of the fruit without multipliers", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"droprate": { | |||
"label": "Drop rate", | |||
"description": "The range of time it takes for the tree to drop fruit", | |||
"example": "5-15 seconds", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"abilities": { | |||
"label": "Abilities", | |||
"description": "The passive abilities the tree has in-game", | |||
"example": "Enchanted: Higher chance to drop shiny fruit", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"buycost": { | |||
"label": "Purchase cost", | |||
"description": "Cost to obtain the plant; include its currency.", | |||
"type": "string" | |||
}, | |||
"placecost": { | |||
"label": "Placement cost", | |||
"description": "Money cost to place the plant.", | |||
"type": "string" | |||
}, | |||
"shake": { | |||
"label": "Shakeable by hand?", | |||
}</templatedata> | "description": "Whether the plant can be shaken manually.", | ||
"type": "line", | |||
"default": "Yes" | |||
} | |||
}, | |||
"description": "Infobox template for fruit pages", | |||
"paramOrder": [ | |||
"name", | |||
"obtainment", | |||
"slot", | |||
"maxplace", | |||
"buycost", | |||
"placecost", | |||
"cost", | |||
"value", | |||
"droprate", | |||
"abilities", | |||
"shake" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata> | |||
== Examples == | == Examples == | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 05:29, 19 October 2026
Description
Fruit is an infobox template that provides the most important information about a tree's fruit. This should be used at the very top of fruit articles.
Let TormentInSquallLines know if you have any suggestions or issues.
Syntax
{{Fruit|<name>|<obtainment>|<slot>|<maxplace>|<buycost>|<placecost>|<value>|<droprate>|<abilities>|<shake>}}
Fruit uses named parameters. The purchase cost and placement cost are separate fields.
- name is the name of the fruit. This should be what it is named in-game. It defaults to the page name.
- obtainment is how the fruit is obtained. If it is in the normal tycoon, this should be "Tycoon (floor x)", with x being the floor it's on.
- slot is the type of placement slot it uses
- maxplace is the maximum amount of this tree that can be placed on the tycoon. The default is 1.
- buycost is the cost to obtain the plant, including its currency.
- placecost is the money cost to place the plant. If this increases for successive plants, use a bullet list with exact values.
- cost is a legacy generic Cost field. Existing uses should be migrated because some contain purchase costs and others placement costs. Avoid supplying cost alongside the new fields.
- shake indicates whether the plant can be shaken by hand. The default is Yes.
- value is the base value of the fruit, excluding any multipliers
- droprate is the range of time that it takes for the tree to drop fruit
- abilities are any passive abilities the tree has in-game
In addition, this template will categorize any pages in the namespace using this template under the Fruits category.
TemplateData
The TemplateData for fruits
Infobox template for fruit pages
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Fruit name | name | The name of the fruit in-game
| Line | optional |
| Obtainment method | obtainment | The way in which the tree is obtained
| String | required |
| Slot type | slot | The type of placement slots the tree can use
| Line | required |
| Maximum placed | maxplace | The maximum amount of this tree that can be placed on the tycoon
| Number | required |
| Purchase cost | buycost | Cost to obtain the plant; include its currency. | String | optional |
| Placement cost | placecost | Money cost to place the plant. | String | optional |
| Tree cost | cost | The amount of money it takes to buy the tree. If the tree varies with slot number, write in bullet points the costs. | String | deprecated |
| Base fruit value | value | The base value of the fruit without multipliers | Line | required |
| Drop rate | droprate | The range of time it takes for the tree to drop fruit
| Line | suggested |
| Abilities | abilities | The passive abilities the tree has in-game
| String | suggested |
| Shakeable by hand? | shake | Whether the plant can be shaken manually.
| Line | optional |