Template:LLT

From OpenStreetMap Wiki
Jump to: navigation, search

Template:{{{1}}}

[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

Usage

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

The mandatory parameter 1 is the target template name (normally in English) without any language code prefix, and without the "Template:" namespace.

Example

  • {{LLT|Tag}}, when used in a German page (using the "DE:" prefix) will try to locate Template:DE:Tag if it exists (this can be a redirect to another template name also starting with the "DE:" prefix, but with the rest of the title translated into German (here it could a redirect to Template:DE:Etikett):
    • when this German template exists, it returns that template full name (i.e. "Template:DE:Tag" 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 return the template full name without the language code prefix (i.e. "Template:Tag" in this example).

See also

  • {{LLC}} – similar but for locating a translated Category (in the "Category:" namespace).
  • {{LL}} — used by this template but can be used with any other namespace.
https://wiki.openstreetmap.org/wiki/Template:LLT
wiki.openstreetmap.org
crawl=CC-MAIN-2019-13
21710
application/http; msgtype=response
sha1:OOVGWGDFTJL54DFW722KEDIABUV4Y2K6
<urn:uuid:ceb31303-2e83-44d7-8505-46a1d547fe23>
2019-03-20T10:56:51Z
130.117.76.4
text/html
sha1:OKPX7QHFGTZOCBNX7L4FKWEQW2NBTSKA
<urn:uuid:3e24257c-b6ee-4b6b-93bf-3a12e86ea8e4>
https://wiki.openstreetmap.org/wiki/Template:LLT
response
<urn:uuid:6600f5f1-54c3-41f0-a24f-02d5299e9bae>
isPartOf: CC-MAIN-2019-13
publisher: Common Crawl
description: Wide crawl of the web for March 2019
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-146-23-210.ec2.internal
software: Apache Nutch 1.15 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 0.11-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/