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:Int/doc: Difference between revisions

Template page
Template parameters: Rename the parameters: `2` → `missing` (with alias) – conflicts with {{localized mw message}} (Q86596927)
Line 1: Line 1:
{{TemplateBox
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
| name = Int
{{TemplateBox/sandbox
| name = int
| mbox =
{{tsh|localized mw message}}
{{Lua|Module:Int}}
 
| desc-en = This is a wrapper for searching MediaWiki translations in MediaWiki:*/lang, to be used instead of <nowiki>{{int:Name/lang}}</nowiki>, 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
| desc-en = This is a wrapper for searching MediaWiki translations in MediaWiki:*/lang, to be used instead of <nowiki>{{int:Name/lang}}</nowiki>, 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
| namespace = all
| usergroup = all


| relieson =
| relieson =
* [[Module:Int]]
* <tt><nowiki>[[int:*/lang]]</nowiki></tt> builtin parser function
* <tt><nowiki>[[int:*/lang]]</nowiki></tt> 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)
* 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)


| setscats =
| i18n-method = -
* When usage conflicts with {{Q|86596927}}:
| i18n-desc =
** {{C|Templates using ((int)) with default value in parameter 2}}
** {{C|Pages using ((int)) with default value in parameter 2}}


| print = line
| print = line
| useTemplateData = 1
| useTemplateData = TNT
 
  |1        = 1
  |1label  = Name
  |1d-en    = identifier of the resource (in the "MediaWiki:" namespace)
| 1type = string
  |1stat    = required
 
| 2 = missing
| 2aliases = 2
| 2label-en = Missing Value Default
  |2d-en    = an alternate string to return if the resource is not found.
| 2type = content
| 2stat = suggested
 
| 3 = lang
| 3label-en = Language Code
  |3d-en    = 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)
| 3type = string
  |3def    = <nowiki>{{PAGELANGUAGE}}</nowiki>
  |3stat    = optional
 
| seealso =
* {{tld|nowrap=1|localized mw message}} – Uses [[Module:Int]]


  |i18n-method        = -
| 1 = lang
| 2 = 1
}}
}}
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Navigational templates for the translate extension|* {{PAGENAME}}]]
}}</includeonly>

Revision as of 04:43, 27 August 2021

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