Module:Print: Difference between revisions

From Kronopolis and the Flat Plane
Created page with "p = {} p.loop = function(frame) local out = {} for idx = 1, 5 do table.insert(out, idx) end return table.concat(out, "<br>") end return p"
 
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
p = {}
local p = {}


p.loop = function(frame)
function p.butt(frame)
local out = {}
local butt = mw.loadJsonData('https://rp.klanen.org/wiki/kfp/api.php?action=query&list=categorymembers&cmlimit=max&cmtitle=Category:Spell&format=json')
 
return butt
for idx = 1, 5 do
table.insert(out, idx)
end
 
return table.concat(out, "<br>")
end
end


return p
return p

Latest revision as of 16:58, 22 February 2023

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

local p = {}

function p.butt(frame)
	local butt = mw.loadJsonData('https://rp.klanen.org/wiki/kfp/api.php?action=query&list=categorymembers&cmlimit=max&cmtitle=Category:Spell&format=json')
	return butt
end

return p