No edit summary Tag: Manual revert |
No edit summary |
||
(7 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 = data[ | -- local value = data[module_name][parameter] | ||
return | -- return value | ||
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