export.export_scripts() local <span class="searchmatch">data</span> = mw.load<span class="searchmatch">Data</span>("Module:scripts/<span class="searchmatch">data</span>") local items = {} for key, value in pairs(<span class="searchmatch">data</span>) do items[#items + 1] = export_str(key)...
you need both the languages table and another table). Generating the <span class="searchmatch">JSON</span> <span class="searchmatch">data</span> takes a few seconds and puts a relatively high strain on the servers....
-- containing a <span class="searchmatch">JSON</span> representation of it. It's not intended to be very robust, -- but may be useful for prototyping. function p.<span class="searchmatch">json</span>ValueFromValue(val...
converting Lua values into <span class="searchmatch">JSON</span> values (in UTF-8-encoded Lua strings). Unfortunately, Lua's <span class="searchmatch">data</span> model differs somewhat from <span class="searchmatch">JSON's</span>, so it's not possible to...
Converts language <span class="searchmatch">data</span> to <span class="searchmatch">JSON</span>. The <span class="searchmatch">data</span> can be fetched using an expand templates API call, e.g. [1]...
require("Module:<span class="searchmatch">JSON</span>").to<span class="searchmatch">JSON</span>(codeToName) end function export.AllLangcodeToScripts() local result<span class="searchmatch">Data</span> = {} for code, <span class="searchmatch">data</span> in pairs(require("Module:languages/<span class="searchmatch">data</span>/all"))...
function export.load_<span class="searchmatch">json</span>_language_<span class="searchmatch">data</span>(<span class="searchmatch">json</span>) local <span class="searchmatch">data</span> = mw.text.<span class="searchmatch">json</span>Decode(<span class="searchmatch">json</span>) local fixed_<span class="searchmatch">data</span> = {} for code, old_table in pairs(<span class="searchmatch">data</span>) do -- Key 1...
return require("Module:User:Erutuon/split language <span class="searchmatch">data</span> modules").load_<span class="searchmatch">json</span>_language_<span class="searchmatch">data</span> [[ {"ues": ["Kioko", "Q18343036"]} ]]...
return require("Module:User:Erutuon/split language <span class="searchmatch">data</span> modules").load_<span class="searchmatch">json</span>_language_<span class="searchmatch">data</span> [[ {"wxw": ["Wardandi"], "wxa": ["Waxianghua", "Q2252191"]}...
return require("Module:User:Erutuon/split language <span class="searchmatch">data</span> modules").load_<span class="searchmatch">json</span>_language_<span class="searchmatch">data</span> [[ {"hji": ["Haji", "Q5639933", "poz-mly"]} ]]...