Template:Langswitch/doc

From Gentoo Wiki
Jump to:navigation Jump to:search
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 match it return (to See_also template) the same language code with slash. For example if {{SUBPAGENAME}} is de then /de returned. If no match then nothing returned.

Warning
This template should be written in one line. Otherwise it's broken.

Usage

Template for see also template to get national pages supported. Don't used directly.

See the template's testcases:

Template:Langswitch/testcases

See also

External resources