Difference between revisions of "Template:Chem"

From Paradise Station Wiki
Jump to navigation Jump to search
m (replaced: | style=" → |style = " (10))
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| style="border:1px solid #FFDD66" cellpadding="0" cellspacing="0" width=560
{| style="border: 1px solid #FFDD66; margin: 1em 0em;" cellspacing="0" cellpadding=4 width="800"
|
|style = "background-color: #FFDD66;" align="center" colspan="2" | '''{{{chemical|Chemical}}}'''
{|width = "100%" cellspacing="0" cellpadding="2" width=560
|align=center width="120" style="background-color:#FFEE88"|'''{{{chemical|Chemical}}}'''
|'''Formula: '''{{{formula|Not defined}}}
|}
{|width = "100%" cellspacing="0" cellpadding="2" width=560
| style="background-color:#FFDD66" |'''Effects:'''
|-
|-
|{{{effects|Not defined.}}}
|style = "background-color: #FFEE88;" width="120" | '''Formula'''
|{{{effects|Not defined.}}}
| {{{formula|Undefined.}}}
{|width = "100%" cellspacing="0" cellpadding="2" width=560
{{#if: {{{basicformula|}}}|
| style="background-color:#FFDD66" |'''Overdose:'''
{{!}}- style="background-color: #F7F7F7;"
|-
{{!}} style="background-color: #FFEE88;" {{!}} '''Basic Formula'''
|{{{overdose|Not defined.}}}
{{!}} {{{basicformula}}}
|}
}}
|}
|- style="background-color: #{{#if:{{{basicformula|}}}|FFFFFF|F7F7F7}};"
|style = "background-color: #FFEE88;" | '''Effects'''
| {{{effects|Undefined.}}}
|}<noinclude>
|}<noinclude>
== How to use this template: ==
== How to use this template: ==
Line 26: Line 22:
<code>
<code>
  <nowiki>{{Chem</nowiki>
  <nowiki>{{Chem</nowiki>
  <nowiki>|chemical = Dexalin</nowiki>
  <nowiki>| chemical = Dexalin</nowiki>
  <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>
</code>
 
yields
 
{{Chem
|chemical = 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:
 
<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>
  <nowiki>}}</nowiki>
</code>
</code>
Line 36: Line 50:


{{Chem
{{Chem
|chemical = Dexalin
|chemical = Alkysine
|formula = 2 parts Oxygen, 5 units Plasma Catalyst
|formula = 1 part Chlorine, 1 part Nitrogen, 1 part Anti-Toxin
|effects = Used in treating oxygen Deprivation.
|basicformula = 3 part Chlorine, 3 part Nitrogen, 1 part Silicon, 1 part Nitrogen, 1 part Potassium
|overdose = 30 units
|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).