Template:Infobox tree: Difference between revisions
From Everafter Falls Wiki
mNo edit summary |
mNo edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
|Name={{{name|{{PAGENAME}}}}} | |Name={{{name|{{PAGENAME}}}}} | ||
|Image={{{name|{{PAGENAME}}}}} Sapling.png | |Image={{{name|{{PAGENAME}}}}} Sapling.png | ||
|Description={{ | |Description={{#ifeq:{{PAGENAME}}|Orb Tree|Orb Fruit}} | ||
|Type=Tree | |Type=Tree | ||
|Source={{{source|}}} | |Source={{{source|[[{{{store|}}}]] for {{{buy|}}}}}} | ||
|Collection= | |Collection= | ||
|Machine=0 | |Machine=0 | ||
| Line 24: | Line 24: | ||
|Amt5=0 | |Amt5=0 | ||
|CraftTime={{{tap_time|}}} | |CraftTime={{{tap_time|}}} | ||
|Misc={{{tap_product|}}} | |Misc={{{tap_product|0}}} | ||
|Size={{{tapper|}}} | |Size={{{tapper|0}}} | ||
|Season=Any | |Season=Any | ||
|GrowthTime={{{growth|0}}} | |GrowthTime={{{growth|0}}} | ||
|RegrowthTime={{{days_until_fruit|0}}} | |||
|BuyPrice={{{buy|0}}} | |BuyPrice={{{buy|0}}} | ||
|SellPrice={{{sapling_sell|}}} | |SellPrice={{{sapling_sell|}}} | ||
| Line 37: | Line 38: | ||
|SpawnSpring={{{spring|1}}} | |SpawnSpring={{{spring|1}}} | ||
}} | }} | ||
{{#ifeq:{{PAGENAME}}|Orb Tree | {{#ifeq:{{PAGENAME}}|Orb Tree| | ||
{{#cargo_store: | {{#cargo_store: | ||
_table=Items | |||
|Name=Orb Fruit | |||
|Image=Orb Fruit.png | |||
|Description={{{name|{{PAGENAME}}}}} | |||
|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 109: | ||
<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 87: | Line 118: | ||
<group> | <group> | ||
<data source="type"><label>Type</label><default>Tree</default></data> | <data source="type"><label>Type</label><default>Tree</default></data> | ||
<data source="collection"><label>Collection</label><format>[[Museum#{{ucfirst:{{{collection|}}}}}|{{ucfirst:{{{collection|}}}}}]]</format></data> | <data source="collection"><label>Collection</label><format>[[Museum#{{ucfirst:{{{collection|}}}}}|{{ucfirst:{{{collection|}}}}}]][[Category:Tree seeds]]</format></data> | ||
</group> | </group> | ||
<group> | <group> | ||
<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 142: | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
<header>Economy</header> | <header>Economy</header> | ||
<data source="buy"><label>Sapling 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><format>{{formatnum:{{{fruit_sell|}}}}}{{coin}}</format></data> | |||
</group> | </group> | ||
</infobox>[[Category:Trees]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|tree]]</noinclude> | </infobox>[[Category:Trees]][[Category:Tree saplings]]</includeonly><noinclude>{{documentation}}[[Category:Infobox templates|tree]]</noinclude> | ||
Latest revision as of 12:20, 11 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. |