• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Chembox setHeader

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
  • Chembox setHeader (/sbox edit diff /test | Source e Talk hist links # /subpages /doc)
  • Chembox setDatarow (/sbox edit diff /test | Source e Talk hist links # /subpages /doc)
{{Chembox/testcases (set)}}

applied

{{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

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

The above documentation is transcluded from Template:Chembox setHeader/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Chembox_setHeader&oldid=8076"
Category:
  • Chembox templates
Last edited on 5 January 2022, at 10:37

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 5 January 2022, at 10:37.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop