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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 +
 +
 +
== Usage ==
 
{{para|header|Identifiers}} (header text)
 
{{para|header|Identifiers}} (header text)
== Usage ==
+
 
 +
{{para|addcats}} allows adding a maintenance category. Usually checks a condition. Will only work in mainspace.
 +
<pre>
 +
|addcats = <nowiki>{{#if:{{{OldParameter|}}}|[[Category:Bad parameter used]]}}</nowiki>
 +
</pre>
  
 
==Testing a category==
 
==Testing a category==

Revision as of 08:56, 5 June 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]]}}

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:..]].