mNo edit summary |
No edit summary |
||
| (48 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.getModuleData() | function p.getModuleData(frame) | ||
local data = mw.loadData( "Module:Modules/data" ) | |||
local module_name = mw.title.getCurrentTitle() | |||
local parameter = frame.args[1] | |||
-- local value = data[module_name][parameter] | |||
-- return value | |||
return data | |||
end | end | ||
return p | return p | ||
Latest revision as of 11:54, 3 June 2024
currently does not work correctly
local p = {}
function p.getModuleData(frame)
local data = mw.loadData( "Module:Modules/data" )
local module_name = mw.title.getCurrentTitle()
local parameter = frame.args[1]
-- local value = data[module_name][parameter]
-- return value
return data
end
return p