Template:Ml
Appearance
[[{{{1}}}]]
Multiple Links
This template produces a link in internal link style and also a "hidden external link", to allow it to be found by Linksearch, which, unlike Special:Whatlinkshere, is specific for the target section. This backlink requires that the extension Special:Linksearch has been installed, which is the case on Wikimedia wikis.
Usage:
- {{ Ml | target_page | optional_anchor | optional_label }}
Do not put "#" at the start of the anchor.
Examples:
{{Ml|Help:Link}}
gives Help:Link [1]"{{Ml|Help:Link|Section linking (anchors)}}"
gives "Help:Link#Section linking (anchors)" [2]{{Ml|Help:Link||label}}
gives label [3]{{Ml|Help:Link|Section linking (anchors)|label}}
gives label [4]{{Ml|a}}
gives A [5]
Wrong:
{{Ml|
a}}
gives [[- a]] [6]
- Linksearch with target page Help:Link - gives pairs of source page and full target
- Linksearch with as target the sections of Help:Link starting with "S" - ditto
Compare:
- Special:Whatlinkshere/Help:Link - no indication of, or selection by, target section
Undefined parameter giving odd result:
- {{Ml|a:{{{2}}}}} gives [[A:{{{2}}}]]
- substituted (first part): [[A:{{{2}}}]]
Compare:
- {{subst:ml|a:b}} gives A:b
- code
<!-- -->{{#if:{{{2|}}}<!-- -->|<!-- " -->{{#if:{{{3|}}}<!-- " -->|[[{{{1}}}#{{{2}}}|{{{3}}}]]<!-- " -->|[[{{ucfirst:{{{1}}}#{{{2}}}}}]]}}|<!-- " " -->{{#if:{{{3|}}}<!-- " " -->|[[{{{1}}}|{{{3}}}]]<!-- " " -->|[[{{ucfirst:{{{1}}}}}]]}}<!-- " " -->}}<span style="display:none">{{SERVER}}<!-- " -->{{#if:{{{2|}}}|{{localurl:{{ucfirst:{{{1}}}}}}}#<!-- " " -->{{anchorencode:{{{2}}}}}|{{localurl:{{ucfirst:{{{1}}}}}<!-- " -->}}<!-- -->}}</span>