Template talk:Ml
From Wikipedia, the free encyclopedia
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 , can restrict the list of source pages to those linking to a specific section of the target page. Therefore it is especially useful for linking to a section or other anchor.
Usage:
- {{ ml | target_page | anchor_name | optional_label }}
In most cases the anchor used is the automatically created one at the top of a section, with a name equal to that of the section. Do not put "#" at the start of the anchor name.
Examples of links to a section (the main application of this template):
"{{ml|Help:Link|Section linking (anchors)}}"
gives "Help:Link#Section linking (anchors) " [1]{{ml|Help:Link|Section linking (anchors)|section link}}
gives section link [2]
Examples of links simply to the top of the page:
- 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
Another advantage of Linksearch (and hence of using this template) is that it can find links to all pages with a given first part, e.g. Linksearch with as target the pages starting with "April 200"
Contents |
[edit] Template:h:ml
Template:h:ml (backlinks, edit) redirects to Template:ml (backlinks, edit). For the prefix "H:", see m:Help:MediaWiki help policy#Templates ; it is used on help pages for compatibilty across sites without name conflicts; on other pages it is not needed.
[edit] Edit summary
A disadvantage of using {{ml|a|b|c}} also in the edit summary, instead of [[a#b|c]], is that it does not give a link there.
[edit] See also
- m:Template:h:ml (backlinks, edit)
- m:Template:h:mlm (backlinks, edit)
- m:Template:h:mlw (backlinks, edit)
- m:Template:h:mlmw (backlinks, edit)
- m:Template:h:ml templates (backlinks, edit)
- Template:h:ml (backlinks, edit)
- Template:h:mlm (backlinks, edit)
- Template:h:mlw (backlinks, edit)
- Template:h:mlmw (backlinks, edit)
- Template:h:ml templates (backlinks, edit)
[edit] Old version
It would have been polite to notify me when the old Template:Ml, which I started, was overwritten without any apparent discussion. Superm401 - Talk 20:22, 28 April 2008 (UTC)