Template:Main/doc: Difference between revisions
m 4 revisions |
Some documentation taken from https://templates.fandom.com/wiki/Template:Main_article/doc |
||
Line 1: | Line 1: | ||
;Description | ;Description | ||
:This template is used at the start of a section to link to the main article on that subject. | :This template is used at the start of a section to link to the main article on that subject. | ||
;Usage | |||
:Place {{t|Main}} followed by as many referral pages as needed up to 10 pages. | |||
;Syntax | ;Syntax | ||
:Type <code>{{t|main| | :Type <code>{{t|Main|page1|page2|…|page10}}</code> | ||
; | :Or if you want to add labels to pages, type <code>{{t|Main|page1|<nowiki>l1=label1</nowiki>|page2|<nowiki>l2=label2</nowiki>|…|page10|<nowiki>l10=label10</nowiki>}}</code> | ||
:<code><nowiki>{{main| | |||
:{{main| | ;Sample outputs | ||
;Without label | |||
:<code><nowiki>{{main|Neptune}}</nowiki></code> gives... | |||
:{{main|Neptune}} | |||
;With label | |||
:<code><nowiki>{{main|Hyperdimension Neptunia mk2: Sounds of Gamindustri|l1=Hyperdimension Neptunia mk2 OST}}</nowiki></code> gives... | |||
:{{main|Hyperdimension Neptunia mk2: Sounds of Gamindustri|l1=Hyperdimension Neptunia mk2 OST}} | |||
;Error message | |||
:This error appears if you use 11 or more pages (ignore red links) | |||
:{{Main|page1|page2|page3|page4|page5|page6|page7|page8|page9|page10|page11}} | |||
:This appears (not technically an error) if no referrals are specified (empty parameter) | |||
:{{Main}} | |||
<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> |