Template:Int/doc: Difference between revisions
Template page
More actions
mNo edit summary |
mNo edit summary |
||
| Line 36: | Line 36: | ||
|type = | |type = | ||
|i18n-method = - | |||
|i18n-method = | |||
|example = | |example = | ||
|print = | |print = | ||
}} | }} | ||
Revision as of 12:40, 31 May 2019
This is a wrapper for searching MediaWiki translations in MediaWiki:*/lang, to be used instead of {{int:Name/lang}}, allowing to look for a language; 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
Usage
{{Int |1= |2= |lang= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Name | identifier of the resource (in the "MediaWiki:" namespace) | empty | required |
2 | Default | an alternate string to return if the resource is not found. | empty | required |
lang | language | A language code supported by MediaWiki or Translatewiki.net or a valid BCP47 language code (most often from ISO 639-1 or ISO 639-3) | {{PAGELANGUAGE}} | 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
Relies on:
- Mediawiki:*/lang
Localization
This template is not intended to be localized.