Template:Infobox crop: Difference between revisions
From Everafter Falls Wiki
No edit summary |
mNo edit summary |
||
| (30 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
|Image={{{name|{{PAGENAME}}}}}.png | |Image={{{name|{{PAGENAME}}}}}.png | ||
|Description={{{description|}}} | |Description={{{description|}}} | ||
|Type=Crop | |Type={{{type|Crop}}} | ||
|Source=Farming | |Source=Farming | ||
|Collection={{{collection|}}} | |Collection={{{collection|}}} | ||
| Line 23: | Line 23: | ||
|Mat5=0 | |Mat5=0 | ||
|Amt5=0 | |Amt5=0 | ||
|Season={{{season|}}} | |Season={{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#ifeq:{{#arraysize:season}}|4|All|{{#arrayprint:season| · }}}} | ||
|GrowthTime={{{growth|0}}} | |GrowthTime={{{growth|0}}} | ||
|RegrowthTime={{{regrowth|0}}} | |RegrowthTime={{{regrowth|0}}} | ||
|BuyPrice={{{ | |AmtCrafted={{{harvest_amt|}}} | ||
|BuyPrice={{{seed_buy|0}}} | |||
|SellPrice={{{sell|}}} | |SellPrice={{{sell|}}} | ||
|SoldAt={{{store|}}} | |SoldAt={{{store|Not sold}}} | ||
}} }}<!-- | |Rarity={{{rarity|}}} | ||
|SpawnSummer={{{summer|0}}} | |||
|SpawnAutumn={{{autumn|0}}} | |||
|SpawnWinter={{{winter|0}}} | |||
|SpawnSpring={{{spring|0}}} | |||
}} | |||
{{#cargo_store: | |||
_table=Items | |||
|Name={{{seed_name|{{{name|{{PAGENAME}}}}} Seeds}}} | |||
|Image={{{seed_name|{{{name|{{PAGENAME}}}}} Seeds}}}.png | |||
|Description= | |||
|Type=Crop seed | |||
|Source= | |||
|Collection= | |||
|Machine=0 | |||
|Mat1=0 | |||
|Amt1=0 | |||
|Mat2=0 | |||
|Amt2=0 | |||
|Mat3=0 | |||
|Amt3=0 | |||
|Mat4=0 | |||
|Amt4=0 | |||
|Mat5=0 | |||
|Amt5=0 | |||
|Season={{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#ifeq:{{#arraysize:season}}|4|All|{{#arrayprint:season| · }}}} | |||
|GrowthTime={{{growth|0}}} | |||
|RegrowthTime={{{regrowth|0}}} | |||
|AmtCrafted={{{harvest_amt|}}} | |||
|BuyPrice={{{seed_buy|0}}} | |||
|SellPrice={{{seed_sell|}}} | |||
|SoldAt={{{store|Not sold}}} | |||
|Rarity={{{seed_rarity|}}} | |||
|SpawnSummer={{{summer|0}}} | |||
|SpawnAutumn={{{autumn|0}}} | |||
|SpawnWinter={{{winter|0}}} | |||
|SpawnSpring={{{spring|0}}} | |||
|Misc={{{name|{{PAGENAME}}}}} | |||
}} | |||
}}<!-- | |||
| Line 39: | Line 79: | ||
<default>{{#tag:gallery| | <default>{{#tag:gallery| | ||
{{{name|{{PAGENAME}}}}}.png{{!}}Crop | {{{name|{{PAGENAME}}}}}.png{{!}}Crop | ||
{{{name|{{PAGENAME}}}}} Seeds.png{{!}}Seed packet | {{{seed_name|{{{name|{{PAGENAME}}}}} Seeds}}}.png{{!}}Seed packet | ||
}}</default> | }}</default> | ||
</image> | </image> | ||
| Line 51: | Line 91: | ||
<group> | <group> | ||
<header>Farming</header> | <header>Farming</header> | ||
<data source="store"><label> | <data source="store"><label>Store</label><format>[[{{{store|}}}]]</format></data> | ||
<data source=" | <data source="source"><label>Seeds from</label></data> | ||
<data source="growth"><label>Growth time</label><format>{{{growth}}} days {{#if:{{{regrowth|}}}|<br / | <data><label>Season</label><default>{{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#ifeq:{{#arraysize:season}}|4|[[Season{{!}}All]]|{{#arrayprint:season|<nowiki /> · <nowiki />|@@@@|[[@@@@]]}}}}</default></data> | ||
<data source="growth"><label>Growth time</label><format>{{{growth}}} days {{#if:{{{regrowth|}}}|<br />Regrows in {{{regrowth|}}} days}}</format></data> | |||
<data source="harvest_amt"><label>Produces</label><format>{{{harvest_amt|1}}} {{#ifeq:{{{harvest_amt|1}}}|1|{{PAGENAME}}|{{#switch:{{PAGENAME}} | |||
| Blueberry = Blueberries | |||
| Donberry = Donberries | |||
| Kupiberry = Kupiberries | |||
| Merryberry = Merryberries | |||
| Sourberry = Sourberries | |||
| Winterberry = Winterberries | |||
| {{PAGENAME}}s | |||
}}}}</format></data> | |||
</group> | </group> | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
<header>Economy</header> | <header>Economy</header> | ||
<data source="buy"><label>Seed price</label></data> | <data source="seed_buy"><label>Seed buy price</label></data> | ||
<data source="sell"><label> | <data source="seed_sell"><label>Seed sell price</label><format>{{formatnum:{{{seed_sell|}}}}}{{coin}}</format><default>''Cannot be sold''</default></data> | ||
<data source="sell"><label>Crop sell price</label><format>{{formatnum:{{{sell|}}}}}{{coin}}</format><default>''Cannot be sold''</default></data> | |||
</group> | </group> | ||
</infobox>[[Category:Crops]][[Category: | </infobox>{{#switch:{{lc:{{{type|}}}}} | ||
| flower | flowers = [[Category:Flowers]] | |||
| #default = [[Category:Crops]] | |||
}}[[Category:Seed packets]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|crop]]</noinclude> | |||
Latest revision as of 01:00, 7 May 2025
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.