Template:Other languages


[edit] [purge] Documentation icon Template documentation

This template is used in other templates with the name "Template:Other languages/Page name" as such:

{{other languages|en|fa|fr|oc|etc|page=top page}}
example: {{other languages|ca|en|fa|fr|ja|mk|oc|pt|zh|page=Meta:Categories}}

Warning about the implementation: to avoid the nasty "template include depth limit exceeded" error (for example on Board elections/2008), do not factorize the list of #if making this template. Keep it linear, otherwise it will break important pages on this wiki using this template for accessing available translations. The way it is made does not exhaust the server resources (it also allows this template to support up to 60 languages, possibly more if the template is extended to support more parameters), but factorizing #if will exhaust them (in terms of total parameter size for their expansion) and will definitely not optimize things.

The above documentation is transcluded from Template:Other languages/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
Last modified on 3 April 2011, at 11:23