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
Created page with '{{TemplateBox |name = Int |desc = This is a wrapper for searching MediaWiki translations in MediaWiki:*/lang, to be used instead of <nowiki>{{int:Name/lang}...'
 
mNo edit summary
Line 3: Line 3:
   |desc = 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 = 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


   |1        = lang<!-- Name of the first parameter the template takes -->
   |1        = 1
   |1label  = language<!-- A (very) brief name for the parameter. -->
   |1label  = Name
   |1d-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)
   |1d-en    = identifier of the resource (in the "MediaWiki:" namespace)
   |1type    = string/line
   |1type    = string/line
  |1def    = <nowiki>{{PAGELANGUAGE}}</nowiki>
   |1stat    = required
   |1stat    = optional


   |2        = 1
   |2        = 2
   |2label  = Name
   |2label  = Default
   |2d-en    = identifier of the resource (in the "MediaWiki:" namespace)
   |2d-en    = an alternate string to return if the resource is not found.
   |2type    = string/line
   |2type    = string
  |2def    =
   |2stat    = required
   |2stat    = required


   |3        = 2
   |3        = lang<!-- Name of the first parameter the template takes -->
   |3label  = Default
   |3label  = language<!-- A (very) brief name for the parameter. -->
   |3d-en    = an alternate string to return if the resource is not found.
   |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
   |3type    = string/line
   |3def    =
   |3def    = <nowiki>{{PAGELANGUAGE}}</nowiki>
   |3stat    = required
   |3stat    = optional


   |namespace          =
   |namespace          =

Revision as of 12:38, 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

ParameterDescriptionDefaultStatus
1Nameidentifier of the resource (in the "MediaWiki:" namespace)emptyrequired
2Defaultan alternate string to return if the resource is not found.emptyrequired
langlanguageA 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.