Template:Infobox chem: Difference between revisions

From PRIME Universe Wiki
Jump to navigation Jump to search
Created page with "<includeonly> {{#define:ChemRow|{{#if:{{{2|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">{{{1}}}</th><td>{{{2}}}</td></tr>}}}} <table class="infobox" style="float:right; width:22em; font-size:90%; text-align:left; border:1px solid #444; background:#222; padding:0.3em; color:#eee; margin-top:0;"> <tr> <th colspan="2" style="text-align:center; font-size:125%; background:#000; color:#fff; padding:0.4em;"> {{{name|Unnamed Compound}}} </th> </..."
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<noinclude>
{{#define:ChemRow|{{#if:{{{2|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">{{{1}}}</th><td>{{{2}}}</td></tr>}}}}
This is the "Infobox Chemical" template.


<table class="infobox" style="float:right; width:22em; font-size:90%; text-align:left; border:1px solid #444; background:#222; padding:0.3em; color:#eee; margin-top:0;">
'''Usage:'''
  <tr>
<pre>
     <th colspan="2" style="text-align:center; font-size:125%; background:#000; color:#fff; padding:0.4em;">
{{Infobox Chemical
       {{{name|Unnamed Compound}}}
| name        = MassTekium
    </th>
| image      = [[File:MassTekium.png|200px]]
  </tr>
| category    = Synthetic Element
| type        = Metal
| symbol      = MTk
| atomic      = 999
| formula    = MTk
| appearance  = Silver, glowing faintly blue
| phase      = Solid
| density    = 22 g/cm³
| melting    = 1200 K
| boiling    = 3000 K
| reactivity  = Low with oxygen
| stability  = Stable
| toxicity    = Non-toxic
| radiological = None
| production  = Synthesized in MassTek Labs
| uses        = Starship hull alloy
| hazards    = None
| handling    = Standard lab safety
| storage     = Room temperature, dry container
| discovery  = 3395 GST, Reggae DeSantis
| notes       = Only produced in MassTek facilities
}}
</pre>
</noinclude>


  {{#if:{{{image|}}}|
<includeonly>
  <tr>
{| class="infobox" style="width:300px; border:1px solid #a2a9b1; background-color:#f8f9fa; border-collapse:collapse; float:right; margin:0 0 1em 1em; font-size:95%; line-height:1.4em;"
    <td colspan="2" style="text-align:center; background:#333; padding:0.5em;">
|-
      [[File:{{{image}}}|{{{image_size|200px}}}|center]]
! colspan="2" style="background-color:#e6e6e6; text-align:center; font-size:110%; padding:6px; border-bottom:1px solid #a2a9b1;" | {{{name|Chemical Name}}}
      {{#if:{{{caption|}}}|<div style="font-size:85%; color:#ccc;">{{{caption}}}</div>}}
|-
    </td>
| colspan="2" style="text-align:center; padding:6px;" | {{{image|[[File:Warning.png|200px|alt=Example image]]}}}
  </tr>
|-
  }}
! style="width:35%; text-align:left; padding:6px; background-color:#f2f2f2;" | Category
 
| style="padding:6px;" | {{{category|Unknown}}}
  {{ChemRow|Category|{{{category|}}}}}
|-
  {{ChemRow|Type|{{{type|}}}}}
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Type
  {{ChemRow|Chemical symbol|{{{symbol|}}}}}
| style="padding:6px;" | {{{type|Unknown}}}
  {{ChemRow|Atomic number|{{{atomic|}}}}}
|-
  {{ChemRow|Molecular formula|{{{formula|}}}}}
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Symbol
  {{ChemRow|Appearance|{{{appearance|}}}}}
| style="padding:6px;" | {{{symbol|N/A}}}
  {{ChemRow|Phase (STP)|{{{phase|}}}}}
|-
  {{ChemRow|Density|{{{density|}}}}}
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Atomic number
  {{ChemRow|Melting point|{{{melting|}}}}}
| style="padding:6px;" | {{{atomic|N/A}}}
  {{ChemRow|Boiling point|{{{boiling|}}}}}
|-
  {{ChemRow|Reactivity|{{{reactivity|}}}}}
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Molecular formula
  {{ChemRow|Stability|{{{stability|}}}}}
| style="padding:6px;" | {{{formula|N/A}}}
  {{ChemRow|Toxicity|{{{toxicity|}}}}}
|-
  {{ChemRow|Radiological properties|{{{radiological|}}}}}
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Appearance
  {{ChemRow|Production method|{{{production|}}}}}
| style="padding:6px;" | {{{appearance|Unknown}}}
  {{ChemRow|Primary uses|{{{uses|}}}}}
|-
  {{ChemRow|Hazards|{{{hazards|}}}}}
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Phase
  {{ChemRow|Handling procedures|{{{handling|}}}}}
| style="padding:6px;" | {{{phase|Unknown}}}
  {{ChemRow|Storage requirements|{{{storage|}}}}}
|-
  {{ChemRow|Discovery|{{{discovery|}}}}}
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Density
  {{ChemRow|Notes|{{{notes|}}}}}
| style="padding:6px;" | {{{density|Unknown}}}
</table>
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Melting point
| style="padding:6px;" | {{{melting|Unknown}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Boiling point
| style="padding:6px;" | {{{boiling|Unknown}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Reactivity
| style="padding:6px;" | {{{reactivity|Unknown}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Stability
| style="padding:6px;" | {{{stability|Unknown}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Toxicity
| style="padding:6px;" | {{{toxicity|Unknown}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Radiological properties
| style="padding:6px;" | {{{radiological|None}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Production method
| style="padding:6px;" | {{{production|Unknown}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Primary uses
| style="padding:6px;" | {{{uses|Unknown}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Hazards
| style="padding:6px;" | {{{hazards|None}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Handling procedures
| style="padding:6px;" | {{{handling|Standard}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Storage requirements
| style="padding:6px;" | {{{storage|Standard}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Discovery
| style="padding:6px;" | {{{discovery|Unknown}}}
|-
! style="text-align:left; padding:6px; background-color:#f2f2f2;" | Notes
| style="padding:6px;" | {{{notes|None}}}
|}
</includeonly>
</includeonly>
<noinclude>
<templatedata>
{
  "description": "Dark-themed infobox for chemicals, synthetic compounds, or custom elements.",
  "params": {
    "name": { "label": "Name", "type": "string", "required": true },
    "image": { "label": "Image", "type": "string" },
    "image_size": { "label": "Image size", "type": "string" },
    "caption": { "label": "Caption", "type": "string" },
    "category": { "label": "Category", "type": "string" },
    "type": { "label": "Type", "type": "string" },
    "symbol": { "label": "Chemical symbol", "type": "string" },
    "atomic": { "label": "Atomic number", "type": "string" },
    "formula": { "label": "Molecular formula", "type": "string" },
    "appearance": { "label": "Appearance", "type": "string" },
    "phase": { "label": "Phase (STP)", "type": "string" },
    "density": { "label": "Density", "type": "string" },
    "melting": { "label": "Melting point", "type": "string" },
    "boiling": { "label": "Boiling point", "type": "string" },
    "reactivity": { "label": "Reactivity", "type": "string" },
    "stability": { "label": "Stability", "type": "string" },
    "toxicity": { "label": "Toxicity", "type": "string" },
    "radiological": { "label": "Radiological properties", "type": "string" },
    "production": { "label": "Production method", "type": "string" },
    "uses": { "label": "Primary uses", "type": "string" },
    "hazards": { "label": "Hazards", "type": "string" },
    "handling": { "label": "Handling procedures", "type": "string" },
    "storage": { "label": "Storage requirements", "type": "string" },
    "discovery": { "label": "Discovery", "type": "string" },
    "notes": { "label": "Notes", "type": "string" }
  }
}
</templatedata>
</noinclude>

Latest revision as of 13:33, 27 December 2025

This is the "Infobox Chemical" template.

Usage:

{{Infobox Chemical
 | name        = MassTekium
 | image       = [[File:MassTekium.png|200px]]
 | category    = Synthetic Element
 | type        = Metal
 | symbol      = MTk
 | atomic      = 999
 | formula     = MTk
 | appearance  = Silver, glowing faintly blue
 | phase       = Solid
 | density     = 22 g/cm³
 | melting     = 1200 K
 | boiling     = 3000 K
 | reactivity  = Low with oxygen
 | stability   = Stable
 | toxicity    = Non-toxic
 | radiological = None
 | production  = Synthesized in MassTek Labs
 | uses        = Starship hull alloy
 | hazards     = None
 | handling    = Standard lab safety
 | storage     = Room temperature, dry container
 | discovery   = 3395 GST, Reggae DeSantis
 | notes       = Only produced in MassTek facilities
}}