Template:Main/doc: Difference between revisions

No edit summary
Added TemplateData
Line 1: Line 1:
;Description
==Description==
:This template is used at the start of a section to link to the main article on that subject.
:This template is used at the start of a section to link to the main article on that subject.


;Usage
==Usage==
:Place {{t|Main}} followed by as many referral pages as needed.
:Place {{t|Main}} followed by as many referral pages as needed.


;Syntax
==Syntax==
:Type <code>{{t|Main|page1|page2|…|page10}}</code>
Type <code>{{t|Main|page1|page2|…|page10}}</code><br>
:Or if you want to add labels to pages, type <code>{{t|Main|page1|<nowiki>l1=label1</nowiki>|page2|<nowiki>l2=label2</nowiki>|…|page10|<nowiki>l10=label10</nowiki>}}</code>
Or if you want to add labels to pages, type <code>{{t|Main|page1|<nowiki>l1=label1</nowiki>|page2|<nowiki>l2=label2</nowiki>|…|page10|<nowiki>l10=label10</nowiki>}}</code>


;Sample outputs
==Sample outputs==
;Without label
===Without label===
:<code><nowiki>{{main|Neptune}}</nowiki></code> gives...
:<code><nowiki>{{main|Neptune}}</nowiki></code> gives...
:{{main|Neptune}}
:{{main|Neptune}}
;With label
===With label===
:<code><nowiki>{{main|Hyperdimension Neptunia mk2: Sounds of Gamindustri|l1=Hyperdimension Neptunia mk2 OST}}</nowiki></code> gives...
:<code><nowiki>{{main|Hyperdimension Neptunia mk2: Sounds of Gamindustri|l1=Hyperdimension Neptunia mk2 OST}}</nowiki></code> gives...
:{{main|Hyperdimension Neptunia mk2: Sounds of Gamindustri|l1=Hyperdimension Neptunia mk2 OST}}
:{{main|Hyperdimension Neptunia mk2: Sounds of Gamindustri|l1=Hyperdimension Neptunia mk2 OST}}
==TemplateData==
<templatedata>
{
"params": {
"1": {
"label": "Page 1",
"description": "The name of the first page that you want to link to.",
"example": "Neptune",
"type": "wiki-page-name",
"required": true
},
"2": {
"label": "Page 2",
"description": "The name of the second page that you want to link to.",
"type": "wiki-page-name"
},
"3": {
"label": "Page 3",
"description": "The name of the third page that you want to link to.",
"type": "wiki-page-name"
},
"4": {
"label": "Page 4",
"description": "The name of the fourth page that you want to link to.",
"type": "wiki-page-name"
},
"l1": {
"label": "Label 1",
"description": "What the first linked article is to be displayed as. ",
"type": "string"
},
"l2": {
"label": "Label 2",
"description": "What the second linked article is to be displayed as. ",
"type": "string"
},
"l3": {
"label": "Label 3",
"description": "What the third linked article is to be displayed as. ",
"type": "string"
},
"l4": {
"label": "Label 4",
"description": "What the second linked article is to be displayed as. ",
"type": "string"
}
},
"description": "Used at the start of a section to link to the main article on that subject.",
"format": "inline"
}
</templatedata>
==See also==
*{{t|About}}
*{{t|For}}
*{{t|See also}}
*[[w:c:templates:Template:Hatnote|Template:Hatnote]] on Templates Wiki
*[[Wikipedia:Template:See also|Template:See also]] on Wikipedia


<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>