Template:Lang links/doc: Difference between revisions
More actions
No edit summary |
using Template:TemplateBox |
||
| Line 1: | Line 1: | ||
{{ | {{TemplateBox | ||
|1=1 | |||
|1d=Page name of the page that's subpages provide the translation | |||
|1def=<code><nowiki>{{NAMESPACE}}:{{BASEPAGENAME}}</nowiki></code> | |||
|1stat=optional | |||
|2=suppressaddlink | |||
|2d=allows to remove the <small><code><nowiki>+/-</nowiki></code></small> -link | |||
|2def= | |||
|2stat=optional- | |||
|name=Lang links | |||
|desc={{LangSwitch | |||
|az=Bu şablon yeni tərcümələri avtomatik əlavə edir. | |||
|de=Diese Vorlage fügt neue Übersetzungen automatisch hinzu. | |||
|en=shows which language versions of a page exist | |||
|es=Esta plantilla añade automáticamente nuevas traducciones. No debe ser usada para reemplazar páginas /lang creadas manualmente. A veces es bueno tener algunos vínculos en rojo pues esto anima a realizar nuevas traducciones. | |||
|fr=Ce modèle ajoute automatiquement de nouvelles traductions. Il ne devrait cependant pas être utilisé pour remplacer des pages de type /lang créées manuellement. Parfois il peut être intéressant de disposer de quelques liens rouges, car cela encourage à créer de nouvelles traductions. | |||
|ka=ეს თარგი ავტომატურად ამატებს ახალ თარგმანებს. | |||
|ru=Этот шаблон добавляет новые переводы автоматически. | |||
|diq=Na şablon açarnayışanê newe otomatikmene dekena de. | |||
}} | |||
This template shows which language versions of a page exist (based on the naming scheme ../xx, with xx the language code), and provides links to them. For example: | This template shows which language versions of a page exist (based on the naming scheme ../xx, with xx the language code), and provides links to them. For example: | ||
{{xpdoc|lang links|Template: | {{xpdoc|lang links|Template:No source since}} | ||
Compare: | Compare: | ||
{{xpdoc|Special:PrefixIndex/Template: | {{xpdoc|Special:PrefixIndex/Template:No source since/}} | ||
which does not distinguish between a postfix for a language and other postfixes such as /doc and /layout. Also it takes more space. Another difference is that the language code is shown, rather than the local name. | which does not distinguish between a postfix for a language and other postfixes such as /doc and /layout. Also it takes more space. Another difference is that the language code is shown, rather than the local name. | ||
|namespace=Template | |||
|usergroup=All | |||
|placement= | |||
|usage-notes='''This template must not be used on templates''' to avoid hitting the "expensive parser function" or the "LUA execution time" limit on pages with other expensive templates. If your template needs language links, create a <code><nowiki>/lang</nowiki></code> subpage, transclude it to the template and regularly update it using {{tls|lle}}. '''Never''' use this template directly or indirectly transuded through a template on file pages. | |||
[[Template:Ll]] will generate the same results but must be substituted. | |||
|type=Language link template | |||
|example= | |||
|i18n-method=- | |||
|i18n-desc= | |||
|i18n-mediawiki-msg= | |||
|seealso= | |||
|setscats= | |||
|lines=1 | |||
|shorthand= | |||
|relieson=[[Module:Languages]], [[Module:Languages/List]] | |||
}} | |||
Revision as of 17:00, 15 May 2013
shows which language versions of a page exist
This template shows which language versions of a page exist (based on the naming scheme ../xx, with xx the language code), and provides links to them. For example:
{{lang links|Template:No source since}} → English
Compare:
{{Special:PrefixIndex/Template:No source since/}} →
which does not distinguish between a postfix for a language and other postfixes such as /doc and /layout. Also it takes more space. Another difference is that the language code is shown, rather than the local name.
Usage
{{Lang links |1= }}
This template must not be used on templates to avoid hitting the "expensive parser function" or the "LUA execution time" limit on pages with other expensive templates. If your template needs language links, create a /lang subpage, transclude it to the template and regularly update it using {{subst:lle}}. Never use this template directly or indirectly transuded through a template on file pages.
Template:Ll will generate the same results but must be substituted.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Page name of the page that's subpages provide the translation | {{NAMESPACE}}:{{BASEPAGENAME}} | optional | |
suppressaddlink | allows to remove the +/- -link | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: all users
Relies on:
Module:Languages, Module:Languages/List
Localization
This template is not intended to be localized.