Difference between revisions of "Template:Chem"

From Paradise Station Wiki
Jump to navigation Jump to search
(Optional parameter basicformula)
m
Line 4: Line 4:
| 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'''

Revision as of 07:04, 27 January 2015

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).