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

From blackwiki
Jump to navigation Jump to search
imported>Mclay1
(→‎Usage: update)
imported>Mclay1
m (clean-up)
Line 5: Line 5:
 
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.
 
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.
  
:<code><nowiki>{{Cat 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".
 
If the main page for the category is not an article, "article" in the produced sentence can be changed to "page".
  
:<code><nowiki>{{Cat main section|article|section|article=no}}</nowiki></code>
+
:<code><nowiki>{{Category main section|article|section|article=no}}</nowiki></code>
  
 
==Example==
 
==Example==
Using <code><nowiki>{{Cat main section|Mathematics|History}}</nowiki></code> produces the following result
+
Using <code><nowiki>{{Category main section|Mathematics|History}}</nowiki></code> produces the following result
{{Cat main section|Mathematics|History}}
+
{{Category main section|Mathematics|History}}
  
 
==See also==
 
==See also==
Line 19: Line 19:
 
*{{tl|Cat more}}
 
*{{tl|Cat more}}
 
*{{tl|Cat exp}}
 
*{{tl|Cat exp}}
* [[T:OU|Other uses templates documentation]] about hatnotes
+
*[[T:OU|Other uses templates documentation]] about hatnotes
  
 
<includeonly>
 
<includeonly>
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
[[Category:Cross-reference templates|{{PAGENAME}}]]
+
[[Category:Category namespace templates]]
[[Category:Category namespace templates|{{PAGENAME}}]]
+
[[Category:Cross-reference templates]]
 
[[Category:Hatnote templates]]
 
[[Category:Hatnote templates]]
 
 
</includeonly>
 
</includeonly>

Revision as of 16:28, 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}}

If the main page for the category is not an article, "article" in the produced sentence can be changed to "page".

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

Example

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

See also