Nothing Special   »   [go: up one dir, main page]

Template:Other lang

Documentation icon Template documentation[view · edit · history · purge ]

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 by default 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.

Usage

edit

See how the output varies depending on your language preference setting.

Input

{{Other lang|Help:Statements}}

Output

Help:Statements

See also

edit