Template:Main/doc: Difference between revisions

Template page
m (Reverted edits by 2A00:23C8:8232:B201:E178:BD9C:F176:56AE (talk) to last version by ENeRZet)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
<templatedata>
<templatedata>
{
{
"description": {
"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.",
"en": "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.",
"cs": "Tato šablona se používá k zobrazení poznámky, která uživatele nasměruje na hlavní článek o tématu. Měla by být použita v horní části sekce, obvykle přímo pod nadpisem sekce.",
"fr": "Ce modèle est utilisé pour afficher une note qui redirige les utilisateurs vers l'article principal concernant un sujet. Ceci doit être utilisé au début d'une section, habituellement directement en dessous du titre de la section.",
"tr": "Bu şablon, kullanıcıları bir konuyla ilgili ana maddeye yönlendiren bir notu görüntülemek için kullanılır. Bu, bir bölümün en üstünde, genellikle doğrudan bir bölüm başlığının altında kullanılmalıdır."
},
"format": "inline",
"format": "inline",
"params": {
"params": {
"1": {
"1": {
"label": {
"label": "Page 1",
"en": "Page 1",
"description": "Page name of related article. It includes Special:MyLanguage prefix.",
"cs": "Stránka 1",
"tr": "Sayfa 1 ",
"fr": "Page 1"
},
"description": {
"en": "Page name of related article. It includes Special:MyLanguage prefix.",
"cs": "Název stránky souvisejícího článku. Obsahuje předponu Special:MyLanguage.",
"tr": "İlgili maddenin sayfa adı.",
"fr": "Nom de page du premier article associé"
},
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true
"required": true
},
},
"2": {
"2": {
"label": {
"label": "Page 2",
"en": "Page 2",
"type": "wiki-page-name"
"cs": "Stránka 2",
"tr": "Sayfa 2",
"fr": "Page 2"
},
"type": "wiki-page-name",
"description": {
"fr": "Nom de page du second article associé",
"cs": "Název druhé stránky přidruženého článku"
}
},
},
"3": {
"3": {
"label": {
"label": "Page 3",
"en": "Page 3",
"type": "wiki-page-name"
"cs": "Stránka 3",
"tr": "Sayfa 3",
"fr": "Page 3"
},
"type": "wiki-page-name",
"description": {
"fr": "Nom de page du troisième article associé"
}
},
},
"l1": {
"l1": {
"label": {
"label": "Label 1",
"en": "Label 1",
"description": "Custom label for the link to Page 1.",
"cs": "Název 1",
"tr": "Etiket 1",
"fr": "Label 1"
},
"description": {
"en": "Custom label for the link to Page 1.",
"cs": "Vlastní štítek pro odkaz na stránku 1.",
"tr": "Sayfa 1 bağlantısı için özel etiket.",
"fr": "Etiquette personnalisée pour le lien vers Page 1."
},
"type": "string",
"type": "string",
"default": {
"default": "Defaults to the name of Page 1."
"en": "Defaults to the name of Page 1.",
"cs": "Výchozí pro název stránky 1.",
"tr": "Sayfa 1 adının varsayılanlarıdır.",
"fr": "Valeur de Page 1."
}
},
},
"l2": {
"l2": {
"label": {
"label": "Label 2",
"en": "Label 2",
"cs": "Název 2",
"tr": "Etiket 2",
"fr": "Label 2"
},
"type": "string",
"type": "string",
"description": {
"default": "Defaults to the name of Page 2."
"fr": "Etiquette personnalisée pour le lien vers Page 2.",
"cs": "Vlastní štítek pro odkaz na stránku 2."
},
"default": {
"en": "Defaults to the name of Page 2.",
"cs": "Výchozí pro název stránky 2.",
"fr": "Valeur de Page 2."
}
},
},
"l3": {
"l3": {
"label": {
"label": "Label 3",
"en": "Label 3",
"cs": "Název 3",
"tr": "Etiket 3",
"fr": "Label 3"
},
"type": "string",
"type": "string",
"description": {
"default": "Defaults to the name of Page 3."
"fr": "Etiquette personnalisée pour le lien vers Page 3.",
"cs": "Vlastní štítek pro odkaz na stránku 3."
},
"default": {
"en": "Defaults to the name of Page 3.",
"cs": "Výchozí pro název stránky 3.",
"fr": "Valeur de Page 3."
}
}
}
},
},
Line 123: Line 50:
<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Templates{{#translation:}}]]
[[Category:Templates]]
}}</includeonly>
}}</includeonly>

Latest revision as of 21: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