Documentation for this module may be created at Module:VolumeVariables/doc
local p = {}
function p.main( frame )
local volumeVariablesText = frame.args[1]
local volumeVariablesData = ""
local volumeVariablesResult = ""
if frame.args[2] == nil then
volumeVariablesData = mw.loadData( 'Module:VolumeVariables/data' )
else
volumeVariablesData = mw.loadData( 'Module:VolumeVariables/data/' .. frame.args[2] )
end
if frame.args[2] == 'ja' then
volumeVariablesResult = frame:preprocess(volumeVariablesData[volumeVariablesText])
else
volumeVariablesResult = volumeVariablesData[volumeVariablesText]
end
return volumeVariablesResult or volumeVariablesText or ""
end
return p