Template:Ml
From Joomla! Documentation
[[{{{1}}}]]
This documentation is transcluded from Template:Ml/doc.
To discuss this template as a whole, please see JDOC:WTP. If you wish to discuss general wordings, rather than the wording or formatting of this specific template, don't post here, or else what you say will probably go unnoticed.
Multiple Links
Functions/Features
This template produces a link in internal link style and also a "hidden external link", to allow it to be found by Special: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 Joomla! Documentation.
Usage
- {{ml|target_page|optional_anchor|optional_label}}
Do not put "#" at the start of the anchor.
Examples
- {{
ml|Help:Link
}} gives Help:Link - {{
ml|Help:Link|Section linking (anchors)
}} gives Help:Link#Section linking (anchors) - {{
ml|Help:Link||label
}} gives label - {{
ml|Help:Link|Section linking (anchors)|label
}} gives label - {{
ml|a
}} gives A
Wrong:
- {{
ml|:a
}} gives [[
- a]]
- 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
Known Issues
Undefined parameter giving odd result:
- {{ml|a:{{{2}}}}} gives [[A:{{{2}}}]]
- substituted (first part): [[A:{{{2}}}]]
Compare:
- {{subst:ml|a:b}} gives A:b