Difference between revisions of "Template:Category main section"

From LIMSWiki
Jump to: navigation, search
(Created template to help with Categories.)
 
m (Protected "Template:Category main section" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{Rellink|extraclasses=relarticle mainarticle|The main section for this [[Help:Categories|category]] is {{#ifeq:{{{article|}}}|no|on the page|in the article}} [[{{{1}}}]], in the section titled [[{{{1}}}#{{{2}}}|{{{2}}}]].}}<noinclude>
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
  
==Usage==
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
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.
+
{{Documentation}}
 
+
[[Category:Category namespace templates|{{PAGENAME}}]]
:<code><nowiki>{{Category main section|article|section}}</nowiki></code>
+
</noinclude>
 
+
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==
+
*{{tl|Cat main}}
+
*{{tl|Cat more}}
+
*{{tl|Cat exp}}
+
*[[Template:Hatnote templates documentation|Other uses templates documentation]] about hatnotes
+
 
+
<includeonly>
+
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
+
[[Category:Category namespace templates]]
+
 
+
</includeonly>
+

Latest revision as of 00:00, 31 May 2013

[edit] [purge] Template documentation

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