Module:TestSMW

From TITAF TANGOWIKI
Revision as of 21:01, 20 March 2025 by Donxello (talk | contribs) (Created page with "local p = {} function p.test(frame) local result = mw.smw.ask("Category:Songs|?Title|?Author|limit=5") return mw.text.jsonEncode(result) -- Outputs JSON of the result end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:TestSMW/doc

local p = {}

function p.test(frame)
    local result = mw.smw.ask("[[Category:Songs]]|?Title|?Author|limit=5")
    return mw.text.jsonEncode(result) -- Outputs JSON of the result
end

return p