Template:M/doc: Difference between revisions
Template page
More actions
m +parm |
m +parm |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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 | ||
|1 =1<!-- Name of the first parameter the template takes --> | |1 =1<!-- Name of the first parameter the template takes --> | ||
|1label =pagename<!-- A (very) brief name for the parameter. --> | |1label =pagename<!-- A (very) brief name for the parameter. --> | ||
|1d-en =the name of a module | |1d-en =the name of a module <!-- 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) --> | ||
| Line 20: | Line 20: | ||
|3 =3 | |3 =3 | ||
|3label = | |3label =code | ||
|3d-en = | |3d-en ={{W|List of ISO 639-1 codes|ISO 639 language code}} for an interwiki link | ||
|3type =code | |3type =code | ||
|3def = | |3def =commons | ||
|3stat =optional- | |3stat =optional- | ||
|4 =4 | |||
|4label =prefix | |||
|4d-en =set "+" or "-" to precede "Module:" (as a link, or straight text)<br>can be specified also with parameter 2 or 3 | |||
|4type =code | |||
|4def = | |||
|4stat =optional- | |||
| Line 34: | Line 41: | ||
|relieson = | |relieson = | ||
|usage-notes = | |usage-notes = | ||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||
|seealso = | |seealso = | ||
* {{T|T|+}} | * {{T|T|+}} | ||
| Line 49: | Line 54: | ||
[[Category:Internal link templates]] | [[Category:Internal link templates]] | ||
[[Category:Interwiki link templates]] | [[Category:Interwiki link templates]] | ||
[[Category:One-letter templates| ]] | |||
</includeonly> | </includeonly> | ||
Latest revision as of 14:44, 19 July 2022
Creates a link to a named module
Usage
{{M |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | pagename | the name of a module | empty | suggested |
2 | label | the text to display in the link | {{{1|}}} | optional |
3 | code | ISO 639 language code for an interwiki link | commons | optional |
4 | prefix | set "+" or "-" to precede "Module:" (as a link, or straight text) can be specified also with parameter 2 or 3 | 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.