Template:Chembox setHeader/doc
Appearance
(Redirected from Template:Chembox subHeader/doc)
This is a documentation subpage for Template:Chembox setHeader. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 4,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
- Chembox setHeader/sandbox (edit · t · history · diff · links · /test · Source · e · t · hist · links · /subpages · /doc · /doc edit)
- Chembox setDatarow/sandbox (edit · t · history · diff · links · /test · Source · e · t · hist · links · /subpages · /doc · /doc edit)
applied
[edit]- {{Chembox Pharmacokinetics (set)}}
- {{Chembox NIOSH (set)}}
- {{Chembox Lethal amounts (set)}}
- {{Chembox CMC HLB (set)}}
- {{Chembox GHS (set)}} -- new (Dec 2021)
- {{Chembox OHS (set)}} -- developing (Dec 2021)
Template technique
[edit]Template code:
1. Create a specific (set) in the section (e.g., {{Chembox Lethal amounts (set)}})
2. From the section template (from {{Chembox Hazards}}), call the (set) conditionally (= when the set has input) and pass through input:
({{#if:{{{param1|}}}{{{param2|}}}|{{Chembox Chembox Lethal amounts (set)|param1={{{param1|}}}...}}}}
3. In the (set): call dataHeader and setDatarow (once per datarow). Set |setheadertext=Sub title
and |label=Labeltext
, pass through input parameters as |data={{{LD50|}}}
- A setDatarow will not show when
|data=
is empty.
4. Check for ghost references