Difference between revisions of "Template:Chem"

From Paradise Station Wiki
Jump to navigation Jump to search
(Optional parameter basicformula)
Line 4: Line 4:
| style="background-color: #FFEE88;" width="120" | '''Formula'''
| style="background-color: #FFEE88;" width="120" | '''Formula'''
| {{{formula|Undefined.}}}
| {{{formula|Undefined.}}}
|- style="background-color: #F7F7F7;"
|- {{if#: {{{basicformula|}}} | style="background-color: #F7F7F7;" | style="display: none;" }}
| style="background-color: #FFEE88;" | '''Basic Formula'''
| {{{basicformula}}}
|- style="background-color: #{{#if:{{{basicformula|}}}|FFFFFF|F7F7F7}};"
| style="background-color: #FFEE88;" | '''Effects'''
| style="background-color: #FFEE88;" | '''Effects'''
| {{{effects|Undefined.}}}
| {{{effects|Undefined.}}}
Line 20: Line 23:
  <nowiki>| formula = 1 part Oxygen, 1 part Plasma</nowiki>
  <nowiki>| formula = 1 part Oxygen, 1 part Plasma</nowiki>
  <nowiki>| effects = Used in treating oxygen deprivation.</nowiki>
  <nowiki>| effects = Used in treating oxygen deprivation.</nowiki>
<nowiki>| overdose = 30 units</nowiki>
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>
</code>
</code>
Line 28: Line 30:
{{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.
| overdose = 30 units
}}
}}
For more complex chemicals, the basic formula can be provided through the basicformula parameter:
<code>
<nowiki>{{Chem</nowiki>
<nowiki>| chemical = Dexalin</nowiki>
<nowiki>| formula = 1 part Oxygen, 1 part Plasma</nowiki>
<nowiki>| basicformula = 3 part Chlorine, 3 part Nitrogen, 1 part Silicon, 1 part Nitrogen, 1 part Potassium</nowiki>
<nowiki>| effects = Used in treating oxygen deprivation.</nowiki>
<nowiki>}}</nowiki>
</code>
yields
{{Chem
| chemical = Alkysine
| 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
| 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>

Revision as of 06:53, 27 January 2015

Chemical
Formula Undefined.
Basic Formula {{{basicformula}}}
Effects Undefined.

How to use this template:

{{Chem}}

yields

Chemical
Formula Undefined.
Basic Formula {{{basicformula}}}
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)
Basic Formula {{{basicformula}}}
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).