Template:Main: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
(Created page with ":<i>Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}</i>")
 
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
:<i>Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}</i>
<onlyinclude>{{Hatnote|Main article: {{#if:{{{section|}}}|[[{{{1}}}#{{{section}}}{{!}}{{{2|{{{1}}}}}} § {{{section}}}]]|{{#if:{{{2|}}}|[[{{{1}}}{{!}}{{{2}}}]]|[[{{{1}}}]]}}}}}}</onlyinclude>
==Purpose==
This template is used to create a formatted link to the main article of a certain topic.
 
==Usage==
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}}
 
 
{{Cat|Hatnote Templates}}