Template:Main/doc

From K6ka's Wiki
Jump to navigation Jump to search

Description[edit]

This template is used at the start of a section to link to the main article on that subject.

Syntax[edit]

Type {{main|page name}} anywhere on the page. For example, {{main|Help:Contents}} gives...

Main article: Help:Contents


You can add multiple pages, up to a maximum of five. For example, {{Main|One|Two|Three|Four|Five}} gives...

Main articles: One, Two, Three, Four, and Five


Credits[edit]

This template's code came from Template:Main on The Sims Wiki.

TemplateData[edit]

This is the TemplateData documentation for this template used by the VisualEditor and other tools.

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".

Template parameters

ParameterDescriptionTypeStatus
Page 11

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.

Stringoptional
Page 22

The name of the second page you want to link to.

Stringoptional
Page 33

The name of the third page you want to link to.

Stringoptional
Page 44

The name of the fourth page you want to link to.

Stringoptional
Page 55

The name of the fifth page you want to link to.

Stringoptional
Page 66

The name of the sixth page you want to link to.

Stringoptional