Template:Main: Difference between revisions
sims>K6ka No edit summary |
m (6 revisions imported: Import from https://sims.wikia.com) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
|{{#if:{{{4|}}}|, |, and }}[[{{{3}}}]]}}{{#if:{{{4|}}} |
|{{#if:{{{4|}}}|, |, and }}[[{{{3}}}]]}}{{#if:{{{4|}}} |
||
|{{#if:{{{5|}}}|, |, and }}[[{{{4}}}]]}}{{#if:{{{5|}}} |
|{{#if:{{{5|}}}|, |, and }}[[{{{4}}}]]}}{{#if:{{{5|}}} |
||
|, and [[{{{5}}}]]}}''{{#if:{{{6| }}}|  (too many parameters in {{[[Template:main|main]]}})}}</div> |
|, and [[{{{5}}}]]}}''{{#if:{{{6| }}}|<strong class="error">  (too many parameters in {{[[Template:main|main]]}})</strong>}}</div> |
||
</noinclude> |
<noinclude>{{documentation}}</noinclude> |
Latest revision as of 17:59, 23 February 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 |