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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(Created page with '{{#if:{{{data|}}}| {{!}}- style="background:#f4f4f4;" {{!}} style="padding-left:1em;" {{!}} {{longitem|1={{{label|}}}}} {{!}} {{{data|}}} {{!}}- }}<!-- --><...')
 
imported>DePiep
(source)
Line 1: Line 1:
{{#if:{{{data|}}}|
+
{{#if:{{{subheadertext|}}}|
 
+
{{!}} colspan=2 style="text-align:left; background-color:#f1f1f1;" {{!}} {{{subheadertext|}}}
{{!}}- style="background:#f4f4f4;"
 
 
 
{{!}} style="padding-left:1em;" {{!}} {{longitem|1={{{label|}}}}}
 
 
 
{{!}} {{{data|}}}
 
 
 
 
{{!}}-
 
{{!}}-
}}<!--
 
  
--><noinclude>{{documentation}}</noinclude>
+
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>
 +
ude>{{documentation}}</noinclude>

Revision as of 08:00, 5 November 2019

Template documentation[view] [edit] [history] [purge]
{{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|}}}

A subDatarow will not show when |data= is empty.

4. Check for ghost references

ude>

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

A subDatarow will not show when |data= is empty.

4. Check for ghost references