Template

Ml/doc

From Joomla! Documentation

< Template:Ml
This is a documentation subpage for Template:Ml.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Ml.

Multiple Links

Functions/Features[edit]

This template produces a link in internal link style and also a "hidden external link", to allow it to be found by Special:Linksearch//docs.joomla.org/Special:Linksearch, which, unlike Special:Whatlinkshere//docs.joomla.org/Special:Whatlinkshere, is specific for the target section. This backlink requires that the extension Special:Linksearch//docs.joomla.org/Special:Linksearch has been installed, which is the case on Joomla! Documentation.

Usage[edit]

  • {{ml|target_page|optional_anchor|optional_label}}

Do not put "#" at the start of the anchor.

Examples[edit]

  • {{ml|Help:Link}} gives Help:Link//docs.joomla.org/JHelp:Link
  • {{ml|Help:Link|Section linking (anchors)}} gives Help:Link#Section linking (anchors)//docs.joomla.org/JHelp:Link#Section_linking_.28anchors.29
  • {{ml|Help:Link||label}} gives label//docs.joomla.org/JHelp:Link
  • {{ml|Help:Link|Section linking (anchors)|label}} gives label//docs.joomla.org/JHelp:Link#Section_linking_.28anchors.29
  • {{ml|a}} gives A//docs.joomla.org/A

Wrong:

  • {{ml|:a}} gives [[
a]]//docs.joomla.org/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:

Known Issues[edit]

Undefined parameter giving odd result:

  • {{ml|a:{{{2}}}}} gives [[A:{{{2}}}]]//docs.joomla.org{{localurl:A:{{{2}}}}}
  • substituted (first part): [[A:{{{2}}}]]

Compare:

  • {{subst:ml|a:b}} gives A:b