Difference between revisions of "Template:Chembox headerbar"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(Formatting InChI, SMILES, JMol. Remove deprecated parameters. Fix footer logic. +minor changes. See talk)
imported>DePiep
(Expand SMILES-Jmol options, +minor changes (param addTESTdata=). See Chembox talk)
Line 1: Line 1:
! colspan=2 style="background:#f8eaba; text-align:center;" {{!}}<!--
+
! colspan=2 style="background: #f8eaba; text-align :center;" {{!}}<!--
 
-->{{trim|1={{{header|}}}{{{ref|}}}}}<!--
 
-->{{trim|1={{{header|}}}{{{ref|}}}}}<!--
-->{{trim|1={{main other|1={{{addcats|}}}}}}}<!--
+
-->{{trim|1={{main other|1={{{addcats|}}} |2={{template other |1= {{#if:{{{addTESTdata|}}}|<br/><span style="background: #bad7f8;">{{{addTESTdata|}}}</span><!-- see note --> }} |2=no_addTESTdata }} }}}}<!--
 
-->{{trim|1={{{templatepar|}}}}}
 
-->{{trim|1={{{templatepar|}}}}}
  
 
|-<!--
 
|-<!--
 +
* Note on {{{addTESTdata|}}} input: better not populate maintenance categories. These should not be polluted with testpages. Instead, add the colon like [[:Category:...]].
  
 
--><noinclude>{{documentation}}</noinclude>
 
--><noinclude>{{documentation}}</noinclude>

Revision as of 09:39, 17 November 2016

! colspan=2 style="background: #f8eaba; text-align :center;" |

|-

Template documentation[view] [edit] [history] [purge]

Usage

|header=Identifiers (header text)

|addcats= allows adding a maintenance category. Usually checks a condition. Will only work in mainspace.

|addcats = {{#if:{{{OldParameter|}}}|[[Category:Bad parameter used]]}}