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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 11: Line 11:
 
</pre>
 
</pre>
  
==Testing a category==
+
<includeonly>{{sandbox other||
:{{para|addcats_TEST}} adds the category when ''not'' in mainspace (through the second parameter in {{tl|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 <code><nowiki>[[:Category:..]]</nowiki></code>.
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
 
[[Category:Chembox templates|{{PAGENAME}}]]
 
[[Category:Chembox templates|{{PAGENAME}}]]
  
 
}}</includeonly>
 
}}</includeonly>

Revision as of 13:45, 19 November 2015


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