Module:Languages/List: Difference between revisions
From Neodyland Wiki
More actions
just formatting the list for tests in comments; this module has almost no utility, it does not correctly sort languages by name, only by code, and only those in mw.language (which is also a costly list) |
p.list = {'" .. table.concat(p.getSortedList(mw.language.fetchLanguageNames()), "', '") .. "'}" |
||
| Line 3: | Line 3: | ||
-- | -- | ||
--[[ Check this list by running this in the console of the Lua Module editor in MediaWiki: | --[[ Check this list by running this in the console of the Lua Module editor in MediaWiki: | ||
="p.list = { '" .. table.concat(p.getSortedList(mw.language.fetchLanguageNames()), "', '") .. "' }" | ="p.list = {'" .. table.concat(p.getSortedList(mw.language.fetchLanguageNames()), "', '") .. "'}" | ||
]] | ]] | ||
function p.getSortedList(mwLangList) | function p.getSortedList(mwLangList) | ||