Template:Fruit: Difference between revisions
More actions
shake param |
m 1 revision imported: fixes and stuff |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<infobox> | <templatestyles src="Infobox/styles.css" /> | ||
<title source="name"> | <infobox theme="fjtr-fruit"> | ||
<title source="name"><default>{{PAGENAME}}</default></title> | |||
<image source="image" /> | |||
<image source="image"/> | <data source="obtainment"><label>Obtainment</label></data> | ||
<data source="obtainment"> | <data source="slot"><label>Slot placement</label></data> | ||
<data source="maxplace"><label>Maximum placed</label><default>1</default></data> | |||
<data source="cost"><label>Cost</label></data> | |||
<data source="slot"> | <data source="buycost"><label>Purchase cost</label></data> | ||
<data source="placecost"><label>Placement cost</label></data> | |||
<data source="value"><label>Worth</label></data> | |||
<data source="maxplace"> | <data source="droprate"><label>Drop rate</label></data> | ||
<data source="abilities"><label>Abilities</label></data> | |||
<data source="shake"><label>Shakeable?</label><default>Yes</default></data> | |||
</data> | |||
<data source=" | |||
</data> | |||
<data source="value"> | |||
<data source="droprate"> | |||
<data source="abilities"> | |||
<data source="shake"> | |||
</infobox><includeonly> | </infobox><includeonly> | ||
{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Fruits]]|}}</includeonly><noinclude> | {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Fruits]]|}}</includeonly><noinclude> | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | |||
Latest revision as of 10:47, 13 November 2026
| Template documentation follows |
|---|
| Note: the template above may sometimes be partially or fully invisible. |
| Visit Template:Fruit/doc to edit this documentation. (How does this work?) |
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 |