Versie door Admin (overleg | bijdragen) op 29 dec 2024 om 12:48 (Nieuwe pagina aangemaakt met 'local p = {} --test test -- function p.main ( frame ) local jsonstr = frame.args['json'] local output = jsonstr return output end --[[ Store in SMW Consid...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)

Module:Award category




local p = {}

--[[
test test
]]--
function p.main ( frame )
	local jsonstr = frame.args['json']
	local output = jsonstr
	return output
end

--[[
Store in SMW
Consider using Lua version of parser function instead

{{#invoke:Award category
|store
|json={{#slot:ws-data|{{FULLPAGENAME}} }}
}}

]]--
function p.store( frame )
	local jsonstr = frame.args['json'] or nil
	if jsonstr == nil or jsonstr == "" then
		--Fail silently
		return
	end
	--etc etc
	
	
end


local function send_to_template( frame, templateName, argsTable )
	if templateName ~= nil and  argsTable ~= nil then
		return frame:expandTemplate{ title = templateName, args = argsTable }
	else
		return ""
	end
end