Difference between revisions of "Template:Main"
 (Undo revision 1883095 by 160.96.214.143 (talk))  | 
				|||
| Line 15: | Line 15: | ||
and</translate> [[Special:MyLanguage/{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|  <translate><!--T:14-->  | and</translate> [[Special:MyLanguage/{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|  <translate><!--T:14-->  | ||
(too many parameters in <tvar|code1>{{</>[[<tvar|link>Template:main</>|main]]<tvar|code2>}}</>)</translate>}}</div><noinclude>  | (too many parameters in <tvar|code1>{{</>[[<tvar|link>Template:main</>|main]]<tvar|code2>}}</>)</translate>}}</div><noinclude>  | ||
| + | |||
| + | <templatedata>  | ||
| + | {  | ||
| + | 	"params": {  | ||
| + | 		"1": {  | ||
| + | 			"label": "Page 1",  | ||
| + | 			"description": "Page name of related article",  | ||
| + | 			"type": "wiki-page-name",  | ||
| + | 			"required": true  | ||
| + | 		},  | ||
| + | 		"2": {  | ||
| + | 			"label": "Page 2",  | ||
| + | 			"type": "wiki-page-name"  | ||
| + | 		},  | ||
| + | 		"3": {  | ||
| + | 			"label": "Page 3",  | ||
| + | 			"type": "wiki-page-name"  | ||
| + | 		},  | ||
| + | 		"l1": {  | ||
| + | 			"label": "Label 1",  | ||
| + | 			"description": "Custom label for the link to Page 1",  | ||
| + | 			"type": "string",  | ||
| + | 			"default": "Defaults to the name of Page 1"  | ||
| + | 		},  | ||
| + | 		"l2": {  | ||
| + | 			"label": "Label 2",  | ||
| + | 			"type": "string"  | ||
| + | 		},  | ||
| + | 		"l3": {  | ||
| + | 			"label": "Label 3",  | ||
| + | 			"type": "string"  | ||
| + | 		}  | ||
| + | 	},  | ||
| + | 	"description": "This template is used to display a note directing users to the main article about a subject. This should be used at the top of a section, usually directly below a section heading.",  | ||
| + | 	"paramOrder": [  | ||
| + | 		"1",  | ||
| + | 		"l1",  | ||
| + | 		"2",  | ||
| + | 		"l2",  | ||
| + | 		"3",  | ||
| + | 		"l3"  | ||
| + | 	],  | ||
| + | 	"format": "inline"  | ||
| + | }  | ||
| + | </templatedata>  | ||
| + | |||
<translate>  | <translate>  | ||
| − | ==   | + | == Example == <!--T:9-->  | 
</translate>  | </translate>  | ||
<pre>  | <pre>  | ||
Revision as of 04:03, 17 August 2016
<languages />
The main {{<tvar|ifeq1>#ifeq:|</>|article|page}}{{<tvar|if1>#if:</>|s}} for this [[<tvar|cats-help>Special:MyLanguage/Help:Categories</>|category]] {{<tvar|if2>#if:</>|are|is}}</translate>|<translate> Main {{<tvar|ifeq1>#ifeq:|</>|article|page}}{{<tvar|if1>#if:</>|s}}:</translate>}} Main{{#if:
|{{#if:|, | and }}[[Special:MyLanguage/{{{2}}}|{{{2}}}]]}}{{#if:
|{{#if:|, |, and }}[[Special:MyLanguage/{{{3}}}|{{{3}}}]]}}{{#if:
|{{#if:|, |, and }}[[Special:MyLanguage/{{{4}}}|{{{4}}}]]}}{{#if:
|{{#if:|, |, and }}[[Special:MyLanguage/{{{5}}}|{{{5}}}]]}}{{#if:
|{{#if:|, |, and }}[[Special:MyLanguage/{{{6}}}|{{{6}}}]]}}{{#if:
|{{#if:|, |, and }}[[Special:MyLanguage/{{{7}}}|{{{7}}}]]}}{{#if:
|{{#if:|, |, and }}[[Special:MyLanguage/{{{8}}}|{{{8}}}]]}}{{#if:
|{{#if:|, |, and }}[[Special:MyLanguage/{{{9}}}|{{{9}}}]]}}{{#if:
|, <translate>
and</translate> [[Special:MyLanguage/{{{10}}}|{{{10}}}]]}}{{#if: | <translate>
(too many parameters in <tvar|code1>{{</>[[<tvar|link>Template:main</>|main]]<tvar|code2>}}</>)</translate>}}<templatedata> { "params": { "1": { "label": "Page 1", "description": "Page name of related article", "type": "wiki-page-name", "required": true }, "2": { "label": "Page 2", "type": "wiki-page-name" }, "3": { "label": "Page 3", "type": "wiki-page-name" }, "l1": { "label": "Label 1", "description": "Custom label for the link to Page 1", "type": "string", "default": "Defaults to the name of Page 1" }, "l2": { "label": "Label 2", "type": "string" }, "l3": { "label": "Label 3", "type": "string" } }, "description": "This template is used to display a note directing users to the main article about a subject. This should be used at the top of a section, usually directly below a section heading.", "paramOrder": [ "1", "l1", "2", "l2", "3", "l3" ], "format": "inline" } </templatedata>
<translate>
Example
</translate>
<translate>
<!--T:10-->
{{TNT|Main|Article 1|Article 2|Article Something#3}}
</translate>
<translate> Template:TNT </translate> [[Category:TemplatesTemplate:Translation]]