Template:Chembox: Difference between revisions

From Space Station 14 Wiki
No edit summary
Tag: Reverted
(docs)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div id="chem_{{{prototype}}}" class="quickbox" style="width: 25em;">
<includeonly><div id="chem_{{{prototype}}}" class="quickbox" style="width: 25em;">
<div class="quickboxhead" style="font-weight: 500; background-color: {{#invoke:Chemistry Lookup|getcolor|{{{prototype|BuzzochloricBees}}}}}; color: {{#invoke:Chemistry Lookup|gettextcolor|{{{prototype|BuzzochloricBees}}}}}">'''{{ucfirst:{{#invoke:Chemistry Lookup|readscalar|{{{prototype|BuzzochloricBees}}}|name}}}}'''</div>
<div class="quickboxhead" style="font-weight: 500; background-color: {{#invoke:Chemistry Lookup|getcolor|{{{prototype|BuzzochloricBees}}}}}; color: {{#invoke:Chemistry Lookup|gettextcolor|{{{prototype|BuzzochloricBees}}}}}">'''{{ucfirst:{{#invoke:Chemistry Lookup|readscalar|{{{prototype|BuzzochloricBees}}}|name}}}}'''</div>
{{#ifeq:{{#invoke:Chemistry Lookup|hasrecipe|{{{prototype|BuzzochloricBees}}}}}|true|
{{#ifeq:{{#invoke:Chemistry Lookup|hasrecipe|{{{prototype|BuzzochloricBees}}}}}|true|
<div class="mw-collapsible mw-collapsed" style="width:100%; overflow:auto; border-bottom: 1px solid #303038;">
<div class="mw-collapsible mw-collapsed" style="width:100%; overflow:auto; border-bottom: 1px solid #303038;">
<div style="font-weight:bold;line-height:1.6; padding: 0 0.5em">Recipes</div>
<div style="font-weight:bold;line-height:1.6; padding: 0 0.5em">Recipes</div>
<div class="mw-collapsible-content">{{#invoke:Chemistry Lookup|buildrecipes|{{{prototype|BuzzochloricBees}}}|{{{groups|}}}|{{{chems|}}}}}</div>
<div class="mw-collapsible-content">{{#invoke:Chemistry Lookup|buildrecipes|{{{prototype|BuzzochloricBees}}}}}</div>
{{{groups|}}}|{{{chems|}}}
</div>
</div>
}}<!--
}}<!--
Line 32: Line 31:
-->{{#if:{{#invoke:Chemistry Lookup|checksatiateshunger|{{{prototype|BuzzochloricBees}}}}}|<br/>Satiates hunger.}}
-->{{#if:{{#invoke:Chemistry Lookup|checksatiateshunger|{{{prototype|BuzzochloricBees}}}}}|<br/>Satiates hunger.}}
</div>
</div>
</div>
</div></includeonly><noinclude>
{{documentation}}
 
[[Category:Recipe templates]]
<templatedata>
{
"params": {
"prototype": {
"label": "Reaction ID",
"description": "Reaction ID either from https://wiki.spacestation14.io/wiki/User:Moony/chem_prototypes.json or https://wiki.spacestation14.io/wiki/User:Moony/react_prototypes.json.",
"type": "string",
"required": true
}
},
"description": "Creates a card for a chemical recipe, also showing its description and listing effects."
}
</templatedata>
</noinclude>

Latest revision as of 07:24, 25 June 2024

Template documentation
view or edit this documentation about template documentation

  • {{Chembox|prototype=Histamine}}

produces:

Histamine
Effects
Poison (0.5 units per second)
10% chance to deal 4 Brute per unit.
Deals 4 Brute, 4 Airloss, and 4 Toxin per unit when more than 45u.

Histamine's effects become more dangerous depending on the dosage amount. They range from mildly annoying to incredibly lethal.
Seems to be abrasive.

  • {{Chembox|prototype=SnowWhite}}

produces:

Snow white
Effects
Drink (0.5 units per second)
Adds 0.05 ethanol.

A cold refreshment.
Seems to be bubbly.
Satiates thirst.

Creates a card for a chemical recipe, also showing its description and listing effects.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Reaction IDprototype

Reaction ID either from https://wiki.spacestation14.io/wiki/User:Moony/chem_prototypes.json or https://wiki.spacestation14.io/wiki/User:Moony/react_prototypes.json.

Stringrequired