Template:Localized link/Documentation

From Vintage Story Wiki
< Template:Localized link
Revision as of 15:50, 15 June 2022 by Veerserif (talk | contribs) (Created page with "'''Taken from [https://www.mediawiki.org/wiki/Template:Localized_link MediaWiki].''' This helper template can be used to link to translatable pages in the user's language. It...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Taken from MediaWiki.

This helper template can be used to link to translatable pages in the user's language. It uses the special page prefix Special:MyLanguage/, which checks if there is a translated version of a page in the user's language, and links to it if there is one, and links to a fallback language where available, or the default wiki language version (English on this wiki) if there isn't.

It should be used in translated pages, so that they link to the right page even if there is no translated page in that language.

Usage

{{ll|target page|display text}}

Details

This template has three parameters.

  • Target page (1). This is required. This is the page that the link should target.
  • Display text (2). This is suggested, but not required. This is the text that should be displayed for the link.
  • Namespace display (nsp). This is optional. If “nsp” parameter is not defined, as link text displays the full pagename (including namespace); otherwise — if “nsp” parameter is defined by any value — link text displays the short pagename, without namespace.