Template:Chembox headerbar/doc
< Template:Chembox headerbar
Jump to navigation
Jump to search
Revision as of 08:56, 5 June 2015 by imported>DePiep
| 40px | This is a documentation subpage for Template:Chembox headerbar. It contains usage information, categories and other content that is not part of the original template page. |
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]]}}
Testing a category
|addcats_TEST=adds the category when not in mainspace (through the second parameter in {{main other}}). This is to test categorising in development (sandboxing). Such testpages (like in templatespace) would pollute formal maint categories, which is undesired. Solution: either use a dedicated spoiled category, or add the colon-trick[[:Category:..]].