Template:Liquid: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(add section that gives names to all the variations, add additional id aliases to id)
Line 48: Line 48:
|imagearea = {{#if: {{{overrideimages|}}} | {{{overrideimages}}} }}
|imagearea = {{#if: {{{overrideimages|}}} | {{{overrideimages}}} }}
|rows =  
|rows =  
{{infobox row|Starts Flaming at|{{{flame|99999}}}}}}}
<th style="text-align:left" colspan="2"> When on/in other objects/liquids:</th>
<tr><td style="text-align:left;padding:0em 2em 0.5em 2em;" colspan="2">{{{adjective}}} {{qud shader|y|liquid}}</br>{{{stained}}} {{qud shader|y|object}}</br>{{{smeared}}} {{qud shader|y|object}}</td></tr>
{{#if:{{{flame|}}}|{{infobox row|Starts Flaming at|{{{flame}}}}} }}
{{infobox row|Vaporizes at|{{{vapor|100}}}T{{#if: {{{vaporobject|}}}|, into [[{{{vaporobject|Steam}}}]]}} }}
{{infobox row|Vaporizes at|{{{vapor|100}}}T{{#if: {{{vaporobject|}}}|, into [[{{{vaporobject|Steam}}}]]}} }}
{{infobox row|Base temperature|{{{temperature|25}}}T}}
{{infobox row|Base temperature|{{{temperature|25}}}T}}
{{#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|Weight per dram|{{{weight|0}}}{{Pounds}} }}
{{#if: {{{evaporativity|}}}|{{infobox row|Evaporativity|{{{evaporativity}}} }} }}
{{#if: {{{evaporativity|}}}|{{infobox row|Evaporativity|{{{evaporativity}}} }} }}
{{#if: {{{fluidity|}}}|{{infobox row|Fluidity|{{{fluidity}}} }} }}
{{#if: {{{fluidity|}}}|{{infobox row|Fluidity|{{{fluidity}}} }} }}
{{#if: {{{dangeroustotouch|}}}|{{infobox row|Dangerous to touch?|{{{dangeroustotouch}}} }} }}
{{#if: {{{dangeroustodrink|}}}|{{infobox row|Dangerous to drink?|{{{dangeroustodrink}}}
}} }}
{{#if: {{{cleansing|}}}|{{infobox row|Cleaning factor|{{{cleansing}}}}}}}
{{#if: {{{cleansing|}}}|{{infobox row|Cleaning factor|{{{cleansing}}}}}}}
{{infobox row|ID|{{{id|}}} }}
{{infobox row|Dangerous to touch?|{{{dangeroustotouch|no}}} }}
{{infobox row|Dangerous 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 105: Line 107:
| value per dram
| value per dram
| Float
| Float
|}</noinclude>
|}
 
{{liquid
| title={{qud shader|G|acid}}
| liquidid=acid
| id=AcidPool
| vaporobject=corrosive gas
| cookeffect=acidMinor
| value=1.5
| combustibility = 3
| thermalconductivity = 45
| fluidity = 30
| evaporativity = 1
| cleansing = 30
| staining = 1
| dangeroustotouch = yes
| dangeroustodrink = yes
| image=acid.png}}</noinclude>

Revision as of 01:11, 9 March 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
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

{{#invoke:infobox| infobox |imagearea = |rows =

When on/in other objects/liquids: {{{adjective}}} liquid
{{{stained}}} object
{{{smeared}}} object !

Vaporizes at

| | 100T, into corrosive gas |-

!

Base temperature

| | 25T |-

!

Cooking Effect

| | simple acid-based effects |-

!

Value per dram

| | 1.5 |-

!

Weight per dram

| | 0# |-

!

Evaporativity

| | 1 |-

!

Fluidity

| | 30 |-

!

Cleaning factor

| | 30 |-

!

Dangerous to touch?

| | yes |-

!

Dangerous to drink?

| | yes |-

!

ID

| | AcidPool

!

Liquid ID

| | acid |-

|-