From Gentoo Wiki
Jump to:navigation Jump to:search
This page has been nominated for deletion.

The given reason is: Obsolete template. Superseded in See also by #translation function

If you disagree with its deletion, do not remove this notice; discuss your objections on the associated discussion page.

Administrators, please remember to check if anything links here and the page history before deleting.

This notice should remain for a minimum of 1 month after it was placed on the page. If discussion is still ongoing it should remain until a consensus is reached, at which time the page may be deleted or this notice may be removed. (However, if the page has only been edited by the user who nominated it for deletion and/or is in the nominator's user space, then a speedy deletion may be called for.)


This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Test {{SUBPAGENAME}} variable (or magic word) of given article (by {{See also}} template) and compare with listed in this template national language codes. If matched, this template will return (to {{See also}} template) the same language code with slash. For example if {{SUBPAGENAME}} ends with de then /de returned. If no matching two to four letter language codes are found then nothing returned.

This template should be written in one line. Otherwise it will not operate correctly.


This template is necessary to get 'translation' support for the {{See also}} template; it can be considered a child template and not to be called directly.

See the template's testcases:

No parameter
Wiki code {{Langswitch}}

Main version
Sandbox version

See also

External resources

The above documentation is transcluded from Template:Langswitch/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)