Difference between revisions of "Template:Category main section"

From blackwiki
Jump to navigation Jump to search
imported>Mclay1
(wording)
imported>Steel1943
(Template name update)
 
Line 1: Line 1:
{{Rellink|extraclasses=relarticle mainarticle|The main section for this [[Wikipedia:Categorization|category]] is {{#ifeq:{{{article|}}}|no|on the page|in the article}} [[{{{1}}}]], in the section titled [[{{{1}}}#{{{2}}}|{{{2}}}]].}}<noinclude>
+
{{Hatnote|extraclasses=relarticle mainarticle|The main section for this [[Wikipedia:Categorization|category]] is {{#ifeq:{{{article|}}}|no|on the page|in the article}} [[{{{1}}}]], in the section titled [[{{{1}}}#{{{2}}}|{{{2}}}]].}}<noinclude>
  
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 02:58, 28 May 2014

Template documentation[view] [edit] [history] [purge]

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