Template:Int/doc
Shows a MediaWiki message in the same language of the page (identified by the subpage name) within a translated page, or the language specified using the |lang=
parameter; if the resource in the specified language does not exist (translation missing), it will look for a single fallback in English or with the default UI language. Otherwise it will return a default string.
Not to be confused with {{int:XXX}}
, which always shows the message in the language chosen by the user in their preferences.
Usage
{{int |lang= |1= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
lang | empty | optional | ||
1 | empty | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Shows a MediaWiki message in the same language of the page (identified by the subpage name) within a translated page, or the language specified using the <code class="nowrap">|lang=</code> parameter; if the resource in the specified language does not exist (translation missing), it will look for a single fallback in English or with the default UI language. Otherwise it will return a default string. Not to be confused with <code class=" nowrap">{{[[mw:Special:MyLanguage/Help:Magic words#int|int]]:XXX}}</code>, which always shows the message in the language chosen by the user in their [[Special:Preferences#mw-prefsection-personal|preferences]].
|
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Relies on:
- Module:Int
- {{int:*/lang}} builtin parser function
- pages in "Mediawiki:*/lang" for messages translated and imported from Translatewiki.net (some resources are located in MediaWiki itself in PHP plugins, and don't need to be imported)
Localization
This template is not intended to be localized.