Template:Infobox tree: Difference between revisions

From Everafter Falls Wiki

mNo edit summary
No edit summary
Line 37: Line 37:
|SpawnSpring={{{spring|1}}}
|SpawnSpring={{{spring|1}}}
}}  
}}  
{{#ifeq:{{PAGENAME}}|Orb Tree| |
{{#ifeq:{{PAGENAME}}|Orb Tree|  
{{#cargo_store:
{{#cargo_store:
_table=Items
|Name={{{name|{{PAGENAME}}}}}
|Image={{{name|{{PAGENAME}}}}}.png
|Description={{{fruit_description|}}}
|Type=Tree fruit
|Source=[[{{{store|}}}]] for {{{buy|}}}
|Collection={{{collection|}}}
|Machine=0
|Mat1=0
|Amt1=0
|Mat2=0
|Amt2=0
|Mat3=0
|Amt3=0
|Mat4=0
|Amt4=0
|Mat5=0
|Amt5=0
|Season=Spring · Summer · Autumn · Winter
|GrowthTime={{{growth|0}}}
|RegrowthTime={{{days_until_fruit|0}}}
|SellPrice={{{fruit_sell|}}}
|SoldAt=Not sold
|Rarity=3
|SpawnSummer=1
|SpawnAutumn=1
|SpawnWinter=1
|SpawnSpring=1
}}
| {{#cargo_store:
_table=Items
_table=Items
|Name={{{seed_name|{{{name|{{PAGENAME}}}}} Seed}}}
|Name={{{seed_name|{{{name|{{PAGENAME}}}}} Seed}}}
Line 78: Line 108:
   <image source="image">
   <image source="image">
     <default>{{#tag:gallery|
     <default>{{#tag:gallery|
{{#ifeq:{{PAGENAME}}|Orb Tree||{{{seed_name|{{{name|{{PAGENAME}}}}} Seed}}}.png{{!}}Seed}}
{{#ifeq:{{PAGENAME}}|Orb Tree|Orb Fruit.png{{!}}Fruit|{{{seed_name|{{{name|{{PAGENAME}}}}} Seed}}}.png{{!}}Seed}}
{{{name|{{PAGENAME}}}}} Sapling.png{{!}}Sapling
{{{name|{{PAGENAME}}}}} Sapling.png{{!}}Sapling
}}</default>
}}</default>
Line 92: Line 122:
     <header>General info</header>
     <header>General info</header>
     <data source="source"><label>Source</label></data>
     <data source="source"><label>Source</label></data>
     <data source="growth"><label>Growth time</label><format>{{{growth}}} days</format></data>
    <data source="store"><label>Sold at</label><format>[[{{{store|}}}]]</format></data>
     <data source="growth"><label>Growth time</label><format>{{{growth}}} days{{#if:{{{days_until_fruit|}}}|<br />{{{days_until_fruit|}}} days to first fruit}}</format></data>
     <data source="drops"><label>Drops when cut</label><default>{{i|Wood}}{{i|{{{seed_name|{{{name|{{PAGENAME}}}}} Seed}}}|50% when fully grown}}</default></data>
     <data source="drops"><label>Drops when cut</label><default>{{i|Wood}}{{i|{{{seed_name|{{{name|{{PAGENAME}}}}} Seed}}}|50% when fully grown}}</default></data>
</group>
</group>
Line 110: Line 141:
<group layout="horizontal">
<group layout="horizontal">
     <header>Economy</header>
     <header>Economy</header>
    <data source="buy"><label>Buy price</label></data>
     <data source="seed_sell"><label>Seed sell price</label><format>{{formatnum:{{{seed_sell|}}}}}{{coin}}</format></data>
     <data source="seed_sell"><label>Seed sell price</label><format>{{formatnum:{{{seed_sell|}}}}}{{coin}}</format></data>
     <data source="sapling_sell"><label>Sapling sell price</label><format>{{formatnum:{{{sapling_sell|}}}}}{{coin}}</format><default>''Cannot be sold''</default></data>
     <data source="sapling_sell"><label>Sapling sell price</label><format>{{formatnum:{{{sapling_sell|}}}}}{{coin}}</format><default>''Cannot be sold''</default></data>
    <data source="fruit_sell"><label>Fruit sell price</label></data>
</group>
</group>
</infobox>[[Category:Trees]][[Category:Tree saplings]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|tree]]</noinclude>
</infobox>[[Category:Trees]][[Category:Tree saplings]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|tree]]</noinclude>

Revision as of 20:31, 9 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.