Template:Fallback/doc: Difference between revisions
Template page
More actions
m Protected Template:Fallback/doc: Widely used template ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)) |
use TemplateData, add warning about the limit of fallback languages |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
|1d= | |1label-en=template | ||
|1d-en=Name of the template you want to determine the appropriate fallback language of | |||
|1type=wiki-template-name | |||
|1stat=required | |1stat=required | ||
|2=2 | |2=2 | ||
|2d= | |2label-en=language code | ||
|2d={{Language-code-documentation}} | |||
|2type=line | |||
|2def=value of <nowiki>{{int:Lang}}</nowiki> | |2def=value of <nowiki>{{int:Lang}}</nowiki> | ||
|name=Fallback | |name=Fallback | ||
|desc=Used to determine the appropriate fallback language of a template localized through language-specific subpages. | |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 | |namespace=all | ||
|usergroup=all | |usergroup=all | ||
| Line 15: | Line 21: | ||
|i18n-method=- | |i18n-method=- | ||
|i18n-desc= | |i18n-desc= | ||
|seealso=[[:Template:GetFallback]], [[:Template:GetFallback2]] | |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= | |setscats= | ||
|lines=one | |lines=one | ||
|shorthand= | |shorthand= | ||
}} | |useTemplateData=only | ||
}}<includeonly>[[Category:Localisation templates]]</includeonly> | |||