Template:Main: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Added documentation.)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
:<i>Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}</i><noinclude>
<onlyinclude>{{Hatnote|Main article: {{#if:{{{section|}}}|[[{{{1}}}#{{{section}}}{{!}}{{{2|{{{1}}}}}} § {{{section}}}]]|{{#if:{{{2|}}}|[[{{{1}}}{{!}}{{{2}}}]]|[[{{{1}}}]]}}}}}}</onlyinclude>
 
==Purpose==
==Purpose==
This template is used to create a formatted link to the main article of a certain topic.
This template is used to create a formatted link to the main article of a certain topic.


==Usage==
==Usage==
To use this template, type: {{Desc|Optional|Page|Alternate Title}}
To use this template, type: {{Usage|Page|Alternate Title|<nowiki>section=Section</nowiki>}}
{{Usage/Param|Page|The page you wish to link to.}}
{{Usage/Param|Alternate Title|The text you want to display as the name of the page if it is different than the page title. If left blank it defaults to what is given as the page name.|optional}}
{{Usage/Param|Section|The name of the section on the page you wish to link to. If left blank it defaults to the top of the page.|optional}}
 


*'''''Page''''' — The page you wish to link to.
{{Cat|Hatnote Templates}}
*'''''Alternate Title''''' — The text you want to display as the name of the page if it is different than the page title. If left blank it defaults to what is given as the page name.
{{Cat|Formatting Templates}}</noinclude>

Latest revision as of 14:31, June 23, 2020

Main article: [[{{{1}}}]]

Purpose

This template is used to create a formatted link to the main article of a certain topic.

Usage

To use this template, type: {{Main| Page | Alternate Title | section=Section }}

  • Page — The page you wish to link to.
  • Alternate Title — The text you want to display as the name of the page if it is different than the page title. If left blank it defaults to what is given as the page name. (Optional.)
  • Section — The name of the section on the page you wish to link to. If left blank it defaults to the top of the page. (Optional.)