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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
m (DePiep moved page Template:Chembox header/doc to Template:Chembox headerbar/doc: follow parent to new bar)
imported>DePiep
Line 4: Line 4:
 
== Usage ==
 
== Usage ==
  
 +
==Testing a category==
 +
:{{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||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Chembox templates|{{PAGENAME}}]]
 
[[Category:Chembox templates|{{PAGENAME}}]]
 
[[ar:قالب:Chembox header]]
 
[[br:Patrom:Boestkim penn]]
 
[[hr:Predložak:Chembox header]]
 
[[ml:ഫലകം:Chembox header]]
 
[[nl:Sjabloon:Chembox header]]
 
[[sl:Predloga:Začetek kemijskega infopolja]]
 
[[zh:Template:Chembox header]]
 
  
 
}}</includeonly>
 
}}</includeonly>

Revision as of 08:51, 5 June 2015

|header=Identifiers (header text)

Usage

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