Jump to content

සැකිල්ල:Lang links/doc

Wikibooks වෙතින්

<translate> No description yet available.</translate>

<translate> Usage</translate>

{{Lang links |1= |num_lang= }}

<translate> </translate>

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

Compare:

සැකිල්ල:Xpdoc

(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 /lang subpage, transclude it to the template and regularly update it using {{subst: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.

Template parameters

ParameterDescriptionDefaultStatus
1Page name of the page that's subpages provide the translation{{NAMESPACE}}:{{BASEPAGENAME}}optional
num_langMaximum 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.70optional

<translate> Additional information</translate>

<translate> The template is intended to be used in the following namespaces:</translate> <translate> the Template namespace</translate>

<translate> The template is intended to be used by the following user groups:</translate> <translate> all users</translate>

<translate> Relies on:</translate>
Module:Lang links

<translate> ⧼Seealso⧽</translate>

<translate> </translate>

{{Ll}}, {{Lle}}, {{lang links cheap}}

<translate> Localization</translate>

<translate> This template is not intended to be localized.</translate>

"https://si.wikibooks.org/w/index.php?title=සැකිල්ල:Lang_links/doc&oldid=24258" වෙතින් සම්ප්‍රවේශනය කෙරිණි