Template:Main/doc

Description
This template is to be used at the top of a section or paragraph that summarizes a topic that is the subject of another article(s). Provide the link(s) to said article(s) in this template.

Do not use this template as a substitute for inline links. Do not use it in the lead section of an article. Leads sections are the summary of the rest of their own article, and as such the link used in this template would be of the article itself, which would not be helpful.

Large parts of this documentation are borrowed from Developer Fandom's Hatnote documentation and Wikipedia's Main documentation.

Usage
Basic usage:

All parameters:

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. (Note: These parameters also work positionally, so long as no  /  parameters are inserted in between links.
 * ,,  , ... or ,  ,  , ... – 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.
 * – if set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references.

Template data
This template data is taken from Wikipedia's Main template's documentation. {	"params": { "1": {			"label": "Link 1", "description": "The name of the first page that you want to link to. If this is not specified, the current page name (with no namespace prefix) is used instead. ", "type": "wiki-page-name", "required": true },		"2": {			"label": "Link 2", "description": "The name of the second page that you want to link to.", "type": "wiki-page-name", "suggested": true },		"3": {			"label": "Link 3", "description": "The name of the third page that you want to link to. More pages can be added using the parameters \"4\", \"5\", etc.", "type": "wiki-page-name" },		"l1": { "aliases": [ "label1" ],			"label": "Link 1 label", "description": "What the first linked page is to be displayed as.", "type": "line", "suggested": true },		"l2": { "aliases": [ "label2" ],			"label": "Link 2 label", "description": "What the second linked page is to be displayed as.", "type": "line" },		"l3": { "aliases": [ "label3" ],			"label": "Link 3 label", "description": "What the third linked page is to be displayed as. Other labels can be added by using increasing numbers (starting with \"l4\" for page 4) as parameter names.", "type": "line" },		"selfref": { "label": "Self-reference?", "description": "Set to \"yes\" if the template is a self-reference to this Wikia that would not make sense on mirrors or forks of the Wikia.", "example": "yes, no", "type": "boolean" }	},	"description": "This template is used after the heading of a section, to link to one or more sub-articles that are entirely about the topic of the section. Indented text will display: \"Main articles: Article 1, Article 2, and Article 3\". Links will be appropriately formatted; see documentation page for more.", "format": "inline" }

Examples

 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr;

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 the case for see also, for example.