Template:Main article/doc

{	"params": { "1": {			"label": "Page name", "aliases": [ "page_name", "page1", "page", "page_name1", "page1_name" ],			"description": "The page to link to", "type": "wiki-page-name", "required": true },		"l1": { "type": "string", "label": "Title 1", "description": "What the first linked page is to be displayed as.", "aliases": [ "label1", "label", "name", "title", "title1", "name1" ]		},		"2": {			"label": "Page 2 name", "aliases": [ "page2_name", "page2", "page_name2", "page2_name" ],			"description": "The second page to link to", "type": "wiki-page-name", "required": false },		"l2": { "type": "string", "label": "Title 2", "description": "What the 2nd linked page is to be displayed as.", "aliases": [ "label2", "title2", "name2" ]		},		"3": {			"label": "Page 3 name", "aliases": [ "page3_name", "page3", "page_name3", "page3_name" ],			"description": "The third page to link to", "type": "wiki-page-name", "required": false },		"l3": { "type": "string", "label": "Title 3", "description": "What the 3rd linked page is to be displayed as.", "aliases": [ "label3", "title3", "name3" ]		},		"4": {			"label": "Page 4 name", "aliases": [ "page4_name", "page4", "page_name4", "page4_name" ],			"description": "The fouth page to link to", "type": "wiki-page-name", "required": false },		"l4": { "type": "string", "label": "Title 4", "description": "What the 4th linked page is to be displayed as.", "aliases": [ "label4", "title4", "name4" ]		},		"selfref": { "type": "boolean", "label": "Add selfref css class", "description": "Set to \"yes\" if the template is a self-reference to MEpedia using a class called selfref." }	},	"paramOrder": [ "1",		"2",		"3",		"4",		"l1", "l2", "l3", "l4", "selfref" ],	"description": "This template links a section of one page to the main page describing the section topic. The template will display, in italics, \"Main article: Page 1, Page 2 and Page 3\"" }

Usage

 * Basic usage:


 * All parameters:


 * All parameters:

Parameters
Categories and files are automatically escaped with the colon trick. Links to sections are automatically formatted as page § section, rather than the MediaWiki default of page#section. This is used to denote self-references so is not set on MEpedia.
 * ,,  , ... – the pages to link to. If no page names are specified, the current page name is used instead.
 * ,,  , ... 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".

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.