Template:Infobox chem: Difference between revisions

From PRIME Universe Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


<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;">
<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>
<tr><th colspan="2" style="text-align:center; font-size:125%; background:#000; color:#fff; padding:0.4em;">{{{name|Unnamed Compound}}}</th></tr>
    <th colspan="2" style="text-align:center; font-size:125%; background:#000; color:#fff; padding:0.4em;">
      {{{name|Unnamed Compound}}}
    </th>
  </tr>


  {{#if:{{{image|}}}|
{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center; background:#333; padding:0.5em;">[[File:{{{image}}}|{{{image_size|200px}}}|center]]</td></tr>}}
  <tr>
    <td colspan="2" style="text-align:center; background:#333; padding:0.5em;">
      [[File:{{{image}}}|{{{image_size|200px}}}|center]]
      {{#if:{{{caption|}}}|<div style="font-size:85%; color:#ccc;">{{{caption}}}</div>}}
    </td>
  </tr>
  }}


  {{ChemRow|Category|{{{category|}}}}}
{{ChemRow|Category|{{{category|}}}}}
  {{ChemRow|Type|{{{type|}}}}}
{{ChemRow|Type|{{{type|}}}}}
  {{ChemRow|Chemical symbol|{{{symbol|}}}}}
{{ChemRow|Chemical symbol|{{{symbol|}}}}}
  {{ChemRow|Atomic number|{{{atomic|}}}}}
{{ChemRow|Atomic number|{{{atomic|}}}}}
  {{ChemRow|Molecular formula|{{{formula|}}}}}
  {{ChemRow|Appearance|{{{appearance|}}}}}
  {{ChemRow|Phase|{{{phase|}}}}}
  {{ChemRow|Density|{{{density|}}}}}
  {{ChemRow|Melting point|{{{melting|}}}}}
  {{ChemRow|Boiling point|{{{boiling|}}}}}
  {{ChemRow|Reactivity|{{{reactivity|}}}}}
  {{ChemRow|Stability|{{{stability|}}}}}
  {{ChemRow|Toxicity|{{{toxicity|}}}}}
  {{ChemRow|Radiological properties|{{{radiological|}}}}}
  {{ChemRow|Production method|{{{production|}}}}}
  {{ChemRow|Primary uses|{{{uses|}}}}}
  {{ChemRow|Hazards|{{{hazards|}}}}}
  {{ChemRow|Handling procedures|{{{handling|}}}}}
  {{ChemRow|Storage requirements|{{{storage|}}}}}
  {{ChemRow|Discovery|{{{discovery|}}}}}
  {{ChemRow|Notes|{{{notes|}}}}}
</table>
</table>
</includeonly>
</includeonly>
<noinclude>
Documentation, usage examples, or license info can go here.
</noinclude>


<templatedata>
<templatedata>
{
{
   "description": "Dark-themed infobox for chemicals, synthetic compounds, or custom elements with VisualEditor support.",
   "description": "Infobox for chemicals/elements.",
   "params": {
   "params": {
     "name": { "label": "Name", "description": "Official name of the chemical, compound, or element.", "type": "string", "required": true },
     "name": { "label": "Name", "description": "Name of the chemical or element.", "type": "string", "required": true },
     "image": { "label": "Image", "description": "File name of an image representing the chemical or element.", "type": "string" },
     "image": { "label": "Image", "description": "Filename for the image", "type": "string" },
     "image_size": { "label": "Image size", "description": "Optional image size (e.g., 200px).", "type": "string" },
     "image_size": { "label": "Image size", "description": "Image size e.g., 200px", "type": "string" },
    "caption": { "label": "Caption", "description": "Caption displayed under the image.", "type": "string" },
     "category": { "label": "Category", "description": "Category of chemical or element", "type": "string" },
     "category": { "label": "Category", "description": "Broad classification: Element, Compound, Synthetic, Exotic Matter, etc.", "type": "string" },
     "type": { "label": "Type", "description": "Specific type of substance", "type": "string" },
     "type": { "label": "Type", "description": "Specific type of substance.", "type": "string" },
     "symbol": { "label": "Chemical symbol", "description": "Symbol or abbreviation", "type": "string" },
     "symbol": { "label": "Chemical symbol", "description": "Chemical symbol or shorthand for the element/compound.", "type": "string" },
     "atomic": { "label": "Atomic number", "description": "Atomic number if element", "type": "string" }
     "atomic": { "label": "Atomic number", "description": "Atomic number for elements.", "type": "string" },
    "formula": { "label": "Molecular formula", "description": "Molecular formula for compounds.", "type": "string" },
    "appearance": { "label": "Appearance", "description": "Visual description (color, texture, glow).", "type": "string" },
    "phase": { "label": "Phase", "description": "Physical state at standard conditions (solid, liquid, gas).", "type": "string" },
    "density": { "label": "Density", "description": "Density in standard units or fictional units.", "type": "string" },
    "melting": { "label": "Melting point", "description": "Melting point of the substance.", "type": "string" },
    "boiling": { "label": "Boiling point", "description": "Boiling point of the substance.", "type": "string" },
    "reactivity": { "label": "Reactivity", "description": "Chemical or environmental reactivity.", "type": "string" },
    "stability": { "label": "Stability", "description": "Stability under normal and extreme conditions.", "type": "string" },
    "toxicity": { "label": "Toxicity", "description": "Toxicity to living organisms or environment.", "type": "string" },
    "radiological": { "label": "Radiological properties", "description": "Radioactive or exotic radiation characteristics.", "type": "string" },
    "production": { "label": "Production method", "description": "How the substance is synthesized or produced.", "type": "string" },
    "uses": { "label": "Primary uses", "description": "Main uses of the substance.", "type": "string" },
    "hazards": { "label": "Hazards", "description": "Known hazards or dangerous properties.", "type": "string" },
    "handling": { "label": "Handling procedures", "description": "Required safety procedures for handling.", "type": "string" },
    "storage": { "label": "Storage requirements", "description": "Conditions for safe storage.", "type": "string" },
    "discovery": { "label": "Discovery", "description": "Discovery date, discoverer, or originating project.", "type": "string" },
    "notes": { "label": "Notes", "description": "Additional information, trivia, or classified notes.", "type": "string" }
   }
   }
}
}
</templatedata>
</templatedata>

Revision as of 13:23, 27 December 2025


<templatedata> {

 "description": "Infobox for chemicals/elements.",
 "params": {
   "name": { "label": "Name", "description": "Name of the chemical or element.", "type": "string", "required": true },
   "image": { "label": "Image", "description": "Filename for the image", "type": "string" },
   "image_size": { "label": "Image size", "description": "Image size e.g., 200px", "type": "string" },
   "category": { "label": "Category", "description": "Category of chemical or element", "type": "string" },
   "type": { "label": "Type", "description": "Specific type of substance", "type": "string" },
   "symbol": { "label": "Chemical symbol", "description": "Symbol or abbreviation", "type": "string" },
   "atomic": { "label": "Atomic number", "description": "Atomic number if element", "type": "string" }
 }

} </templatedata>