Template:Liquid: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Update documentation) |
||
(27 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:infobox| infobox | | <noinclude>{{#cargo_declare:_table=Liquids | ||
rows = | |CookEffect = List (,) of String | ||
{{infobox row|Flaming | |LiquidID = String | ||
{{infobox row| | |Temperature = Integer | ||
{{infobox row| | |Fluidity = Integer | ||
{{#if: {{{ | |Cleansing = Integer | ||
|DamageTypes = String | |||
|Joinkey = String | |||
|ObjectID = String | |||
}}<!-- | |||
-->{{#cargo_attach:_table=GeneralData}}</noinclude><includeonly><!-- | |||
GENERAL DATA STORAGE | |||
-->{{#cargo_store:_table=GeneralData | |||
|DisplayName={{{title|}}} | |||
|PlainName={{StripFormatting|1={{{title|}}}}} | |||
|ObjectID={{{id|}}} | |||
|Image={{{image|}}} | |||
|Commerce={{{value|0}}} | |||
|Weight={{{weight|0.25}}} | |||
|ParentObject=Liquid | |||
|DisplayChar={{qud char|{{{renderstr|&y}}}|≈}} | |||
|Aliases={{#var:aliases|}} | |||
|IDAliases={{#var:idaliases|}} | |||
|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 | |||
-->{{#vardefine:name|{{{title|<b>{{PAGENAME}}</b>}}}}}{{#vardefine:plainname|{{StripFormatting|1={{{title|{{PAGENAME}} }}} }} }}<!---- | |||
INFOBOX START | |||
-->{{#invoke:infobox| infobox | |||
|imagearea = {{#if: {{{overrideimages|}}} | {{{overrideimages}}} }} | |||
|rows = | |||
<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>{{{smeared}}} {{qud shader|y|object}}</br>{{{stained}}} {{qud shader|y|object}}</td></tr> | |||
{{#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| | {{infobox row|Weight per dram|{{{weight|0.25}}}{{Pounds}} }} | ||
}}</includeonly><noinclude> | {{#if: {{{evaporativity|}}}|{{infobox row|Evaporativity|{{{evaporativity}}} }} }} | ||
[[Category:Templates]] | {{#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|}}} }} | |||
}}[[Category:Liquids]]</includeonly><noinclude><!-- | |||
-->[[Category:Cargo Store Templates]] | |||
{| class="wikitable" | {| class="wikitable" | ||
!argument | !argument | ||
Line 29: | 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 | ||
Line 34: | Line 99: | ||
|String (will autolink) | |String (will autolink) | ||
|- | |- | ||
| | |liquidid | ||
|liquid id | |liquid id | ||
|string | |string |
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 |