Difference between revisions of "Template:Chem"

From Paradise Station Wiki
Jump to navigation Jump to search
(Optional parameter basicformula)
m (replaced: | style=" → |style = " (10))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{| style="border: 1px solid #FFDD66; margin: 1em 0em;" cellspacing="0" cellpadding=4 width="800"
{| style="border: 1px solid #FFDD66; margin: 1em 0em;" cellspacing="0" cellpadding=4 width="800"
| style="background-color: #FFDD66;" align="center" colspan="2" | '''{{{chemical|Chemical}}}'''
|style = "background-color: #FFDD66;" align="center" colspan="2" | '''{{{chemical|Chemical}}}'''
|-
|-
| style="background-color: #FFEE88;" width="120" | '''Formula'''
|style = "background-color: #FFEE88;" width="120" | '''Formula'''
| {{{formula|Undefined.}}}
| {{{formula|Undefined.}}}
|- {{if#: {{{basicformula|}}} | style="background-color: #F7F7F7;" | style="display: none;" }}
{{#if: {{{basicformula|}}}|
| style="background-color: #FFEE88;" | '''Basic Formula'''
{{!}}- style="background-color: #F7F7F7;"
| {{{basicformula}}}
{{!}} style="background-color: #FFEE88;" {{!}} '''Basic Formula'''
{{!}} {{{basicformula}}}
}}
|- style="background-color: #{{#if:{{{basicformula|}}}|FFFFFF|F7F7F7}};"
|- style="background-color: #{{#if:{{{basicformula|}}}|FFFFFF|F7F7F7}};"
| style="background-color: #FFEE88;" | '''Effects'''
|style = "background-color: #FFEE88;" | '''Effects'''
| {{{effects|Undefined.}}}
| {{{effects|Undefined.}}}
|}<noinclude>
|}<noinclude>
Line 29: Line 31:


{{Chem
{{Chem
| chemical = Dexalin
|chemical = Dexalin
| formula = 2 parts Oxygen, 5 units Plasma (Catalyst)
|formula = 2 parts Oxygen, 5 units Plasma (Catalyst)
| effects = Used in treating oxygen deprivation.
|effects = Used in treating oxygen deprivation.
}}
}}


Line 48: Line 50:


{{Chem
{{Chem
| chemical = Alkysine
|chemical = Alkysine
| formula = 1 part Chlorine, 1 part Nitrogen, 1 part Anti-Toxin
|formula = 1 part Chlorine, 1 part Nitrogen, 1 part Anti-Toxin
| basicformula = 3 part Chlorine, 3 part Nitrogen, 1 part Silicon, 1 part Nitrogen, 1 part Potassium
|basicformula = 3 part Chlorine, 3 part Nitrogen, 1 part Silicon, 1 part Nitrogen, 1 part Potassium
| effects = Lessens the damage to neurological tissue, effective even after catastrophic injury. Used for treating brain damage (Results in 2 units instead of 3).
|effects = Lessens the damage to neurological tissue, effective even after catastrophic injury. Used for treating brain damage (Results in 2 units instead of 3).
}}
}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 20:35, 8 July 2021

Chemical
Formula Undefined.
Effects Undefined.

How to use this template:

{{Chem}}

yields

Chemical
Formula Undefined.
Effects Undefined.

{{Chem
| chemical = Dexalin
| formula = 1 part Oxygen, 1 part Plasma
| effects = Used in treating oxygen deprivation.
}}

yields

Dexalin
Formula 2 parts Oxygen, 5 units Plasma (Catalyst)
Effects Used in treating oxygen deprivation.

For more complex chemicals, the basic formula can be provided through the basicformula parameter:

{{Chem
| chemical = Dexalin
| formula = 1 part Oxygen, 1 part Plasma
| basicformula = 3 part Chlorine, 3 part Nitrogen, 1 part Silicon, 1 part Nitrogen, 1 part Potassium
| effects = Used in treating oxygen deprivation.
}}

yields

Alkysine
Formula 1 part Chlorine, 1 part Nitrogen, 1 part Anti-Toxin
Basic Formula 3 part Chlorine, 3 part Nitrogen, 1 part Silicon, 1 part Nitrogen, 1 part Potassium
Effects Lessens the damage to neurological tissue, effective even after catastrophic injury. Used for treating brain damage (Results in 2 units instead of 3).