Template:Agriculture infobox

From Sun Haven Wiki
Jump to navigation Jump to search

This template adds rows to the table "Agriculture", which is declared by the template Agriculture infobox/Cargo declare. View table.

float Template documentation[View] [Edit] [History] - [Sandbox] [Refresh]

This template displays an information box, for all crops and trees.

The cargo declare statement can be found here:Template:Agriculture infobox/Cargo declare

Syntax

{{agriculture infobox
<!-- These items are only needed if override from default is appropriate. -->
|name        = Item name (default is PAGENAME)
|image       = Image name.png (default is PAGENAME.png)
|description = Description (default uses the description template and PAGENAME)

<!-- Common Information -->
|sell        = Sell price of that item (numberic).
|seedSell    = Amount the seed item of that crop sells for. (numeric) Only applicable for crops.
|selltype    = Currency this item is sold in.
|stack       = Maximum numer of that items can be placed in a single stack (numeric).
|rarity      = Rarity (numeric).
|hearts      = Base gift level (numeric).

<!-- Item Classification -->
|itemType    = Crop or Tree

|region      = Region of this item. (Sun Haven / Withergate / Nel'Vari)
|season      = Which season(s) this item is available (spring, summer, fall, winter, any)
|produces    = What that item produces. (Plain text ONLY! Put ";" between multiple items)
|exp         = How much exp this gives the player (numeric).

|seed        = Seed the crop comes from. (DO NOT USE A LINK. Plain text ONLY!)
|growth      = How many days it takes to grow.
|regrowthRate= How many days to regrow after harvest.
|cropYield   = How many average crops on harvest.
|maxHarvest  = See calculations below.
}}

Max Harvest Calculations:
This is for calculating crop profits. This only applies to crops that are reharvestable within the season(s).

  • If the crop does not regrow, this number will be 1.
  • If the crop regrows for one season follow this math: [(28 - (Days to Grow + 1) ) / regrowth rate] + 1 (Rounded Down)
    • (Step 1) ADD: Days to Grow + 1
    • (Step 2) SUBTRACT: 28 - Total Above
    • (Step 3) DIVIDE: Total Above / regrowth rate
    • (Step 4) ADD: +1 to the total above
    • (Step 5) ROUND THIS NUMBER DOWN
  • If the crop regrows for two seasons follow this math: [(56 - (Days to Grow + 1) ) / regrowth rate] +1 (Rounded Down)
    • Same steps as above, but its 56 rather than 28, in step 2.

Examples

Crops / Seeds

{{Agriculture infobox
|sell        = 55
|seedSell    = 40
|selltype    = Coins
|stack       = 100
|rarity      = 0
|hearts      = 1
<!-- Item Classification -->
|itemType    = Crop
|subtype     =
|category    =
<!-- Item Data-->
|region      = Sun Haven
|seed        = Wheat Seeds
|season      = Any 
|exp         = 7
|growth      = 4
|regrowthRate= 
|cropYield   = 1
|maxHarvest  =   }}

Trees

{{agriculture infobox
|image       = Peach tree stages 5.png
|description =  
|sell        = 
|seedSell    = 50
|selltype    = Coins
|stack       = 300
|rarity      = 4
|hearts      = 1
<!-- Item Classification -->
|itemType    = Tree
|subtype     = 
|category    =
<!-- Item Data-->
|region      = Sun Haven
|season      = Any
|seed        = Peach Tree Seeds
|produces    = Peach; Golden Peach }}
See the articles and the templates currently using this template.