Template:M/doc: Difference between revisions
Template page
More actions
←Created page with '{{TemplateBox |name = M |desc = Creates a link to a named module |1 =<!-- Name of the first parameter the template tak...' |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|name = M | |name = M | ||
|desc = Creates a link to a named module | |desc = Creates a link to a named module (or nothing at all if there's no given name) | ||
|1 =<!-- Name of the first parameter the template takes --> | |1 =1<!-- Name of the first parameter the template takes --> | ||
|1label =<!-- A (very) brief name for the parameter. --> | |1label =pagename<!-- A (very) brief name for the parameter. --> | ||
|1d-en =<!-- English description of the first parameter the template takes --> | |1d-en =the name of a module (or template) without its namespace<!-- English description of the first parameter the template takes --> | ||
|1d-td =<!-- description of the first parameter the template takes without any wiki marking--> | |1d-td =<!-- description of the first parameter the template takes without any wiki marking--> | ||
|1aliases =<!-- List of aliases, separated by / (a slash) --> | |1aliases =<!-- List of aliases, separated by / (a slash) --> | ||
|1type =<!-- 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 =<!-- required, optional or optional-; optional- means it is optional and omitted in the usage-sample --> | |1stat =optional<!-- required, optional or optional-; optional- means it is optional and omitted in the usage-sample --> | ||
|namespace = | |namespace = | ||
| Line 19: | Line 19: | ||
|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 Template:T). This is deprecated, please use Template:T instead. | |||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||
* [[:Category:Deprecated M]] if the 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 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 = | ||
* [[Template:T]] | |||
|type = | |type = | ||
|i18n-desc = | |i18n-desc = | ||
Revision as of 07:43, 4 June 2019
Creates a link to a named module (or nothing at all if there's no given name)
The template automatically sets the following categories:
- Category:Deprecated M if the 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 is 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 | 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