Template:Liquid: Difference between revisions
Jump to navigation
Jump to search
(JoinKey) |
m (Update documentation) |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{#cargo_attach:_table=GeneralData}}</noinclude><includeonly><!-- | <noinclude>{{#cargo_declare:_table=Liquids | ||
|CookEffect = List (,) of String | |||
|LiquidID = String | |||
|Temperature = Integer | |||
|Fluidity = Integer | |||
|Cleansing = Integer | |||
|DamageTypes = String | |||
|Joinkey = String | |||
|ObjectID = String | |||
}}<!-- | |||
-->{{#cargo_attach:_table=GeneralData}}</noinclude><includeonly><!-- | |||
GENERAL DATA STORAGE | GENERAL DATA STORAGE | ||
Line 8: | Line 19: | ||
|ObjectID={{{id|}}} | |ObjectID={{{id|}}} | ||
|Image={{{image|}}} | |Image={{{image|}}} | ||
|Commerce= | |Commerce={{{value|0}}} | ||
|Weight= | |Weight={{{weight|0.25}}} | ||
|ParentObject=Liquid | |ParentObject=Liquid | ||
|DisplayChar={{qud char|{{{renderstr|&y}}}|≈}} | |DisplayChar={{qud char|{{{renderstr|&y}}}|≈}} | ||
Line 15: | Line 26: | ||
|IDAliases={{#var:idaliases|}} | |IDAliases={{#var:idaliases|}} | ||
|JoinKey={{FULLPAGENAME}} | |JoinKey={{FULLPAGENAME}} | ||
}}<!--- | }}<!-- | ||
LIQUID DATA STORAGE | |||
-->{{#cargo_store:_table=Liquids | |||
|CookEffect = {{#if: {{{cookeffect|}}}|{{consecutive templates|{{{cookeffect}}}|,|, |||CookEffect ID to name}} }} | |||
|Temperature = {{{temperature|}}} | |||
|Fluidity = {{{fluidity|}}} | |||
|Cleansing = {{{cleansing|}}} | |||
|LiquidID = {{{liquidid|}}} | |||
|DamageTypes = {{{damagetypes|}}} | |||
|Joinkey = {{FULLPAGENAME}} | |||
|ObjectID={{{id|}}} | |||
}}<!-- | |||
VARIABLE DEFINITIONS | VARIABLE DEFINITIONS | ||
-->{{#vardefine:name|{{{title|}}}}}<!---- | -->{{#vardefine:name|{{{title|<b>{{PAGENAME}}</b>}}}}}{{#vardefine:plainname|{{StripFormatting|1={{{title|{{PAGENAME}} }}} }} }}<!---- | ||
INFOBOX START | INFOBOX START | ||
-->{{#invoke:infobox| infobox | | -->{{#invoke:infobox| infobox | ||
|imagearea = {{#if: {{{overrideimages|}}} | {{{overrideimages}}} }} | |||
{{#if: {{{ | |rows = | ||
{{#if: {{{ | <th style="text-align:left" colspan="2"> When on/in other objects/liquids:</th> | ||
{{#if: {{{ | <tr><td style="text-align:left;padding:0em 2em 0.5em 2em;" colspan="2">{{{adjective}}} {{qud shader|y|liquid}}</br>{{{smeared}}} {{qud shader|y|object}}</br>{{{stained}}} {{qud shader|y|object}}</td></tr> | ||
{{#if: {{{cookeffect|}}}|{{ | {{#if:{{{flame|}}}|{{infobox row|Starts Flaming at|{{{flame}}}°}} }} | ||
{{infobox row|Vaporizes at|{{{vapor|100}}}°{{#if: {{{vaporobject|}}}|, into [[{{{vaporobject|Steam}}}]]}} }} | |||
{{infobox row|Base temperature|{{{temperature|25}}}°}} | |||
{{#if: {{{damagetypes|}}} | {{infobox row|[[Damage Type]]|{{{damagetypes}}} }} }} | |||
{{#if: {{{cookeffect|}}}|{{Infobox row|Cooking Effect|{{consecutive templates|{{{cookeffect}}}|,|, |||CookEffect ID to page}} }} }} | |||
{{#if: {{{value|}}}|{{infobox row|Value per dram|{{{value}}} }} }} | {{#if: {{{value|}}}|{{infobox row|Value per dram|{{{value}}} }} }} | ||
{{infobox row|ID|{{{id|}}} }} | {{infobox row|Weight per dram|{{{weight|0.25}}}{{Pounds}} }} | ||
{{#if: {{{evaporativity|}}}|{{infobox row|Evaporativity|{{{evaporativity}}} }} }} | |||
{{#if: {{{fluidity|}}}|{{infobox row|Fluidity|{{{fluidity}}} }} }} | |||
{{#if: {{{cleansing|}}}|{{infobox row|Cleaning factor|{{{cleansing}}}}}}} | |||
{{infobox row|Prompt to wade through?|{{{dangeroustotouch|no}}} }} | |||
{{infobox row|Prompt to drink?|{{{dangeroustodrink|no}}} }} | |||
{{infobox row|ID|{{{id|}}}{{#varexists:idaliases|, {{#var:idaliases}} }}}} | |||
{{infobox row|Liquid ID|{{{liquidid|}}} }} | {{infobox row|Liquid ID|{{{liquidid|}}} }} | ||
}}[[Category:Liquids]]</includeonly><noinclude><!-- | }}[[Category:Liquids]]</includeonly><noinclude><!-- | ||
Line 56: | Line 90: | ||
|the cooling multiplier. This affects the temperature of something after pouring this liquid on it. | |the cooling multiplier. This affects the temperature of something after pouring this liquid on it. | ||
|Float | |Float | ||
|- | |||
|damagetypes | |||
|the types of damage caused by this liquid through drinking or physical contact | |||
|String (<nowiki></br></nowiki> delimited) | |||
|- | |- | ||
|cookeffect | |cookeffect |
Latest revision as of 00:05, 13 September 2021
This template defines the table "Liquids". View table.This template adds rows to the table "GeneralData", which is declared by the template General data table. View table.
argument | description | type |
---|---|---|
flame | temperature it needs to reach to start burning. Defaults to 350 | Integer |
vapor | temperature it needs to reach to evaporate. Defaults to 350. | Integer |
vaporobject | object it vaporizes into. Defaults to steam | String (it will auto link to the page) |
cooling | the cooling multiplier. This affects the temperature of something after pouring this liquid on it. | Float |
damagetypes | the types of damage caused by this liquid through drinking or physical contact | String (</br> delimited) |
cookeffect | if specified, links to the type of cooking effect this has. | String (will autolink) |
liquidid | liquid id | string |
title | self explanatory | {{qud text|(name)|notxml}} |
image | for the image if it's uploaded. | image.png |
value | value per dram | Float |