Template:Main/Documentation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Purpose== Template used to link to a main page where more detailed information can be found. ==Usage== ===Code=== <pre>{{Main|1}}</pre> ===Example=== <pre>{{Main|Shin Megami Tensei (Game)}}</pre> {{Main|Shin Megami Tensei (Game)}} {{Documentation Footer}}") |
m (Text replacement - "{{Documentation Footer}}" to "<noinclude>Category:Template Documentation</noinclude>") |
||
(2 intermediate revisions by one other user not shown) | |||
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> | |||
=== | ===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]]}} | |||
<noinclude>[[Category:Template Documentation]]</noinclude> |
Latest revision as of 03:40, 10 October 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