Template:Main/Documentation

Jump to navigation Jump to search

Purpose

Main and Sect are a set of templates used to link to a main page or section where more detailed, further reading can be found. By linking to an article using Main, the template will created a formatted notice. The Sect template is used inside of Main to format a link to a specific section in an article; the section must exist on the page and be spelled correctly in order to properly redirect to it.

Usage

Main
Parameter Description
section Must be given a value (such as "1" or "y") to display. Changes header from article to section.
1 Article's title; must include brackets.
Sect
Parameter Description
1 Article's title; the Sect template does not require brackets.
2 Section's title.
display Optional; changes the display name for the article title.

Code

{{Main|1}}
{{Main|section=1|{{Sect|1|2}}}}
{{Main|section=1|{{Sect|1|2|display=}}}}

Examples

{{Main|[[Shin Megami Tensei (Game)]]}}
Main article: Shin Megami Tensei (Game)
{{Main|section=1|{{Sect|Kichijoji (Shin Megami Tensei)|Inogashira Park}}}}
Main section: Kichijoji (Shin Megami Tensei) § Inogashira Park