Jump to content

Template:Infobox chemical: Difference between revisions

From the Vrienden Universe, a fictional wiki
Clean up chemical infobox fields and documentation support
Add Era field to infobox template
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
| bodyclass = ib-chemical
| bodyclass = ib-chemical
| templatestyles = Infobox chemical/styles.css
| templatestyles = Infobox chemical/styles.css
| titleclass = ib-chemical-title
| titleclass = ib-chemical-title
| titlestyle = font-size: 125%;
| titlestyle = font-size: 125%;
Line 11: Line 10:
| caption = {{if empty|{{{image_caption|}}}|{{{caption|}}}}}
| caption = {{if empty|{{{image_caption|}}}|{{{caption|}}}}}


| header1 = Identification
| header1 = {{#if:{{{other_names|}}}{{{iupac_name|}}}{{{formula|}}}{{{molecular_formula|}}}{{{molar_mass|}}}{{{cas_number|}}}{{{CAS_number|}}}|Identification}}
| label2 = Other names
| label2 = Other names
| data2 = {{{other_names|}}}
| data2 = {{{other_names|}}}
Line 23: Line 22:
| data6 = {{if empty|{{{cas_number|}}}|{{{CAS_number|}}}}}
| data6 = {{if empty|{{{cas_number|}}}|{{{CAS_number|}}}}}


| header10 = Chemical profile
| header10 = {{#if:{{{chemical_class|}}}{{{compound_type|}}}{{{composition|}}}{{{formulation|}}}{{{function|}}}{{{primary_effect|}}}{{{uses|}}}{{{recorded_use|}}}|Chemical profile}}
| label11 = Chemical class
| label11 = Chemical class
| data11 = {{{chemical_class|}}}
| data11 = {{{chemical_class|}}}
Line 35: Line 34:
| data15 = {{if empty|{{{uses|}}}|{{{recorded_use|}}}}}
| data15 = {{if empty|{{{uses|}}}|{{{recorded_use|}}}}}


| header20 = Physical properties
| header20 = {{#if:{{{physical_state|}}}{{{state|}}}{{{appearance|}}}{{{odor|}}}{{{density|}}}{{{melting_point|}}}{{{boiling_point|}}}{{{solubility|}}}{{{ph|}}}{{{conductivity|}}}{{{residue|}}}|Physical properties}}
| label21 = Physical state
| label21 = Physical state
| data21 = {{if empty|{{{physical_state|}}}|{{{state|}}}}}
| data21 = {{if empty|{{{physical_state|}}}|{{{state|}}}}}
Line 57: Line 56:
| data30 = {{{residue|}}}
| data30 = {{{residue|}}}


| header40 = Safety and handling
| header40 = {{#if:{{{hazards|}}}{{{hazard_class|}}}{{{toxicity|}}}{{{exposure_routes|}}}{{{handling|}}}{{{handling_status|}}}{{{storage|}}}{{{stability|}}}|Safety and handling}}
| label41 = Hazards
| label41 = Hazards
| data41 = {{if empty|{{{hazards|}}}|{{{hazard_class|}}}}}
| data41 = {{if empty|{{{hazards|}}}|{{{hazard_class|}}}}}
Line 71: Line 70:
| data46 = {{{stability|}}}
| data46 = {{{stability|}}}


| header60 = History
| header60 = {{#if:{{{developed_by|}}}{{{developer|}}}{{{manufacturer|}}}{{{associated_facility|}}}{{{first_recorded|}}}{{{active_period|}}}{{{status|}}}{{{post_collapse_status|}}}|History}}
| label61 = Developed by
| label61 = Developed by
| data61 = {{if empty|{{{developed_by|}}}|{{{developer|}}}}}
| data61 = {{if empty|{{{developed_by|}}}|{{{developer|}}}}}
Line 84: Line 83:
| label66 = Status
| label66 = Status
| data66 = {{if empty|{{{status|}}}|{{{post_collapse_status|}}}}}
| data66 = {{if empty|{{{status|}}}|{{{post_collapse_status|}}}}}
| label67 = Era
| data67  = {{{era|}}}
}}<!--
}}<!--
-->{{#invoke:Check for conflicting parameters|check|nested=1|template=Infobox chemical|cat={{main other|Category:Pages using infobox chemical with conflicting parameters}}|caption; image_caption|formula; molecular_formula|composition; formulation|function; primary_effect|uses; recorded_use|physical_state; state|hazards; hazard_class|handling; handling_status|developed_by; developer|status; post_collapse_status
-->{{#invoke:Check for conflicting parameters|check|nested=1|template=Infobox chemical|cat={{main other|Category:Pages using infobox chemical with conflicting parameters}}|caption; image_caption|formula; molecular_formula|composition; formulation|function; primary_effect|uses; recorded_use|physical_state; state|hazards; hazard_class|handling; handling_status|developed_by; developer|status; post_collapse_status
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox chemical with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox chemical]] with unknown parameter "_VALUE_" | ignoreblank=y | name | image | image_size | image_upright | image_alt | image_caption | caption | other_names | iupac_name | formula | molecular_formula | molar_mass | cas_number | CAS_number | chemical_class | compound_type | composition | formulation | function | primary_effect | uses | recorded_use | physical_state | state | appearance | odor | density | melting_point | boiling_point | solubility | ph | conductivity | residue | hazards | hazard_class | toxicity | exposure_routes | handling | handling_status | storage | stability | developed_by | developer | manufacturer | associated_facility | first_recorded | active_period | status | post_collapse_status | organization | access | control_system | era | nocat | demo | categories }}<noinclude>
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox chemical with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox chemical]] with unknown parameter "_VALUE_" | ignoreblank=y | name | image | image_size | image_upright | image_alt | image_caption | caption | other_names | iupac_name | formula | molecular_formula | molar_mass | cas_number | CAS_number | chemical_class | compound_type | composition | formulation | function | primary_effect | uses | recorded_use | physical_state | state | appearance | odor | density | melting_point | boiling_point | solubility | ph | conductivity | residue | hazards | hazard_class | toxicity | exposure_routes | handling | handling_status | storage | stability | developed_by | developer | manufacturer | associated_facility | first_recorded | active_period | status | post_collapse_status | organization | access | control_system | era | nocat | demo | categories  
| era
}}<noinclude>
{{documentation}}
{{documentation}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 00:06, 11 July 2026