Module:EpisodeVariables

local p = {}

function p.main( frame ) local episodeVariablesText = frame.args[1] local episodeVariablesData = "" local episodeVariablesResult = "" if frame.args[2] == nil then episodeVariablesData = mw.loadData( 'Module:EpisodeVariables/data' ) else episodeVariablesData = mw.loadData( 'Module:EpisodeVariables/data/' .. frame.args[2] ) end if frame.args[2] == 'ja' then episodeVariablesResult = frame:preprocess(episodeVariablesData[episodeVariablesText]) else episodeVariablesResult = episodeVariablesData[episodeVariablesText] end return episodeVariablesResult or episodeVariablesText or "" end

return p