Module:MagazineVariables

local p = {}

function p.main( frame ) local magazineVariablesText = frame.args[1] local magazineVariablesData = mw.loadData( 'Module:MagazineVariables/data' ) return magazineVariablesData[magazineVariablesText] or magazineVariablesText or "" end

function p.jptext( frame ) local magazineVariablesText = frame.args[1] local magazineVariablesData = mw.loadData( 'Module:MagazineVariables/dataJ' ) local magazineVariablesReturn = frame:preprocess(magazineVariablesData[magazineVariablesText]) if magazineVariablesReturn == "nil" then magazineVariablesReturn = magazineVariablesText end return magazineVariablesReturn or magazineVariablesText or "" end

function p.romaji( frame ) local magazineVariablesText = frame.args[1] local magazineVariablesData = mw.loadData( 'Module:MagazineVariables/dataR' ) return magazineVariablesData[magazineVariablesText] or magazineVariablesText or "" end

return p