Template:Main/Documentation: Difference between revisions

Jump to navigation Jump to search
m (Protected "Template:Main/Documentation" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
No edit summary
Line 1: Line 1:
==Purpose==
==Purpose==
Template used to link to a main page where more detailed information can be found.
Template used to link to a main page or section where more detailed information can be found. Use a silcrow (§) when linking to sections.


==Usage==
==Usage==
{| class="wikitable"
|-
! Parameter !! Description
|-
| section || Must be given a value (such as "1" or "y") to display. Changes header from article to section.
|-
| 1 || Link to the page or section, '''must use brackets'''.
|}
===Code===
===Code===
<pre>{{Main|1}}</pre>
<pre>{{Main|1}}</pre>
<pre>{{Main|section=|1}}</pre>


===Example===
===Examples===
<pre>{{Main|[[Shin Megami Tensei (Game)]]}}</pre>
<pre>{{Main|[[Shin Megami Tensei (Game)]]}}</pre>
{{Main|[[Shin Megami Tensei (Game)]]}}
{{Main|[[Shin Megami Tensei (Game)]]}}
<pre>{{Main|section=1|[[Shin Megami Tensei IV#Gameplay|Shin Megami Tensei IV § Gameplay]]}}</pre>
{{Main|section=1|[[Shin Megami Tensei IV#Gameplay|Shin Megami Tensei IV § Gameplay]]}}
{{Documentation Footer}}
{{Documentation Footer}}

Revision as of 15:53, 2 August 2023

Purpose

Template used to link to a main page or section where more detailed information can be found. Use a silcrow (§) when linking to sections.

Usage

Parameter Description
section Must be given a value (such as "1" or "y") to display. Changes header from article to section.
1 Link to the page or section, must use brackets.

Code

{{Main|1}}
{{Main|section=|1}}

Examples

{{Main|[[Shin Megami Tensei (Game)]]}}
Main article: Shin Megami Tensei (Game)
{{Main|section=1|[[Shin Megami Tensei IV#Gameplay|Shin Megami Tensei IV § Gameplay]]}}
Main section: Shin Megami Tensei IV § Gameplay


This is the template documentation page for Template:Main. It should be transcluded onto the template page.