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
Created page with '{{documentation subpage}} {{en|This template adds new translations automatically. This shouldn't be used to replace manually created /lang pages. Sometimes it's d...'
 
See also: Fix link to {{Lang links subst}}
 
(28 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{lua|Module:Lang links}}
{{TemplateBox
|1=1
|1d=Page name of the page that's subpages provide the translation
|1def=<nowiki>{{NAMESPACE}}:{{BASEPAGENAME}}</nowiki>
|1stat=optional


{{en|This template adds new translations automatically. This shouldn't be used to replace manually created /lang pages. Sometimes it's desired to have a few red links as this encourages new translations. }}
|2= num_lang
{{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.}}
|2d=Maximum number of languages to test. In order to prevent page using the template from landing in [[:Category:Pages with too many expensive parser function calls]] or showing Lua errors one can only search through top 20, 50, 70, 100, etc. languages. in 2024 a language ranking study analyzed subpages of 2400 templates and counted language subtemplates for each language. Than about 120 languages were ranked based on number of subpages. This option allows you to only test for most likely languages.
{{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.}}
|2def=70
{{de|Diese Vorlage fügt neue Übersetzungen automatisch hinzu.}}
|2stat=optional
{{ru|Этот шаблон добавляет новые переводы автоматически.}}


'''{{int:seealso}}''' {{tl|lang links subst}}
|name=Lang links
|desc-az=Bu şablon yeni tərcümələri avtomatik əlavə edir.
|desc-de=Zeigt an, welche Sprachversionen einer Übersetzung existieren.
|desc-en=Shows which language versions of a page exist. The template first looks for /lang subpage and if found transcludes it, if /lang subpage does not exist it searches thru chosen number of most used languages and tests if they exist. Displaying languages for templates without /lang is expensive and might land the page in [[:Category:Pages with too many expensive parser function calls]], it also might miss subpages for rarely used languages. Create /lang subpage to avoid this issue.
|desc-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.
|desc-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.
|desc-ka=ეს თარგი ავტომატურად ამატებს ახალ თარგმანებს.
|desc-ru=Этот шаблон добавляет новые переводы автоматически.
|desc-diq=Na şablon açarnayışanê newe otomatikmene dekena de.
 
|namespace=Template
|usergroup=All
|placement=
|usage-notes=
This template shows which language versions of a page exist (based on the naming scheme <code>../xx</code>, with <code>xx</code> the language code), and provides links to them. For example:
 
{{xpdoc|lang links|Template:No source since}}
 
Compare:
 
{{xpdoc|lang links cheap|Template:No source since}}
 
(based on [[Special:Prefixindex]]), which does not distinguish between a postfix for a language and other postfixes such as /doc and /layout. Another difference is that the language code is shown, rather than the local name.
 
'''This template should 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 on templates intended for the file namespace that will likely stay there for a long time.
 
[[Template:Ll]] will generate the same results but must be substituted.
|type=Language link template
|example=
|i18n-method=-
|i18n-desc=
|i18n-mediawiki-msg=
|seealso={{tl|lang links subst}}, {{tl|Lle}}, {{tl|lang links cheap}}
|setscats=
|lines=1
|shorthand=
|relieson=[[Module:Lang links]]
|useTemplateData=1
}}<includeonly>
[[Category:Internal link templates]]
</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.