Module:TestSMW: Difference between revisions

From TITAF TANGOWIKI
(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")
(No difference)

Revision as of 21:01, 20 March 2025

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