No edit summary |
No edit summary |
||
(18 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
function p.getModuleData(frame) | function p.getModuleData(frame) | ||
local data = mw.loadData("Module:Modules/data") | local data = mw.loadData( "Module:Modules/data" ) | ||
local module_name = mw.title.getCurrentTitle() | local module_name = mw.title.getCurrentTitle() | ||
local parameter = frame.args[1] | local parameter = frame.args[1] | ||
-- local value = | -- local value = data[module_name][parameter] | ||
-- return value | -- return value | ||
return | return data | ||
end | end | ||
return p | return p |
Latest revision as of 12: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