Template:Food: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(JoinKey) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare:_table=Food| | {{#cargo_declare:_table=Food| | ||
Title=Wikitext|RenderString=String|ColorString=String|ObjectID=String|LightRadius=Integer|Hunger=String|Thirst=Integer|Extra=Searchtext|Description=Wikitext|Healing=String|PreservedInto=Page|PreservedQuantity=Integer|ExoticFood=Boolean|FoodContains=String|OnEat=Page|CookEffect=List (,) of Page}} | Title=Wikitext|RenderString=String|ColorString=String|ObjectID=String|LightRadius=Integer|Hunger=String|Thirst=Integer|Extra=Searchtext|Description=Wikitext|Healing=String|PreservedInto=Page|PreservedQuantity=Integer|ExoticFood=Boolean|FoodContains=String|OnEat=Page|CookEffect=List (,) of Page|JoinKey=String}} | ||
{{#cargo_attach: | {{#cargo_attach: | ||
_table = GeneralData}} | _table = GeneralData}} | ||
[[Category:Cargo Store Templates]] | [[Category:Cargo Store Templates]] | ||
{{doc}} | {{doc}} | ||
</noinclude><includeonly>{{#cargo_store:_table=Food | |||
</noinclude><includeonly>{{#cargo_store:_table=Food| | |Title={{{title|}}} | ||
Title={{{title|}}}| | |RenderString={{{renderstr|}}} | ||
RenderString={{{renderstr|}}}| | |ColorString={{{colorstr|&y}}} | ||
ColorString={{{colorstr|&y}}}| | |ObjectID={{{id|}}} | ||
ObjectID={{{id|}}}| | |LightRadius={{{lightradius|}}} | ||
LightRadius={{{lightradius|}}}| | |Hunger={{{hunger|}}} | ||
Hunger={{{hunger|}}}| | |Thirst={{{thirst|}}} | ||
Thirst={{{thirst|}}}| | |Extra={{#if: {{{extra|}}}|{{{extra}}}}} | ||
Extra={{#if: {{{extra|}}}|{{{extra}}}}}| | |Description={{qud text|{{{desc|}}}}} | ||
Description={{qud text|{{{desc|}}}}}| | |Healing={{{healing|}}} | ||
Healing={{{healing|}}}| | |HarvestedInto={{{harvestedinto|}}} | ||
HarvestedInto={{{harvestedinto|}}}| | |PreservedInto={{{preservedinto|}}} | ||
PreservedInto={{{preservedinto|}}}| | |PreservedQuantity={{{preservedquantity|}}} | ||
PreservedQuantity={{{preservedquantity|}}}| | |ExoticFood={{{exoticfood|no}}} | ||
ExoticFood={{{exoticfood|no}}}| | |FoodContains={{#if:{{#ifeq:{{{ismeat|}}}|yes|yes}}{{#ifeq:{{{isplant|}}}|yes|yes}}{{#ifeq:{{{isfungus|}}}|yes|yes}}|{{#ifeq:{{{ismeat|}}}| yes | | ||
FoodContains={{#if:{{#ifeq:{{{ismeat|}}}|yes|yes}}{{#ifeq:{{{isplant|}}}|yes|yes}}{{#ifeq:{{{isfungus|}}}|yes|yes}}|{{#ifeq:{{{ismeat|}}}| yes | | |||
Meat }}{{#ifeq:{{{isplant|}}}| yes | | Meat }}{{#ifeq:{{{isplant|}}}| yes | | ||
Plants }}{{#ifeq:{{{isfungus|}}}| yes | | Plants }}{{#ifeq:{{{isfungus|}}}| yes | | ||
Fungi }}|none}}| | Fungi }}|none}} | ||
OnEat={{#if: {{{illoneat|}}} |Become ill</br>}}{{{oneat|}}}| | |OnEat={{#if: {{{illoneat|}}} |Become ill</br>}}{{{oneat|}}} | ||
CookEffect={{{cookeffect|}}}}}<!-- | |CookEffect={{{cookeffect|}}} | ||
|JoinKey={{FULLPAGENAME}}}}<!-- | |||
GeneralData Cargo Store Begin | GeneralData Cargo Store Begin | ||
Line 39: | Line 39: | ||
Weight={{{weight|}}}| | Weight={{{weight|}}}| | ||
Tier={{{tier|}}}| | Tier={{{tier|}}}| | ||
Categories={{{categories|}}}| | Categories={{{categories|}}} | ||
ParentObject={{{inheritingfrom|}}} }}<!-- | |ParentObject={{{inheritingfrom|}}} | ||
|JoinKey={{FULLPAGENAME}} }}<!-- | |||
Variable Definitions | Variable Definitions |
Revision as of 02:28, 16 December 2019
This template defines the table "Food". View table. This template adds rows to the table "GeneralData", which is declared by the template General data table. View table.
Parameter | Explanation | Data type |
---|---|---|
title | The display name of the item. | {{Qud text|(title)}} |
image | The image. If the item has no associate sprite, set equal to none. | item name.png/none |
weight | int | |
commerce | The value of the object | int |
colorstr | the color of the character with tiles mode off. | &(char),defaults to &y |
renderstr | What the item looks like with tiles mode off. | char |
id | The name of the object in ObjectBlueprints.xml | string |
lightradius | radius of light it gives off | int |
hunger | how much hunger it satiates | String |
thirst | how much thirst it slakes | int |
healing | what the item heals | string |
preservedinto | what the item preserves into | string |
preservedquantity | how much of the preserved item is made | integer |
exoticfood | is it exotic? (must choose to preserve) | yes/no |
oneat | effects that happen when you eat. | string |
cookeffect | the cooking effect type. should be the type= part in part Name PreparedCookingIngredient. | string |
isplant | has the Plant part | yes/no |
ismeat | has the Meat part | yes/no |
isfungus | has the fungus part | yes/no |
extra | Any other features that do not have an associated variable. | string |
desc | The short description of the object. | The whole string, with color codes included |
eatdesc | the description upon eating | string |
{{Food
| title = {{Qud text|&mtaco suprema}}
| image = taco suprema.png
| weight = 0
| commerce = 500
| renderstr = %
| id = Taco Suprema
| hunger = Meal
| thirst = 15000
| desc = A delicious taco, wrapped in thin paper.
| eatdesc = Usted ama el tacos!}}
taco suprema
Weight
|
0# |
---|---|
500 | |
Character
|
% |
ID?Use this ID to Wish for the item
|
Taco Suprema |
Meal | |
15000 |
taco suprema
A delicious taco, wrapped in thin paper.
Usted ama el tacos!.
— upon consuming |