Template:Item declare: Difference between revisions

From Everafter Falls Wiki

m oops
mNo edit summary
 
(23 intermediate revisions by the same user not shown)
Line 5: Line 5:
_table=Items
_table=Items
|Name=String
|Name=String
|Image=File
|Description=Wikitext
|Description=Wikitext
|Type=String
|Type=String
|Source=Wikitext
|Source=Wikitext
|Collection=String
|Collection=String(hierarchy;allowed values=*Cooking
**Raw Bases
**Classic Recipes
**Breakfast Recipes
**Pizza Recipes
**Sushi Recipes
**Dessert Recipes
**Soup Recipes
**Sandwich and Burger Recipes
*Museum
**Fish
***Tiny Fish
***Koi
***Angel Fish
***Ocean Fish
***Cool Fish
***Purple Fish
***Rainbow Fish
***Sea Animals
**Shells
***Common Shells
***Conch Shells
***Starfish
***Ammonites
***Rare Shells
**Common Critters
**Frogs
***Tiny Frogs
***Mid Sized Frogs
***Giant Frogs
***Iridescent Frogs
**Flutterflies
***Tiny Flutterflies
***Mid Sized Flutterflies
***Giant Flutterflies
***Iridescent Flutterflies
**Dragonflies
***Tiny Dragonflies
***Mid Sized Dragonflies
***Giant Dragonflies
***Iridescent Dragonflies
**Minerals
***Opals
***Shards and Spheres
***Strange Stones
***Amazing Stones
***Metallic Ores
***Gems and Minerals
**Mushrooms
***Shroom Delicacies
***Shrooms Of Everafter
***Saprophytic Shrooms
**Plants and Seeds
***Tree Seeds
***Vegetable Crops
***Berries
***Crop Fruits
***Tree Fruits
***Wild Plants
***Water Plants
***Giant Water Plants
***Flowers
**Tree Sap
**Fresh Animal Produce
**Processed Food Produce
**Processed Sap)
|Machine=String
|Machine=String
|Mat1=String
|Mat1=String
Line 20: Line 86:
|Mat5=String
|Mat5=String
|Amt5=Integer
|Amt5=Integer
|AmtCrafted=Integer
|CraftTime=String
|CraftTime=String
|Season=String
|Size=String
|Season=Wikitext
|Location=Wikitext
|Location=Wikitext
|GrowthTime=String
|Rarity=Integer
|SpawnSummer=Boolean
|SpawnAutumn=Boolean
|SpawnWinter=Boolean
|SpawnSpring=Boolean
|GrowthTime=Integer
|RegrowthTime=Integer
|BuyPrice=Wikitext
|BuyPrice=Wikitext
|SellPrice=Integer
|SellPrice=Integer
}}</noinclude><includeonly><!--
|CrushOutput=Integer
 
|SoldAt=String
// Storing the inputs into the declared Cargo table
|SortIndex=Integer
--><!-- ifeq namespace check to prevent documentation examples being stored in CargoTable -->
|Stats=Wikitext
{{#ifeq: {{NAMESPACENUMBER}} | 0 |
|Slot=String
{{#cargo_store:
|StacksTo=Integer
_table=Items
|Misc=Wikitext
|Name={{{name|{{PAGENAME}}}}}
}}[[Category:Cargo templates]]</noinclude>
|Description={{{description|}}}
|Type={{{type|Unknown}}}
|Source={{{source|}}}
|Collection={{{collection|}}}
|Machine={{{machine|}}}
|Mat1={{{mat1|}}}
|Amt1={{{amt1|}}}
|Mat2={{{mat2|}}}
|Amt2={{{amt2|}}}
|Mat3={{{mat3|}}}
|Amt3={{{amt3|}}}
|Mat4={{{mat4|}}}
|Amt4={{{amt4|}}}
|Mat5={{{mat5|}}}
|Amt5={{{amt5|}}}
|CraftTime={{{time|}}}
|Season={{{season|}}}
|Location={{{location|}}}
|GrowthTime={{{growth|}}}
|BuyPrice={{{buy|}}}
|SellPrice={{{sell|}}}
}} }}<!--
 
 
--><infobox>
<title source="name">
    <default>{{PAGENAME}}</default>
  </title>
  <image source="image">
    <default>{{{name|{{PAGENAME}}}}}.png</default>
  </image>
<group layout="horizontal">
    <data source="description"><format>''{{{description}}}''</format></data>
</group>
<group>
    <data source="type"><label>Type</label><default>''Unknown''</default></data>
    <data source="source"><label>Source</label><default>''Unknown''</default></data>
    <data source="collection"><label>Collection</label><format>{{#switch: {{lc:{{{collection|}}}}}
        | sushi | dessert | pizza | classic | breakfast = [[Bakery#{{ucfirst:{{{collection|}}}}}|{{ucfirst:{{{collection|}}}}}]]
        | #default = [[Museum#{{ucfirst:{{{collection|}}}}}|{{ucfirst:{{{collection|}}}}}]]
        }}</format>
</data>
</group>
<group>
    <header>Obtaining</header>
    <data source="season"><label>Season</label></data>
    <data source="location"><label>Location</label></data>
    <data source="growth"><label>Growth time</label></data>
</group>
<group>
    <header>Crafting</header>
    <data source="machine"><label>Machine</label><format>{{i|{{{machine}}}}}</format></data>
    <data source="mat1"><label>Recipe</label><format>{{i|{{{mat1}}}|{{{amt1|1}}}}}{{#if:{{{mat2|}}}|{{i|{{{mat2}}}|{{{amt2|1}}}}}}}{{#if:{{{mat3|}}}|{{i|{{{mat3}}}|{{{amt3|1}}}}}}}{{#if:{{{mat4|}}}|{{i|{{{mat4}}}|{{{amt4|1}}}}}}}{{#if:{{{mat5|}}}|{{i|{{{mat5}}}|{{{amt5|1}}}}}}}</format></data>
    <data source="time"><label>Time</label></data>
</group>
<group layout="horizontal">
    <header>Economy</header>
    <data source="buy"><label>Buy price</label></data>
    <data source="sell"><label>Sell price</label><format>{{formatnum:{{{sell|}}}}}{{coin}}</format><default>''Cannot be sold''</default></data>
</group>
</infobox></includeonly><noinclude>[[Category:Infobox templates]]</noinclude>

Latest revision as of 19:39, 30 March 2025

This template defines the table "Items". View table.