Module:Json parameter test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
-- }} | -- }} | ||
local jsonData = frame:callParserFunction( '#visualdataquery:[[unique title::+]]', { '?articleid', schema = 'Data classes', format = 'json-raw' } ) | local jsonData = frame:callParserFunction( '#visualdataquery:[[unique title::+]]', { '?articleid', schema = 'Data classes', format = 'json-raw' } ) | ||
-- | -- Debugging: Gib die empfangenen JSON-Daten aus | ||
return "Received JSON Data: " .. tostring(jsonData) | |||
end | end | ||
return p | return p | ||
Revision as of 06:33, 27 May 2024
Documentation for this module may be created at Module:Json parameter test/doc
local p = {}
function p.generateClassLists(frame)
-- JSON-Daten in einem Lua-String
-- local jsonData = frame.args.jsonData
-- {{#visualdataquery:[[unique title::+]]
-- |?articleid
-- |schema = Data classes
-- |format = json-raw
-- }}
local jsonData = frame:callParserFunction( '#visualdataquery:[[unique title::+]]', { '?articleid', schema = 'Data classes', format = 'json-raw' } )
-- Debugging: Gib die empfangenen JSON-Daten aus
return "Received JSON Data: " .. tostring(jsonData)
end
return p