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

Revision as of 13:16, 27 December 2025


<templatedata> {

 "description": "Dark-themed infobox for chemicals, synthetic compounds, or custom elements with VisualEditor support.",
 "params": {
   "name": { "label": "Name", "description": "Official name of the chemical, compound, or element.", "type": "string", "required": true },
   "image": { "label": "Image", "description": "File name of an image representing the chemical or element.", "type": "string" },
   "image_size": { "label": "Image size", "description": "Optional image size, e.g., 200px.", "type": "string" },
   "caption": { "label": "Caption", "description": "Caption displayed under the image.", "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" },
   "symbol": { "label": "Chemical symbol", "description": "Chemical symbol or shorthand for the element/compound.", "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>