Template:Main/doc: Difference between revisions
m (2 revisions imported: Import from https://sims.wikia.com) |
No edit summary |
||
Line 13: | Line 13: | ||
<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> |
||
==TemplateData== |
|||
{{TemplateData header}} |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "Page 1", |
|||
"description": "The name of the first page that you want to link to. If this is not specified, the current page name (without the namespace prefix) is used instead.", |
|||
"type": "string" |
|||
}, |
|||
"2": { |
|||
"label": "Page 2", |
|||
"description": "The name of the second page you want to link to.", |
|||
"type": "string" |
|||
}, |
|||
"3": { |
|||
"label": "Page 3", |
|||
"description": "The name of the third page you want to link to.", |
|||
"type": "string" |
|||
}, |
|||
"4": { |
|||
"label": "Page 4", |
|||
"description": "The name of the fourth page you want to link to.", |
|||
"type": "string" |
|||
}, |
|||
"5": { |
|||
"label": "Page 5", |
|||
"description": "The name of the fifth page you want to link to.", |
|||
"type": "string" |
|||
}, |
|||
"6": { |
|||
"label": "Page 6", |
|||
"description": "The name of the sixth page you want to link to.", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"description": "This template is used after the heading of a section, to link to a sub-article (or sub-articles) that is entirely about the topic of the section. The template will display in italics: \"Main article: Article 1, Article 2 and Article 3\".", |
|||
"paramOrder": [ |
|||
"1", |
|||
"2", |
|||
"3", |
|||
"4", |
|||
"5", |
|||
"6" |
|||
] |
|||
} |
|||
</templatedata> |
Latest revision as of 21:11, 19 March 2019
Description[edit source]
This template is used at the start of a section to link to the main article on that subject.
Syntax[edit source]
Type {{main|page name}}
anywhere on the page. For example, {{main|Help:Contents}}
gives...
You can add multiple pages, up to a maximum of five. For example, {{Main|One|Two|Three|Four|Five}}
gives...
TemplateData[edit source]
TemplateData for Main
This template is used after the heading of a section, to link to a sub-article (or sub-articles) that is entirely about the topic of the section. The template will display in italics: "Main article: Article 1, Article 2 and Article 3".
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page 1 | 1 | The name of the first page that you want to link to. If this is not specified, the current page name (without the namespace prefix) is used instead. | String | optional |
Page 2 | 2 | The name of the second page you want to link to. | String | optional |
Page 3 | 3 | The name of the third page you want to link to. | String | optional |
Page 4 | 4 | The name of the fourth page you want to link to. | String | optional |
Page 5 | 5 | The name of the fifth page you want to link to. | String | optional |
Page 6 | 6 | The name of the sixth page you want to link to. | String | optional |