Template:Main/Documentation

From War Thunder Wiki
< Template:Main
Revision as of 23:13, 22 February 2019 by Flame2512 (talk | contribs) (Added template data so template can (hopefully, if I did this right) be used directly from the visual editor)

Jump to: navigation, search

This template is used for formatting links to more-detailed articles.

{{main
  |Article 1
}}

You can add up to five links, if required.

{{main
  |Article 1
  |Article 2
  |Article 3
}}

By default, the text of the link is set as the name of the page to which it directs. If needed, you can change the text the following way:

{{main
  |Article 1
  |Article 2
  |l1=Displayed text of link 1
  |l2=Displayed text of link 2
}}

Examples

Code Result
{{Main|Aviation}}
Main article: Aviation
{{Main|Aviation|Ground vehicles|Fleet}}
Main articles: Aviation, Ground vehicles, Fleet
{{Main|Aviation|Ground vehicles|Fleet|l1=Avia|l2=Ground|l3=Navy}}
Main articles: Avia, Ground, Navy

This template is used for formatting links to more-detailed articles. It creates the a line of text stating: "Main Article:" or "Main Articles:" followed by between 1 and 5 articles to link to.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Page 11

The name of the first page to link to

Default
empty
Example
empty
Auto value
empty
Pagerequired
Page 22

The name of the second page to link to

Default
empty
Example
empty
Auto value
empty
Pageoptional
Page 33

The name of the third page to link to

Default
empty
Example
empty
Auto value
empty
Pageoptional
Page 44

The name of the fourth page to link to

Default
empty
Example
empty
Auto value
empty
Pageoptional
Page 55

The name of the fifth page to link to

Default
empty
Example
empty
Auto value
empty
Pageoptional
Page 1 namel1

A name to display instead of the actual name of Page 1

Default
empty
Example
empty
Auto value
empty
Stringoptional
Page 2 namel2

A name to display instead of the actual name of Page 2

Default
empty
Example
empty
Auto value
empty
Stringoptional
Page 3 namel3

A name to display instead of the actual name of Page 3

Default
empty
Example
empty
Auto value
empty
Stringoptional
Page 4 Namel4

A name to display instead of the actual name of Page 4

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Page 5 namel5

A name to display instead of the actual name of Page 5

Default
empty
Example
empty
Auto value
empty
Stringoptional