Jump to content

Template:Main/doc: Difference between revisions

From Neptunia Wiki
No edit summary
Line 74: Line 74:
*{{t|See also}}
*{{t|See also}}
*[[w:c:templates:Template:Hatnote|Template:Hatnote]] on Templates Wiki
*[[w:c:templates:Template:Hatnote|Template:Hatnote]] on Templates Wiki
*[[Wikipedia:Template:See also|Template:See also]] on Wikipedia
*[[Wikipedia:Template:Main|Template:Main]] 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>

Revision as of 23:15, 9 May 2023

Description

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

Usage

Place {{Main}} followed by as many referral pages as needed.

Syntax

Type {{Main|<page1>|<page2>|<…>|<page10>}}
Or if you want to add labels to pages, type {{Main|<page1>|<l1=label1>|<page2>|<l2=label2>|<…>|<page10>|<l10=label10>}}

Sample outputs

Without label

{{main|Neptune}} gives...

With label

{{main|Hyperdimension Neptunia mk2: Sounds of Gamindustri|l1=Hyperdimension Neptunia mk2 OST}} gives...

TemplateData

Used at the start of a section to link to the main article on that subject.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page 11

The name of the first page that you want to link to.

Example
Neptune
Page namerequired
Page 22

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

Page nameoptional
Page 33

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

Page nameoptional
Page 44

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

Page nameoptional
Label 1l1

What the first linked article is to be displayed as.

Stringoptional
Label 2l2

What the second linked article is to be displayed as.

Stringoptional
Label 3l3

What the third linked article is to be displayed as.

Stringoptional
Label 4l4

What the fourth linked article is to be displayed as.

Stringoptional

See also