Template:Liquid: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(store ObjectID in liquids for phasing out JoinKey eventually)
m (Update documentation)
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|CookEffect = List (,) of String
|CookEffect = List (,) of String
|LiquidID = String
|LiquidID = String
|Temperature = Integer
|Fluidity = Integer
|Cleansing = Integer
|DamageTypes = String
|Joinkey = String
|Joinkey = String
|ObjectID = String
|ObjectID = String
Line 15: Line 19:
|ObjectID={{{id|}}}
|ObjectID={{{id|}}}
|Image={{{image|}}}
|Image={{{image|}}}
|Commerce={{#expr:{{{value|0}}}*4.0}}
|Commerce={{{value|0}}}
|Weight=1
|Weight={{{weight|0.25}}}
|ParentObject=Liquid
|ParentObject=Liquid
|DisplayChar={{qud char|{{{renderstr|&y}}}|≈}}
|DisplayChar={{qud char|{{{renderstr|&y}}}|≈}}
Line 28: Line 32:
-->{{#cargo_store:_table=Liquids
-->{{#cargo_store:_table=Liquids
|CookEffect = {{#if: {{{cookeffect|}}}|{{consecutive templates|{{{cookeffect}}}|,|, |||CookEffect ID to name}} }}
|CookEffect = {{#if: {{{cookeffect|}}}|{{consecutive templates|{{{cookeffect}}}|,|, |||CookEffect ID to name}} }}
|Temperature = {{{temperature|}}}
|Fluidity = {{{fluidity|}}}
|Cleansing = {{{cleansing|}}}
|LiquidID = {{{liquidid|}}}
|LiquidID = {{{liquidid|}}}
|DamageTypes = {{{damagetypes|}}}
|Joinkey = {{FULLPAGENAME}}
|Joinkey = {{FULLPAGENAME}}
|ObjectID={{{id|}}}
|ObjectID={{{id|}}}
Line 42: Line 50:
|imagearea = {{#if: {{{overrideimages|}}} | {{{overrideimages}}} }}
|imagearea = {{#if: {{{overrideimages|}}} | {{{overrideimages}}} }}
|rows =  
|rows =  
{{#if: {{{flame|}}}|{{infobox row|Flaming Temperature|{{{flame|350}}}}}}}
<th style="text-align:left" colspan="2"> When on/in other objects/liquids:</th>
{{#if: {{{vapor|350}}}|{{infobox row|Vapor Temperature|{{{vapor|350}}}{{#if: {{{vaporobject|}}}|, into [[{{{vaporobject|Steam}}}]]}} }}}}
<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: {{{cooling|}}}|{{infobox row|Cooling Multiplier|{{{cooling}}}}}}}
{{#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: {{{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 73: 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