Jump to content

Template:Infobox chemical: Difference between revisions

From the Vrienden Universe, a fictional wiki
No edit summary
Clean up chemical infobox fields and documentation support
Line 1: Line 1:
<includeonly>{| class="infobox" style="width:22em; font-size:90%;"
{{Infobox
|-
| bodyclass = ib-chemical
! colspan="2" style="text-align:center; font-size:125%; background:#dce8f2;" | {{{name|{{PAGENAME}}}}}
| templatestyles = Infobox chemical/styles.css
{{#if:{{{image|}}}|
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|250px]]
}}
{{#if:{{{caption|}}}|
{{!}}-
{{!}} colspan="2" style="text-align:center; font-size:85%;" {{!}} {{{caption}}}
}}
{{#if:{{{other_names|}}}|
{{!}}-
! Other names
{{!}} {{{other_names}}}
}}
{{#if:{{{chemical_class|}}}|
{{!}}-
! Chemical class
{{!}} {{{chemical_class}}}
}}
{{#if:{{{compound_type|}}}|
{{!}}-
! Compound type
{{!}} {{{compound_type}}}
}}
{{#if:{{{formulation|}}}|
{{!}}-
! Formulation
{{!}} {{{formulation}}}
}}
{{#if:{{{state|}}}|
{{!}}-
! State
{{!}} {{{state}}}
}}
{{#if:{{{appearance|}}}|
{{!}}-
! Appearance
{{!}} {{{appearance}}}
}}
{{#if:{{{residue|}}}|
{{!}}-
! Residue
{{!}} {{{residue}}}
}}
{{#if:{{{conductivity|}}}|
{{!}}-
! Conductivity
{{!}} {{{conductivity}}}
}}
{{#if:{{{primary_effect|}}}|
{{!}}-
! Primary effect
{{!}} {{{primary_effect}}}
}}
{{#if:{{{recorded_use|}}}|
{{!}}-
! Recorded use
{{!}} {{{recorded_use}}}
}}
{{#if:{{{developer|}}}|
{{!}}-
! Developer
{{!}} {{{developer}}}
}}
{{#if:{{{manufacturer|}}}|
{{!}}-
! Manufacturer
{{!}} {{{manufacturer}}}
}}
{{#if:{{{organization|}}}|
{{!}}-
! Organization
{{!}} {{{organization}}}
}}
{{#if:{{{associated_facility|}}}|
{{!}}-
! Associated facility
{{!}} {{{associated_facility}}}
}}
{{#if:{{{storage|}}}|
{{!}}-
! Storage
{{!}} {{{storage}}}
}}
{{#if:{{{access|}}}|
{{!}}-
! Access
{{!}} {{{access}}}
}}
{{#if:{{{control_system|}}}|
{{!}}-
! Control system
{{!}} {{{control_system}}}
}}
{{#if:{{{first_recorded|}}}|
{{!}}-
! First recorded
{{!}} {{{first_recorded}}}
}}
{{#if:{{{active_period|}}}|
{{!}}-
! Active period
{{!}} {{{active_period}}}
}}
{{#if:{{{hazard_class|}}}|
{{!}}-
! Hazard class
{{!}} {{{hazard_class}}}
}}
{{#if:{{{handling_status|}}}|
{{!}}-
! Handling status
{{!}} {{{handling_status}}}
}}
{{#if:{{{post_collapse_status|}}}|
{{!}}-
! Post-collapse status
{{!}} {{{post_collapse_status}}}
}}
|}</includeonly><noinclude>
== Usage ==
<pre>
{{Infobox chemical
| name                =
| image                =
| caption              =
| other_names          =
| chemical_class      =
| compound_type        =
| formulation          =
| state                =
| appearance          =
| residue              =
| conductivity        =
| primary_effect      =
| recorded_use        =
| developer            =
| manufacturer        =
| organization        =
| associated_facility  =
| storage              =
| access              =
| control_system      =
| first_recorded      =
| active_period        =
| hazard_class        =
| handling_status      =
| post_collapse_status =
}}
</pre>


| titleclass = ib-chemical-title
| titlestyle = font-size: 125%;
| title = {{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
| imageclass = ib-chemical-image
| image = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |upright={{if empty|{{{image_upright|}}}|1}} |alt={{{image_alt|}}} |maxsize=250px}}
| caption = {{if empty|{{{image_caption|}}}|{{{caption|}}}}}
| header1 = Identification
| label2 = Other names
| data2 = {{{other_names|}}}
| label3 = IUPAC name
| data3 = {{{iupac_name|}}}
| label4 = Formula
| data4 = {{if empty|{{{formula|}}}|{{{molecular_formula|}}}}}
| label5 = Molar mass
| data5 = {{{molar_mass|}}}
| label6 = CAS Number
| data6 = {{if empty|{{{cas_number|}}}|{{{CAS_number|}}}}}
| header10 = Chemical profile
| label11 = Chemical class
| data11 = {{{chemical_class|}}}
| label12 = Compound type
| data12 = {{{compound_type|}}}
| label13 = Composition
| data13 = {{if empty|{{{composition|}}}|{{{formulation|}}}}}
| label14 = Function
| data14 = {{if empty|{{{function|}}}|{{{primary_effect|}}}}}
| label15 = Uses
| data15 = {{if empty|{{{uses|}}}|{{{recorded_use|}}}}}
| header20 = Physical properties
| label21 = Physical state
| data21 = {{if empty|{{{physical_state|}}}|{{{state|}}}}}
| label22 = Appearance
| data22 = {{{appearance|}}}
| label23 = Odor
| data23 = {{{odor|}}}
| label24 = Density
| data24 = {{{density|}}}
| label25 = Melting point
| data25 = {{{melting_point|}}}
| label26 = Boiling point
| data26 = {{{boiling_point|}}}
| label27 = Solubility
| data27 = {{{solubility|}}}
| label28 = pH
| data28 = {{{ph|}}}
| label29 = Conductivity
| data29 = {{{conductivity|}}}
| label30 = Residue
| data30 = {{{residue|}}}
| header40 = Safety and handling
| label41 = Hazards
| data41 = {{if empty|{{{hazards|}}}|{{{hazard_class|}}}}}
| label42 = Toxicity
| data42 = {{{toxicity|}}}
| label43 = Exposure routes
| data43 = {{{exposure_routes|}}}
| label44 = Handling
| data44 = {{if empty|{{{handling|}}}|{{{handling_status|}}}}}
| label45 = Storage
| data45 = {{{storage|}}}
| label46 = Stability
| data46 = {{{stability|}}}
| header60 = History
| label61 = Developed by
| data61 = {{if empty|{{{developed_by|}}}|{{{developer|}}}}}
| label62 = Manufacturer
| data62 = {{{manufacturer|}}}
| label63 = Associated facility
| data63 = {{{associated_facility|}}}
| label64 = First recorded
| data64 = {{{first_recorded|}}}
| label65 = Active period
| data65 = {{{active_period|}}}
| label66 = Status
| data66 = {{if empty|{{{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>
{{documentation}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 13:31, 1 July 2026

Identification
Chemical profile
Physical properties
Safety and handling
History