Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K 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
now {{lang links cheap}} exists, which doesn’t take more space than this template, but still suffers from the other weaknesses
No edit summary
Line 1: Line 1:
{{lua|Module:Languages}}
{{lua|Module:Languages}}
{{lua|Module:Lang links}}
{{TemplateBox
{{TemplateBox
|1=1
|1=1
Line 6: Line 7:
|1stat=optional
|1stat=optional


|2=addlink
|2= num_lang
|2d=provide an alternative add-link or whatever you like right after the language links
|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.
|2def=<nowiki>{{edit|{{NAMESPACE}}:{{BASEPAGENAME}}/lang}}</nowiki>
|2def=
|2stat=optional-
|2stat=optional


|3=suppressaddlink
|3=addlink
|3d=allows to remove the <small><code><nowiki>+/-</nowiki></code></small> -link
|3d=provide an alternative add-link or whatever you like right after the language links
|3d-td=allows to remove the "<nowiki>+/-</nowiki>" -link
|3def=<nowiki>{{edit|{{NAMESPACE}}:{{BASEPAGENAME}}/lang}}</nowiki>
|3def=
|3stat=optional-
|3stat=optional-
|4=suppressaddlink
|4d=allows to remove the <small><code><nowiki>+/-</nowiki></code></small> -link
|4d-td=allows to remove the "<nowiki>+/-</nowiki>" -link
|4def=
|4stat=optional-
|name=Lang links
|name=Lang links
|desc-az=Bu şablon yeni tərcümələri avtomatik əlavə edir.
|desc-az=Bu şablon yeni tərcümələri avtomatik əlavə edir.
|desc-de=Zeigt an, welche Sprachversionen einer Übersetzung existieren.
|desc-de=Zeigt an, welche Sprachversionen einer Übersetzung existieren.
|desc-en=Shows which language versions of a page exist.
|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 all supported languages and tests if they exist. At some point in early 2020 number of languages supported by WikiMedia rose above number of expensive calls allowed on the page, causing this template to place all pages using it in [[:Category:Pages with too many expensive parser function calls]], unless they have /lang subpage.
|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-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-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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.