Editing Module:Json parameter test
Revision as of 08:50, 24 May 2024 by Uschuetzenmeister (talk | contribs) (Created page with "local p = {} -- JSON-Daten in einem Lua-String local jsonData = frame.args.jsonData -- JSON-Daten in Lua-Tabelle umwandeln local json = mw.text.jsonDecode(jsonData) -- Funktion, um die Liste der Klassentitel und Klassen zu generieren function p.generateClassLists() local result = {} for _, item in ipairs(json) do local title = item.data.title local classNames = item.data["class names"] table.insert(result, "== " .. title .. " ==")...")
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Retrieved from "https://visualdata.idea-sketch.com/wiki/Module:Json_parameter_test"