Difference between revisions of "Module:Language/data/wp languages/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>WOSlinker
m (change source to syntaxhighlight)
blackwiki>Gonnym
Line 1: Line 1:
{{High-risk|639000}}
+
{{High-use}}
 
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
 
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:
+
For Wikipedia and MediaWiki language code-to-name needs (because MediaWiki codes and names sometimes differ from ISO 639 and IANA standards) see [[Module:Mw lang]].
:<syntaxhighlight 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</syntaxhighlight>
 
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 | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 12:27, 29 August 2020

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 and MediaWiki language code-to-name needs (because MediaWiki codes and names sometimes differ from ISO 639 and IANA standards) see Module:Mw lang.