Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Lang links/doc: Difference between revisions

Template page
No edit summary
Line 1: Line 1:
{{documentation subpage}}
{{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:Creator}}
{{xpdoc|lang links|Template:No source since}}
 
This should not be used in really heavily used templates to avoid hitting the "expensive parser function" limit on pages with other expensive templates. If the template/page is not transcluded much or it's used in cases where it's the only template on a page, then the parser function calls shouldn't be an issue. See also the substituted versions [[Template:Ll]] and [[Template:Lle]] of this template.


Compare:
Compare:


{{xpdoc|Special:PrefixIndex/Template:Creator/}}
{{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.


This template takes one optional parameter (suppressaddlink) that allows to remove the <small><code><nowiki>+/-</nowiki></code></small> -link.
[[Template:Ll]] will generate the same results but must be substituted.
 
|type=Language link template
----
|example=
{{az|
|i18n-method=-
Bu şablon yeni tərcümələri avtomatik əlavə edir.}}
|i18n-desc=
----
|i18n-mediawiki-msg=
{{de|
|seealso=
Diese Vorlage fügt neue Übersetzungen automatisch hinzu.}}
|setscats=
----
|lines=1
{{es|
|shorthand=
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.}}
|relieson=[[Module:Languages]], [[Module:Languages/List]]
----
}}
{{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.}}
----

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

ParameterDescriptionDefaultStatus
1Page name of the page that's subpages provide the translation{{NAMESPACE}}:{{BASEPAGENAME}}optional
suppressaddlinkallows to remove the +/- -linkemptyoptional

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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.