Template:Langswitch
From Gentoo Wiki
[edit]
Documentation
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.
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.
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:
See also
External resources
Note
The above documentation is transcluded from Template:Langswitch/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)
The above documentation is transcluded from Template:Langswitch/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)