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 (formatting on docs) |
||
(One intermediate revision by the same user not shown) | |||
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. | ||
<tt><nowiki>{{SectionLink|Muro|Added value}}</nowiki></tt><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 for this template unless you want to have a prettily-displayed raw section link; if you are providing your own label for a section link – <tt><nowiki>[[Muro#Added value|fan speculation]]</nowiki></tt> – there's no benefit in it. | |||
[[Category:Basic formatting templates]]</noinclude> | [[Category:Basic formatting templates]]</noinclude> |
Latest revision as of 17:42, 10 October 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 for 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.