Template:Main: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
<onlyinclude>{{Hatnote|Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}}}</onlyinclude>
<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.
Line 8: Line 7:
{{Usage/Param|Page|The page you wish to link to.}}
{{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|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}}
{{Cat|Hatnote Templates}}