Difference between revisions of "Template:Chem"

From Paradise Station Wiki
Jump to navigation Jump to search
(major styling fix, layout change, removed table-within-table code, switched colours for headers, added middle-row different colouring)
m (replaced: | style=" → |style = " (10))
 
(3 intermediate revisions by 2 users 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.}}}
|- style="background-color: #F7F7F7;"
{{#if: {{{basicformula|}}}|
| style="background-color: #FFEE88;" | '''Effects'''
{{!}}- style="background-color: #F7F7F7;"
{{!}} style="background-color: #FFEE88;" {{!}} '''Basic Formula'''
{{!}} {{{basicformula}}}
}}
|- style="background-color: #{{#if:{{{basicformula|}}}|FFFFFF|F7F7F7}};"
|style = "background-color: #FFEE88;" | '''Effects'''
| {{{effects|Undefined.}}}
| {{{effects|Undefined.}}}
|-
| style="background-color: #FFEE88;" | '''Overdose'''
| {{{overdose|Undefined.}}}
|}<noinclude>
|}<noinclude>
== How to use this template: ==
== How to use this template: ==
Line 23: Line 25:
  <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 30: 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.
| 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>

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