Changes
Template:Fallback/doc (view source)
Revision as of 10:18, 14 September 2019
, 10:18, 14 September 2019use TemplateData, add warning about the limit of fallback languages
{{TemplateBox
|1=1
|1label-en=template
|1d-en=Name of the template you want to determine the appropriate fallback language of
|1type=wiki-template-name
|1stat=required
|2=2
|2label-en=language code
|2d={{Language-code-documentation}}
|2type=line
|2def=value of <nowiki>{{int:Lang}}</nowiki>
|name=Fallback
|desc=Used to determine the appropriate fallback language of a template localized through language-specific subpages. It can handle up to 2 fallback languages; after that, it falls back to content language of the page.
|namespace=all
|usergroup=all
|usage-notes=
|type=
|example=
|i18n-method=-
|i18n-desc=
|seealso=
* {{tl|SuperFallback}}, for the same fallback functionality but in all namespaces, not just Template
* {{tl|Autotranslate}} for template internationalization (i18n) mechanism for templates that use ''named'' parameters
* {{tl|LangSwitch}} for all-translations-on-one-page template i18n mechanism template
|relieson= [[:Template:GetFallback]], [[:Template:GetFallback2]]
|setscats=
|lines=one
|shorthand=
|useTemplateData=only
}}<includeonly>[[Category:Localisation templates]]</includeonly>
|1=1
|1label-en=template
|1d-en=Name of the template you want to determine the appropriate fallback language of
|1type=wiki-template-name
|1stat=required
|2=2
|2label-en=language code
|2d={{Language-code-documentation}}
|2type=line
|2def=value of <nowiki>{{int:Lang}}</nowiki>
|name=Fallback
|desc=Used to determine the appropriate fallback language of a template localized through language-specific subpages. It can handle up to 2 fallback languages; after that, it falls back to content language of the page.
|namespace=all
|usergroup=all
|usage-notes=
|type=
|example=
|i18n-method=-
|i18n-desc=
|seealso=
* {{tl|SuperFallback}}, for the same fallback functionality but in all namespaces, not just Template
* {{tl|Autotranslate}} for template internationalization (i18n) mechanism for templates that use ''named'' parameters
* {{tl|LangSwitch}} for all-translations-on-one-page template i18n mechanism template
|relieson= [[:Template:GetFallback]], [[:Template:GetFallback2]]
|setscats=
|lines=one
|shorthand=
|useTemplateData=only
}}<includeonly>[[Category:Localisation templates]]</includeonly>