Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:M/doc: Difference between revisions

Template page
mNo edit summary
m +parm
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
   |name              = M
   |name              = M
   |desc              = Creates a link to a named module (or nothing at all if there's no specified pagename)
   |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 (or template) without its namespace<!-- English description of the first parameter the template takes -->
   |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) -->
   |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    =optional<!-- required, optional or optional-; optional- means it is optional and omitted in the usage-sample -->
   |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  =code
  |3d-en    ={{W|List of ISO 639-1 codes|ISO 639 language code}} for an interwiki link 
  |3type    =code
  |3def    =commons
  |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-


   |namespace          =
   |namespace          =
Line 26: Line 41:
   |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 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            =
* [[Template:T]]
* {{T|T|+}}
* {{T|MT|+}} (for "Module talk:")
   |type              =
   |type              =
   |i18n-method        = -
   |i18n-method        = -
Line 38: Line 52:
}}
}}
<includeonly>
<includeonly>
[[Caegory:Templates]]
[[Category:Internal 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

ParameterDescriptionDefaultStatus
1pagenamethe name of a moduleemptysuggested
2labelthe text to display in the link{{{1|}}}optional
3codeISO 639 language code for an interwiki linkcommonsoptional
4prefixset "+" or "-" to precede "Module:" (as a link, or straight text)
can be specified also with parameter 2 or 3
emptyoptional

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

Localization

This template is not intended to be localized.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.