Module:GetJSON/2: Revision history

From AlternateWiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

25 May 2024

20 May 2024

  • curprev 18:0818:08, 20 May 2024Tombricks talk contribs 1,525 bytes +1,525 Created page with "local p = {} p.main = function(frame) local m = {} m.root = mw.loadJsonData(frame.args[1]) -- Function to split the key by "." local function splitKey(key) local keys = {} for subkey in string.gmatch(key, "([^%.]+)") do table.insert(keys, subkey) end return keys end -- Function to get the value from the nested table local function getValueByKeys(root, keys) local value = root..."