Module:Language info/doc

This module is invoked by language info with the invocation.

Parameters:
 * en
 * page name, in English


 * lang
 * language code, see langList for available codes

language info will set these defaults:
 * en= either,  , or  ,depending on isEn and/or isOnWiki.
 * lang=lang will determine the language by the pagename/subpagename, defaults to en (English).

The module itself has no defaults, so parameters en and lang must be provided if the module is invoked elsewhere.

The module will iterate through the langList, checking for instances of the page name in the other languages, and string them together in the pattern

Note: Make sure an interwiki prefix exists for all language translations (see ).

It uses mw.ext.LuaCache to set the cache variable :_language_info:data in Module:Language_info/data. This will prevent all the pages calling Language info from regenerating their cache every time the template (or the data it is using) is edited. When a large number of pages are regenerated in a short span of time, the wiki platform may crash, causing users to get 5xx errors.

Module:Language info subpages:

Template Language info subpages: