Difference between revisions of "Template:Category main section/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mclay1
m (clean-up)
imported>Mclay1
(→‎Usage: update; wording)
Line 7: Line 7:
 
:<code><nowiki>{{Category main section|article|section}}</nowiki></code>
 
:<code><nowiki>{{Category main section|article|section}}</nowiki></code>
  
If the main page for the category is not an article, "article" in the produced sentence can be changed to "page".
+
The parameter <code>|article=no</code> changes "in the article" to "on the page" if the main page for the category is not an article.
  
 
:<code><nowiki>{{Category main section|article|section|article=no}}</nowiki></code>
 
:<code><nowiki>{{Category main section|article|section|article=no}}</nowiki></code>

Revision as of 16:30, 28 January 2011

Usage

This template is for use on category pages to refer to the primary section within an article associated with this category, which most of the time describes the entire set containing the category.

{{Category main section|article|section}}

The parameter |article=no changes "in the article" to "on the page" if the main page for the category is not an article.

{{Category main section|article|section|article=no}}

Example

Using {{Category main section|Mathematics|History}} produces the following result

See also