Jump to content
Toggle menu
  • 83 articles
  • 443 files
  • 32 users
  • 1K edits
Fruit Juice Tycoon: Refreshed
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Fruit/doc: Difference between revisions

Template page
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|cost|value|droprate|abilities}}</code>
<code>{{t|Fruit|name|obtainment|slot|maxplace|buycost|placecost|value|droprate|abilities|shake}}</code>


Fruit has x parameters, all named.
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.
* cost is how much the tree costs to plant. If the tree costs increasingly more money to plant, this should be a bullet list with exact values.
* 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": {
  "params": {
"name": {
    "name": {
"label": "Fruit name",
      "label": "Fruit name",
"description": "The name of the fruit in-game",
      "description": "The name of the fruit in-game",
"example": "Orange",
      "example": "Orange",
"type": "line"
      "type": "line"
},
    },
"obtainment": {
    "obtainment": {
"label": "Obtainment method",
      "label": "Obtainment method",
"description": "The way in which the tree is obtained",
      "description": "The way in which the tree is obtained",
"example": "Tycoon (floor 3)",
      "example": "Tycoon (floor 3)",
"type": "string",
      "type": "string",
"suggestedvalues": [
      "suggestedvalues": [
"Tycoon (floor 1)",
        "Tycoon (floor 1)",
"Tycoon (floor 2)",
        "Tycoon (floor 2)",
"Tycoon (floor 3)",
        "Tycoon (floor 3)",
"Tycoon (floor 4)",
        "Tycoon (floor 4)",
"Tycoon (floor 5)",
        "Tycoon (floor 5)",
"Tycoon (floor 6)",
        "Tycoon (floor 6)",
"Shop"
        "Shop"
],
      ],
"required": true
      "required": true
},
    },
"slot": {
    "slot": {
"label": "Slot type",
      "label": "Slot type",
"description": "The type of placement slots the tree can use",
      "description": "The type of placement slots the tree can use",
"example": "Big",
      "example": "Big",
"type": "line",
      "type": "line",
"suggestedvalues": [
      "suggestedvalues": [
"Regular, large",
        "Regular, large",
"Large",
        "Large",
"Regular, large (bonus)"
        "Regular, large (bonus)"
],
      ],
"required": true
      "required": true
},
    },
"maxplace": {
    "maxplace": {
"label": "Maximum placed",
      "label": "Maximum placed",
"description": "The maximum amount of this tree that can be placed on the tycoon",
      "description": "The maximum amount of this tree that can be placed on the tycoon",
"example": "3",
      "example": "3",
"type": "number",
      "type": "number",
"default": "1",
      "default": "1",
"required": true
      "required": true
},
    },
"cost": {
    "cost": {
"label": "Tree 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.",
      "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",
      "type": "string",
"required": true
      "required": false,
},
      "deprecated": true
"value": {
    },
"label": "Base fruit value",
    "value": {
"description": "The base value of the fruit without multipliers",
      "label": "Base fruit value",
"type": "line",
      "description": "The base value of the fruit without multipliers",
"required": true
      "type": "line",
},
      "required": true
"droprate": {
    },
"label": "Drop rate",
    "droprate": {
"description": "The range of time it takes for the tree to drop fruit",
      "label": "Drop rate",
"example": "5-15 seconds",
      "description": "The range of time it takes for the tree to drop fruit",
"type": "line",
      "example": "5-15 seconds",
"suggested": true
      "type": "line",
},
      "suggested": true
"abilities": {
    },
"label": "Abilities",
    "abilities": {
"description": "The passive abilities the tree has in-game",
      "label": "Abilities",
"example": "Enchanted: Higher chance to drop shiny fruit",
      "description": "The passive abilities the tree has in-game",
"type": "string",
      "example": "Enchanted: Higher chance to drop shiny fruit",
"suggested": true
      "type": "string",
}
      "suggested": true
},
    },
"description": "Infobox template for fruit pages",
    "buycost": {
"paramOrder": [
      "label": "Purchase cost",
"name",
      "description": "Cost to obtain the plant; include its currency.",
"obtainment",
      "type": "string"
"slot",
    },
"maxplace",
    "placecost": {
"cost",
      "label": "Placement cost",
"value",
      "description": "Money cost to place the plant.",
"droprate",
      "type": "string"
"abilities"
    },
],
    "shake": {
"format": "block"
      "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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Fruit namename

The name of the fruit in-game

Example
Orange
Lineoptional
Obtainment methodobtainment

The way in which the tree is obtained

Suggested values
Tycoon (floor 1) Tycoon (floor 2) Tycoon (floor 3) Tycoon (floor 4) Tycoon (floor 5) Tycoon (floor 6) Shop
Example
Tycoon (floor 3)
Stringrequired
Slot typeslot

The type of placement slots the tree can use

Suggested values
Regular, large Large Regular, large (bonus)
Example
Big
Linerequired
Maximum placedmaxplace

The maximum amount of this tree that can be placed on the tycoon

Default
1
Example
3
Numberrequired
Purchase costbuycost

Cost to obtain the plant; include its currency.

Stringoptional
Placement costplacecost

Money cost to place the plant.

Stringoptional
Tree costcost

The amount of money it takes to buy the tree. If the tree varies with slot number, write in bullet points the costs.

Stringdeprecated
Base fruit valuevalue

The base value of the fruit without multipliers

Linerequired
Drop ratedroprate

The range of time it takes for the tree to drop fruit

Example
5-15 seconds
Linesuggested
Abilitiesabilities

The passive abilities the tree has in-game

Example
Enchanted: Higher chance to drop shiny fruit
Stringsuggested
Shakeable by hand?shake

Whether the plant can be shaken manually.

Default
Yes
Lineoptional

Examples