Difference between revisions of "Module:Language/data/wp languages/doc"
< Module:Language | data | wp languages
Jump to navigation
Jump to search
blackwiki>Trappist the monk (ce;) |
blackwiki>Gonnym (added category) |
||
| Line 5: | Line 5: | ||
:<source lang="lua">local wiki_lang_names_table = mw.language.fetchLanguageNames(mw.getContentLanguage():getCode(), 'all') -- table of language codes and names (indexed by code) known to MediaWiki</source> | :<source lang="lua">local wiki_lang_names_table = mw.language.fetchLanguageNames(mw.getContentLanguage():getCode(), 'all') -- table of language codes and names (indexed by code) known to MediaWiki</source> | ||
The above will always be current with MediaWiki whereas this module is not. [[mw:Extension:Scribunto/Lua_reference_manual#mw.language.fetchLanguageNames|documentation]] | The above will always be current with MediaWiki whereas this module is not. [[mw:Extension:Scribunto/Lua_reference_manual#mw.language.fetchLanguageNames|documentation]] | ||
| + | |||
| + | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
| + | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| + | [[Category:Language-related modules]] | ||
| + | }}</includeonly> | ||
Revision as of 06:18, 22 January 2020
| This Lua module is used on approximately 1,110,000 pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Transclusion count updated automatically (see documentation). |
The provenance of the data in this table is unknown. Possibly some of it comes from an earlier version of this CLDR file: https://phabricator.wikimedia.org/diffusion/ECLD/browse/master/LocalNames/LocalNamesEn.php
For Wikipedia / MediaWiki language code-to-name needs (because MediaWiki codes / names sometimes differ from ISO 639 / IANA standards) consider using this:
local wiki_lang_names_table = mw.language.fetchLanguageNames(mw.getContentLanguage():getCode(), 'all') -- table of language codes and names (indexed by code) known to MediaWiki
The above will always be current with MediaWiki whereas this module is not. documentation