Template:SectionLink: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>[[{{{1|{{FULLPAGENAME}}}}}#{{{2|}}}|{{#if:{{{nopage|}}}||{{{1|{{FULLPAGENAME}}}}} }}§ {{{2|}}}]]</includeonly><noinclude>Call this template to nicely...") |
m (docs: wording, fixed fictitious link that was setting off my section link-checking script) |
||
Line 1: | Line 1: | ||
<includeonly>[[{{{1|{{FULLPAGENAME}}}}}#{{{2|}}}|{{#if:{{{nopage|}}}||{{{1|{{FULLPAGENAME}}}}} }}§ {{{2|}}}]]</includeonly><noinclude>Call this template to nicely display a section link. The first parameter should be the article and the second should be the section | <includeonly>[[{{{1|{{FULLPAGENAME}}}}}#{{{2|}}}|{{#if:{{{nopage|}}}||{{{1|{{FULLPAGENAME}}}}} }}§ {{{2|}}}]]</includeonly><noinclude>Call this template to nicely display a section link (because "[[Muro#Added value]]" is ugly). The first parameter should be the article and the second should be the section. | ||
<nowiki>{{SectionLink|Muro|Added value}}</nowiki><br> | |||
yields<br> | |||
{{SectionLink|Muro|Added value}} | |||
The first parameter is actually optional since you might want to link to a section on the same page. If you leave the first parameter blank, only the section name is displayed with a § before it (see [[BSL:Manual]] for many sample usages). | |||
There's no need to use this template unless you want to have a prettily-displayed raw section link; if you are providing your own label for a section link – <nowiki>[[Muro#Added value|fan speculation]]</nowiki> – there's no benefit in it. | |||
[[Category:Basic formatting templates]]</noinclude> | [[Category:Basic formatting templates]]</noinclude> |
Revision as of 01:50, 27 April 2023
Call this template to nicely display a section link (because "Muro#Added value" is ugly). The first parameter should be the article and the second should be the section.
{{SectionLink|Muro|Added value}}
yields
Muro § Added value
The first parameter is actually optional since you might want to link to a section on the same page. If you leave the first parameter blank, only the section name is displayed with a § before it (see BSL:Manual for many sample usages).
There's no need to use this template unless you want to have a prettily-displayed raw section link; if you are providing your own label for a section link – [[Muro#Added value|fan speculation]] – there's no benefit in it.