Template:Other lang
This template is used to generate links based on user preference language at the pages where mw:Extension:Translate is set by Wikidata:Translation administrators.
Basic function is same as Template:ll. The main difference is that Template:ll generate link which includes text like Special:MyLanguage
. So in case you have inconvenience about that, then use this template. (For example, putting links in navigation template and you want to show text in black and bold when user reading that page.)
Algorithm
edit- If user preference language is
en
, then returns input as it is. (This default language can be changed bydefault
parameter)- If user preference language is others (e.g.
de
), then check whether subpage for that language exists or not.- If subpage exists, then returns its page. (e.g.
input
+/de
) - If subpage doesn't exist, then returns input as it is.
- If subpage exists, then returns its page. (e.g.
- If user preference language is others (e.g.
Usage
editSee how the output varies depending on your language preference setting.
- Input
{{Other lang|Help:Statements}}
- Output
Help:Statements
See also
edit{{Ll}}
The above documentation is transcluded from Template:Other lang/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |