Шаблон:LLT/doc
Шаблон:LLT <
Перейти до навігації
Перейти до пошуку
Версія від 18:09, 4 жовтня 2021, створена Regionet (обговорення | внесок) (Створена сторінка: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === Determines the full page name of a specified t...)
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).