Template:Main/doc

When an article is large, it is often written in summary style. This template is used after the heading of the summary, to link to the subtopic article that has been summarized.

This template should not be used in lead sections. A lead section is always a summary of its own article, not any other; as such, the only appropriate target for a Main link in the lead section would be the article itself, which is not useful.

Usage

 * Basic usage: page
 * All parameters: | page1 | page2 | page3 | ... | l1 = label1 | l2 = label2 | l3 = label3 | ... | selfref = yes

Parameters

 * ,,  , ... - the pages to link to. If no page names are specified, the current page name is used instead (without the namespace prefix). Categories and files are automatically escaped with the colon trick, and links to sections are automatically formatted as page § section, rather than the MediaWiki default of page#section.
 * ,,  , ...; optional labels for each of the pages to link to (this is for articles where a piped link would be used). Note that the extra parameters use a lower case 'L', for example,  , not  . ( ,  ,  , ... for this template does not work)
 * - if set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references. This is only necessary in articles and other content (e.g. templates) that will appear in articles, and need not be added for uses of this template on  namespace pages.

Errors
If the name of the first page that you want to link to is not specified, the current page name (with no namespace prefix) is used instead.

No errors can be displayed due to the illegal usage of parameters or other usages (i.e. the first parameter can be omitted, other parameters can be used even if the first one is empty (and automatically filled with the current page name (with no namespace prefix)), equals sign can be used as one of the parameters, and template can be used by direct call to the module (using "#invoke")). This is not case for See also, for example.