Template:Infobox fruit: Difference between revisions

From Everafter Falls Wiki

mNo edit summary
No edit summary
Line 29: Line 29:
|SellPrice={{{sell|}}}
|SellPrice={{{sell|}}}
|SoldAt={{{store|Not sold}}}
|SoldAt={{{store|Not sold}}}
|Rarity={{{sapling_rarity|}}}
|Rarity=
|SpawnSummer={{{summer|0}}}
|SpawnSummer={{{summer|0}}}
|SpawnAutumn={{{autumn|0}}}
|SpawnAutumn={{{autumn|0}}}
|SpawnWinter={{{winter|0}}}
|SpawnWinter={{{winter|0}}}
|SpawnSpring={{{spring|0}}}
|SpawnSpring={{{spring|0}}}
|Misc={{{tree_name|{{{name|{{PAGENAME}}}}} Tree}}}
|Misc=
}}
{{#cargo_store:
_table=Items
|Name={{{tree_name|{{{name|{{PAGENAME}}}}} Tree}}}
|Image={{{tree_name|{{{name|{{PAGENAME}}}}} Tree}}} Sapling.png
|Description=Will grow into a {{{tree_name|{{{name|{{PAGENAME}}}}} Tree}}}.
|Type={{{type|Tree}}}
|Source={{{source|}}}
|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}}{{#arrayprint:season| · }}
|GrowthTime={{{growth|0}}}
|RegrowthTime={{{days_until_fruit|0}}}
|BuyPrice={{{buy|0}}}
|SellPrice={{{sell|}}}
|SoldAt={{{store|Not sold}}}
|Rarity={{{sapling_rarity|0}}}
|SpawnSummer={{{summer|0}}}
|SpawnAutumn={{{autumn|0}}}
|SpawnWinter={{{winter|0}}}
|SpawnSpring={{{spring|0}}}
|CrushOutput={{{drops|}}}
|Misc={{{name|{{PAGENAME}}}}}
}} }}<!--
}} }}<!--


Line 61: Line 93:
     <data><label>Season</label><default>{{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#arrayprint:season|<nowiki /> · <nowiki />|@@@@|[[@@@@]]}}</default></data>
     <data><label>Season</label><default>{{#arraydefine:season|{{#if:{{{summer|}}}|Summer,}}{{#if:{{{autumn|}}}|Autumn,}}{{#if:{{{winter|}}}|Winter,}}{{#if:{{{spring|}}}|Spring}}|,|unique}}{{#arrayprint:season|<nowiki /> · <nowiki />|@@@@|[[@@@@]]}}</default></data>
     <data source="growth"><label>Growth time</label><format>{{{growth}}} days {{#if:{{{days_until_fruit|}}}|<br />{{{days_until_fruit|}}} days to fruit}}</format></data>
     <data source="growth"><label>Growth time</label><format>{{{growth}}} days {{#if:{{{days_until_fruit|}}}|<br />{{{days_until_fruit|}}} days to fruit}}</format></data>
    <data source="drops"><label>Drops when cut</label></data>
</group>
</group>
<group layout="horizontal">
<group layout="horizontal">
Line 67: Line 100:
     <data source="sell"><label>Sell price</label><format>{{formatnum:{{{sell|}}}}}{{coin}}</format><default>''Cannot be sold''</default></data>
     <data source="sell"><label>Sell price</label><format>{{formatnum:{{{sell|}}}}}{{coin}}</format><default>''Cannot be sold''</default></data>
</group>
</group>
</infobox>[[Category:Tree fruit]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|crop]]</noinclude>
</infobox>[[Category:Tree fruit]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|fruit]]</noinclude>

Revision as of 01:02, 23 November 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.