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

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(update link)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(13 intermediate revisions by 6 users not shown)
Line 3: Line 3:
  
 
==Usage==
 
==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. The sentence shown would be created by <code>{{tlx|cat main section|Example&nbsp;article|Example&nbsp;section}}</code>.
+
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>{{Category main section|article|section}}</nowiki></code>
 +
 
 +
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>
 +
 
 +
==Example==
 +
Using <code><nowiki>{{Category main section|Mathematics|History}}</nowiki></code> produces the following result
 +
{{Category main section|Mathematics|History}}
  
 
==See also==
 
==See also==
*{{tl|Catmore}}
+
{{Category hatnote templates}}
*{{tl|Catmore1}}
 
*{{tl|Catmore2}}
 
*{{tl|Catmoremulti}}
 
*{{tl|catmoretext}}
 
*{{tl|catexp}}
 
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- 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:Hatnote templates for category pages]]
[[Category:Category namespace templates|{{PAGENAME}}]]
+
 
</includeonly>
+
}}</includeonly>

Latest revision as of 00:58, 24 April 2020

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