Template:Langswitch

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 there is any reason not to delete this page, do not remove this notice, but please open a discussion on the associated talk page (this should delay deletion until the discussion is resolved).


  Note to admins
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 (check the talk page), at which time the page may be deleted or this notice may be removed.

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 more flexibility in the decision may be allowed.

Check the help page on deleting for more information.

[edit

Documentation

Note
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.

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

Usage

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

Note
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.)