Jump to content

Template talk:H:mlw

Add topic
From Meta, a Wikimedia project coordination wiki

Multiple Link to the English Wikipedia.

Template:Mlw redirects to Template:H:mlw. For the prefix "H:", see Help:MediaWiki help policy#Templates//meta.wikimedia.org/wiki/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:

Examples of links simply to the top of the page:

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

[edit]

The 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":

  • {{t2|d|a {{mlw|b}} c}} gives Parameter 1 is "d", parameter 2 is "a b c" (wrong)
  • {{t2|d|2=a {{mlw|b}} c}} gives Parameter 1 is "d", parameter 2 is "a b c" (correct)

See also

[edit]