|
|
| Line 27: |
Line 27: |
| |BuyPrice=Wikitext | | |BuyPrice=Wikitext |
| |SellPrice=Integer | | |SellPrice=Integer |
| }}</noinclude><includeonly><!-- | | }}[[Category:Infobox templates]]</noinclude> |
| | |
| // Storing the inputs into the declared Cargo table
| |
| --><!-- ifeq namespace check to prevent documentation examples being stored in CargoTable -->
| |
| {{#ifeq: {{NAMESPACENUMBER}} | 0 |
| |
| {{#cargo_store:
| |
| _table=Items
| |
| |Name={{{name|{{PAGENAME}}}}}
| |
| |Image={{{image|{{{name|{{PAGENAME}}}}}.png}}}
| |
| |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>
| |
This template defines the table "Items". View table.