Template talk:H:mlw
Multiple Link to the English Wikipedia.
Template:Mlw redirects to Template:H:mlw. For the prefix "H:", see Help:MediaWiki help policy#Templates ; it is used on help pages for compatibility across sites without name conflicts; on other pages it is not needed.
This template produces a link in interwiki link style and also a "hidden external link", to allow it to be found by Linksearch, as a "What links here" for these interwiki links. (The system does not provide any "What links here" feature for interwiki links themselves.)
Usage:
- {{ mlw | 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:
"{{mlw|Help:Link|Section linking (anchors)}}"
gives "Help:Link#Section linking (anchors)" [1]"{{mlw|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
There is a special version Template:Mlww for the case that the target is in the Wikipedia namespace, as workaround for a problem with localurl.
Parameter value containing a call to this template
editThe content of this template contains "=". Therefore, if in a template call a parameter value contains a call to this template, then the parameter to which this value is assigned has to be made explicit, and all subsequent parameters also.
For example, if the parameters have to be "a {{mlw|b}} c" and "d":
- {{t2|a {{mlw|b}} c|d}} gives Parameter 1 is "a b c", parameter 2 is "d" (wrong)
- {{t2|1=a {{mlw|b}} c|d}} gives Parameter 1 is "d", parameter 2 is "{{{2}}}" (wrong)
- {{t2|1=a {{mlw|b}} c|2=d}} gives Parameter 1 is "a b c", parameter 2 is "d" (correct)
If the parameters have to be "d" and "a {{mlw|b}} c":