Template:Liquid: Difference between revisions
Jump to navigation
Jump to search
(made more rows optional) |
(GD cargo attach) |
||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:infobox| infobox | | <noinclude>{{#cargo_attach:_table=GeneralData}}</noinclude><includeonly><!-- | ||
GENERAL DATA STORAGE | |||
-->{{#cargo_store:_table=GeneralData | |||
|DisplayName={{{title|}}} | |||
|PlainName={{StripFormatting|{{{title|}}}}} | |||
|ObjectID={{{id|}}} | |||
|Image={{{image|}}} | |||
|Commerce={{#expr:{{{value|0}}}*4.0}} | |||
|Weight=1 | |||
|ParentObject=Liquid | |||
|DisplayChar={{qud char|{{{renderstr|&y}}}|≈}}}}<!--- | |||
VARIABLE DEFINITIONS | |||
-->{{#vardefine:name|{{{title|}}}}}<!---- | |||
INFOBOX START | |||
-->{{#invoke:infobox| infobox | | |||
rows = | rows = | ||
{{#if: {{{flame|}}}|{{infobox row|Flaming Temperature|{{{flame|350}}}}}}} | {{#if: {{{flame|}}}|{{infobox row|Flaming Temperature|{{{flame|350}}}}}}} | ||
{{#if: {{{vapor|}}}|{{infobox row|Vapor Temperature|{{{vapor|350}}}{{#if: {{{vaporobject|}}}|, into [[{{{vaporobject|Steam}}}]]| (cannot vaporize) }} }}}} | {{#if: {{{vapor|}}}|{{infobox row|Vapor Temperature|{{{vapor|350}}}{{#if: {{{vaporobject|}}}|, into [[{{{vaporobject|Steam}}}]]| (cannot vaporize) }} }}}} | ||
{{#if: {{{cooling|}}}|{{infobox row|Cooling Multiplier|{{{cooling}}}}}}} | {{#if: {{{cooling|}}}|{{infobox row|Cooling Multiplier|{{{cooling}}}}}}} | ||
{{#if: {{{cookeffect|}}}|{{infobox row|Cooking Effect| | {{#if: {{{cookeffect|}}}|{{infobox row|Cooking Effect|{{{cookeffect}}} }} }} | ||
{{#if: {{{value|}}}|{{infobox row|Value per dram|{{{value}}} }} }} | {{#if: {{{value|}}}|{{infobox row|Value per dram|{{{value}}} }} }} | ||
{{infobox row| | {{infobox row|ByteID|{{{byteid|}}} }} | ||
}}[[Category:Liquids]]</includeonly><noinclude> | }}[[Category:Liquids]]</includeonly><noinclude> | ||
[[Category:Templates]] | [[Category:Cargo Store Templates]] | ||
{| class="wikitable" | {| class="wikitable" | ||
!argument | !argument | ||
Line 34: | Line 54: | ||
|String (will autolink) | |String (will autolink) | ||
|- | |- | ||
| | |byteid | ||
|liquid id | |liquid id | ||
|string | |string |
Revision as of 15:15, 9 September 2019
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) |
byteid | 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 |