Difference between revisions of "Template:Chembox subHeader/doc"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 16: Line 16:
 
1. Create a specific (set) in the section (e.g., {{tl|Chembox Lethal amounts (set)}})
 
1. Create a specific (set) in the section (e.g., {{tl|Chembox Lethal amounts (set)}})
  
2. In there: call dataHeader and subDatarows. Set {{para|subheadertext|Sub title}} and {{para|label|Labeltext}}, pass through input parameters as {{para|data|<nowiki>{{{LD50|}}}</nowiki>}}
+
2. From the section template (from {{tl|Chembox Hazards}}), call the (set) conditionally (= when the set has input) and pass through input:
 +
::<code><nowiki>({{#if:{{{param1|}}}{{{param2|}}}|{{Chembox Chembox Lethal amounts (set)|param1={{{param1|}}}...}}}}</nowiki></code>
  
3. From the section template (from {{tl|Chembox hazards}}), call the (set) conditionally (= when the set has input):
+
3. In the (set): call dataHeader and subDatarow (once per datarow). Set {{para|subheadertext|Sub title}} and {{para|label|Labeltext}}, pass through input parameters as {{para|data|<nowiki>{{{LD50|}}}</nowiki>}}
:: <nowiki>({{#if:{{{param1|}}}{{{param2|}}}|{{Chembox Chembox Lethal amounts (set)|param1={{{param1|}}}...}}}}</nowiki>
 
  
 
4. Check for ghost references
 
4. Check for ghost references

Revision as of 10:28, 9 November 2019

{{Chembox/testcases (set)}}

applied

{{Chembox Pharmacokinetics (set)}}
{{Chembox NIOSH (set)}}
{{Chembox Lethal amounts (set)}}
{{Chembox CMC HLB (set)}}
{{Chembox GHS (set)}} -- new (Nov2019)
{{Chembox NFPA (set)}} -- new (Nov2019)

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 subDatarow (once per datarow). Set |subheadertext=Sub title and |label=Labeltext, pass through input parameters as |data={{{LD50|}}}

4. Check for ghost references