"Cakm", "Cham": "Cham", "Cherokee": "Cher", "Chisoi": "Chis", "Clear <span class="searchmatch">Script</span>": "xwo-Mong", "Coptic": "Copt", "Cuneiform": "Xsux", "Cypriot": "Cprt"...
"Module:<span class="searchmatch">scripts</span>/<span class="searchmatch">canonical</span> <span class="searchmatch">names</span>" local <span class="searchmatch">scripts</span>_chartoscript_module = "Module:<span class="searchmatch">scripts</span>/charTo<span class="searchmatch">Script</span>" local <span class="searchmatch">scripts</span>_data_module = "Module:<span class="searchmatch">scripts</span>/data" local...
m_scripts = require("Module:<span class="searchmatch">scripts</span>") local sc = m_<span class="searchmatch">scripts</span>.getByCode("Latn") local <span class="searchmatch">name</span> = sc:get<span class="searchmatch">Canonical</span><span class="searchmatch">Name</span>() -- "<span class="searchmatch">name</span>" will now be "Latin" (The generated...
Generating the <span class="searchmatch">JSON</span> data takes a few seconds and puts a relatively high strain on the servers. Available functions are: export_languages, export_<span class="searchmatch">scripts</span> and export_families...
byCanonical<span class="searchmatch">Name</span> = require("Module:languages/<span class="searchmatch">canonical</span> <span class="searchmatch">names</span>") return require("Module:<span class="searchmatch">JSON</span>").to<span class="searchmatch">JSON</span>(by<span class="searchmatch">Canonical</span><span class="searchmatch">Name</span>) end function export.AllCodeTo<span class="searchmatch">Canonical</span>()...
access to Module:<span class="searchmatch">scripts</span> from templates, so that they can make use of the information stored there. {{#invoke:<span class="searchmatch">scripts</span>/templates|exists|<span class="searchmatch">script</span> code}} Check...
local m_<span class="searchmatch">scripts</span> = require("Module:<span class="searchmatch">scripts</span>") local m_<span class="searchmatch">scripts</span>_<span class="searchmatch">canonical</span>_<span class="searchmatch">names</span> = require("Module:<span class="searchmatch">scripts</span>/<span class="searchmatch">canonical</span> <span class="searchmatch">names</span>") local m_<span class="searchmatch">scripts</span>_codes =...
es|getCanonicalName|en}} {{#invoke:languages/templates|get<span class="searchmatch">Canonical</span><span class="searchmatch">Name</span>|invalid code}} ↓ English Module:<span class="searchmatch">JSON</span> data — for exporting all the data at once...
load_json_language_data(<span class="searchmatch">json</span>) local data = mw.text.<span class="searchmatch">json</span>Decode(<span class="searchmatch">json</span>) local fixed_data = {} for code, old_table in pairs(data) do -- Key 1 (<span class="searchmatch">canonical</span> <span class="searchmatch">name</span>) is always...
families_by_<span class="searchmatch">name</span>_module = "Module:families/<span class="searchmatch">canonical</span> <span class="searchmatch">names</span>" local families_data_module = "Module:families/data" local <span class="searchmatch">json</span>_module = "Module:<span class="searchmatch">JSON</span>" local language_like_module...