Template:M: Difference between revisions
Template page
More actions
m corr |
m cleanup and correcty tracking of usage |
||
| Line 1: | Line 1: | ||
{{#if: {{{1|}}} | |||
| {{#ifexist: Module:{{{1|}}} | |||
| {{#switch: - | |||
| {{{2|}}} | {{{3|}}} | {{{4|}}} = {{#switch: + | |||
| {{{2|}}} | {{{3|}}} | {{{4|}}} = | |||
|#default = Module: | |||
}} | |||
}}<!-- | |||
-->[[:Module:{{PAGENAME:{{{1|}}}}}|{{#switch: + | |||
| {{{2|}}} | {{{3|}}} | {{{4|}}} = Module: | |||
}}{{#switch: {{{2|}}} | |||
| + | - | = {{{1|}}} | |||
|#default = {{{2|}}} | |||
}}]] | |||
| <!-- | |||
#REDIRECT [[Template:T]] {{Template redirect}} | |||
--><includeonly>[[Category:Deprecated M]]</includeonly><!-- | |||
This was previously redirected to Template:T, when refering to a template and not a module, | |||
so it should be changed to use Template:T directly, and not Template:M | |||
notably because of possible homonymies (and completely different usages). | |||
-->{{T | |||
|1 = {{{1|}}} | |||
|2 = {{#if: {{{2|}}} | |||
| {{{2|}}} | |||
| {{{1|}}} | |||
}} | |||
|3 = {{{3|}}} | |||
|lang = {{{lang|}}} | |||
|4 = {{{4|}}} | |||
}} | |||
}} | |||
}}<noinclude>{{Documentation}}</noinclude> | |||
Revision as of 07:36, 4 June 2019
This documentation is transcluded from Template:M/doc.
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.