Template:Main/doc: Difference between revisions

Template page
(No translate)
No edit summary
 
Line 15: Line 15:
"2": {
"2": {
"label": "Page 2",
"label": "Page 2",
"type": "wiki-page-name",
"type": "wiki-page-name"
},
},
"3": {
"3": {
"label": "Page 3",
"label": "Page 3",
"type": "wiki-page-name",
"type": "wiki-page-name"
},
},
"l1": {
"l1": {
"label": "en": "Label 1",
"label": "Label 1",
"description": "Custom label for the link to Page 1.",
"description": "Custom label for the link to Page 1.",
"type": "string",
"type": "string",
"default": "en": "Defaults to the name of Page 1.",
"default": "Defaults to the name of Page 1."
},
},
"l2": {
"l2": {
"label": "Label 2",
"label": "Label 2",
"type": "string",
"type": "string",
"default": Defaults to the name of Page 2.",
"default": "Defaults to the name of Page 2."
},
},
"l3": {
"l3": {
"label": "Label 3",
"label": "Label 3",
"type": "string",
"type": "string",
"default": "Defaults to the name of Page 3.",
"default": "Defaults to the name of Page 3."
}
}
},
},

Latest revision as of 20:32, 13 July 2023

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Main

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page 11

Page name of related article. It includes Special:MyLanguage prefix.

Page namerequired
Label 1l1

Custom label for the link to Page 1.

Default
Defaults to the name of Page 1.
Stringoptional
Page 22

no description

Page nameoptional
Label 2l2

no description

Default
Defaults to the name of Page 2.
Stringoptional
Page 33

no description

Page nameoptional
Label 3l3

no description

Default
Defaults to the name of Page 3.
Stringoptional