|
Labels: Vervangen Handmatige ongedaanmaking |
| (51 tussenliggende versies door 3 gebruikers niet weergegeven) |
| Regel 1: |
Regel 1: |
| local p = {} | | local p = {} |
|
| |
|
| --[[
| | return 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
| |