Difference between revisions of "Module:GetMediaValue"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
local personData = require('Module:MediaData')
+
local personData = mw.loadData('Module:MediaData')
  
 
local p = {}
 
local p = {}
Line 5: Line 5:
 
function p.main(frame)
 
function p.main(frame)
  
     return personData['frame.args[1]']
+
     return personData[frame.args[1]]
  
 
end
 
end
  
 
return p
 
return p

Latest revision as of 11:59, 5 September 2023

Documentation for this module may be created at Module:GetMediaValue/doc

local personData = mw.loadData('Module:MediaData')

local p = {}

function p.main(frame)

    return personData[frame.args[1]]

end

return p