From OpenStreetMap Wiki
Jump to: navigation, search


Determines the full page name of a specified category name for the language matching the language of the page currently viewed. If the target category is not found in that language with the same language code, use the generic (untranslated) category without the language code (assuming this is the English category by default on this wiki).

  • The mandatory parameter 1 is the target category name (normally in English) without any language code prefix namespace, and without the namespace prefix.
  • The optional parameter ns is the leading namespace name, with its final colon (:), where the translated page is to be searched for (e.g., "Template:", "Category:"). If this parameter is empty (the default) the page name is assumed to be an article in the main namespace.

Note that it is still not possible to do that in "User:" namespace, because "User:XXX" and "User:DE:XXX" are for distinct users and no translation of their user pages should be assumed between each other.

But it is possible for "Talk" pages associated to all other namespaces (including the main namespace): when using ns=Talk: is specified, if a specific talk page is created and exists for a translated page, links created by this LL template will go to the Talk page associated to the page without the language code prefix.

If you want to merge existing talk pages in various languages to a single one, because you only want to follow a single talk page for all languages, you should redirect them to the Talk page without the prefix, but more frequently you'll just add a link at top of talk pages you don't want to maintain, and you should include a link in a section of the unified Talk page to list the former "translated" talk pages that contain the former discussions.


  • {{LL|Help:Contents}}, when used in a Swiss German page (using the "De-ch:" prefix) will try to locate "De-ch:Help:Contents" if it exists (this can be a redirect to another page name also starting with the "De-ch:" prefix, but with the rest of the title translated into Swiss German:
    • when this page exists, it returns that full page name ("De-ch:Help:Contents" in this example — note that even if this is a redirect, the target of this redirect cannot be determined using the current version of MediaWiki);
    • otherwise it looks for a possible fallback in another language (e.g., "de" for "de-ch"), and returns its full page name in with the correct prefix if such page exists ("DE:Help:Contents" in this example, here it is a redirect to DE:Hilfe);
    • otherwise it return the full page name without the language code prefix (i.e., "Help:Contents" in this example).

Warning: maintenance of redirects

Note that redirects such as DE:Help:Contents to DE:Hilfe must be kept because these pages are using the Languages template which cannot determine the target name of redirects itself, instead the Languages template is used with the English pagename (and the optional namespace prefix in a parameter similar to this LL template) and pages are are accessible via this redirect (those links via a redirect are needed only for switching from one language to another).

When renaming pages for translating page titles from English, this creates such redirects: make sure however that, after such renaming, all existing redirects (listed by the "Linked pages" tool in the side bar) are not double redirects: modify all existing redirects to point to the new full name and not to the full name before your renaming.

See also

  • {{LangPrefix}} – logic to determine the correct prefix to use for any language code (or optionally the prefix for a fallback if one is defined)
  • {{LLC}} – similar but for locating a translated Category (in the "Category:" namespace)
  • {{LLT}} – similar but for locating a translated template (in the "Template:" namespace)