Difference between revisions of "Template:Category main section"

From blackwiki
Jump to navigation Jump to search
imported>Mclay1
m (moved Template:Cat main section to Template:Category main section: avoid Wikipedia abbreviations in page names which may confuse new users)
imported>Mclay1
(extra parameter to match {{Cat main}})
Line 1: Line 1:
{{Rellink|extraclasses=relarticle mainarticle|The main section for this [[Wikipedia:Categorization|category]] can be found in the article [[{{{1}}}]], in the section titled [[{{{1}}}#{{{2}}}|{{{2}}}]].}}<noinclude>
+
{{Rellink|extraclasses=relarticle mainarticle|The main section for this [[Wikipedia:Categorization|category]] is in the {{#ifeq|article|no|page|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}}</noinclude>
+
{{Documentation}}
 +
</noinclude>

Revision as of 14:42, 25 January 2011

Template:Rellink

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 Template:Rellink

See also