Template:Infobox crop: Difference between revisions
From Everafter Falls Wiki
mNo edit summary |
mNo edit summary |
||
| Line 23: | Line 23: | ||
|Mat5=0 | |Mat5=0 | ||
|Amt5=0 | |Amt5=0 | ||
|Season={{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#arrayprint:season|& | |Season={{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#arrayprint:season| · }} | ||
|GrowthTime={{{growth|0}}} | |GrowthTime={{{growth|0}}} | ||
|RegrowthTime={{{regrowth|0}}} | |RegrowthTime={{{regrowth|0}}} | ||
| Line 58: | Line 58: | ||
<data source="store"><label>Store</label><format>[[{{{store|}}}]]</format></data> | <data source="store"><label>Store</label><format>[[{{{store|}}}]]</format></data> | ||
<data source="source"><label>Seeds from</label></data> | <data source="source"><label>Seeds from</label></data> | ||
<data><label>Season</label><default>{{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#arrayprint:season|& | <data><label>Season</label><default>{{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#arrayprint:season| · }}</default></data> | ||
<data source="growth"><label>Growth time</label><format>{{{growth}}} days {{#if:{{{regrowth|}}}|<br />Regrows in {{{regrowth|}}} days}}</format></data> | <data source="growth"><label>Growth time</label><format>{{{growth}}} days {{#if:{{{regrowth|}}}|<br />Regrows in {{{regrowth|}}} days}}</format></data> | ||
</group> | </group> | ||
Revision as of 23:52, 6 August 2024
This template adds rows to the table "Items", which is declared by the template Item declare. View table.
| Template documentation |
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Description
This template is used to create infoboxes on individual crop and flower pages and store data in Special:CargoTables/Items.
The template also assigns categories based on the type parameter.
Syntax
{{Infobox crop
|name =
|description =
|type =
|collection =
|growth =
|regrowth =
|harvest_amt =
|store =
|buy =
|sell =
|seed_rarity =
|summer =
|autumn =
|winter =
|spring =
}}
- collection should be one of these:
- Vegetable Crops · Berries · Crop Fruits · Flowers
- growth and regrowth should be number of days only
- harvest_amt is how many items are produced per harvest
- seed_rarity is the drop rarity value of seeds for chest and pigeon drops; omit if you don't know the number and place the stub template on the page so it gets filled in later
- sell should be number only, no icons or other symbols
- store is unformatted name of the store (e.g. Freya's)
- But please format the price in buy field how you would like it to be displayed in the infobox
- Season parameters can have any value. Simply omit the seasons that do not apply.