Template:M/doc: Difference between revisions
Template page
More actions
mNo edit summary |
m +parm |
||
| Line 10: | Line 10: | ||
|1type =string/wiki-page-name<!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown --> | |1type =string/wiki-page-name<!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown --> | ||
|1def =<!-- default value for the parameter --> | |1def =<!-- default value for the parameter --> | ||
|1stat = | |1stat =suggested | ||
|2 =2 | |2 =2 | ||
| Line 18: | Line 18: | ||
|2def =<code><nowiki>{{{1|}}}</nowiki></code> | |2def =<code><nowiki>{{{1|}}}</nowiki></code> | ||
|2stat =optional-<!-- required, optional or optional-; optional- means it is optional and omitted in the usage-sample --> | |2stat =optional-<!-- required, optional or optional-; optional- means it is optional and omitted in the usage-sample --> | ||
|3 =3 | |||
|3label =prefix | |||
|3d-en =set "+" or "-" to precede "Module:" (as a link, or straight text) | |||
|3type =code | |||
|3def = | |||
|3stat =optional- | |||
|namespace = | |namespace = | ||
| Line 26: | Line 34: | ||
|relieson = | |relieson = | ||
|usage-notes = | |usage-notes = | ||
This was previously used also to create a link to a template with that same name (and so it was redirected as an shortcut or alias of | This was previously used also to create a link to a ''template'' with that same name (and so it was redirected as an shortcut or alias of template:T). This habit used mainly by French users, familiar with {{T|Modèle|+|fr|i18n=fr|case=i}}, is now deprecated, please use {{T|T|+|case=l}} instead. | ||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||
* [[:Category:Deprecated M]] – if the specified module does not exist, because it assumes the name may be that of a template. But may indicate that the module no longer exists. | * [[:Category:Deprecated M]] – if the specified module does not exist, because it assumes the name may be that of a template. But may indicate that the module no longer exists. | ||
|seealso = | |seealso = | ||
* | * {{T|T|+}} | ||
* {{T|MT|+}} (for "Module talk:") | |||
|type = | |type = | ||
|i18n-method = - | |i18n-method = - | ||
Revision as of 05:29, 19 August 2019
Creates a link to a named module (or nothing at all if there's no specified pagename)
The template automatically sets the following categories:
- Category:Deprecated M – if the specified module does not exist, because it assumes the name may be that of a template. But may indicate that the module no longer exists.
Usage
{{M |1= }}
This was previously used also to create a link to a template with that same name (and so it was redirected as an shortcut or alias of template:T). This habit used mainly by French users, familiar with modèle:{{Modèle}}, is now deprecated, please use template:{{T}} instead.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | pagename | the name of a module (or template) without its namespace | empty | suggested |
2 | label | the text to display in the link | {{{1|}}} | optional |
3 | prefix | set "+" or "-" to precede "Module:" (as a link, or straight text) | empty | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
See also
- Template:{{T}}
- Template:{{MT}} (for "Module talk:")
Localization
This template is not intended to be localized.