Module:ChapterVariables

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Revision as of 19:44, 30 December 2022 by HudgynS (talk | contribs)
Jump to navigation Jump to search

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

local p = {}

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

function p.jptext( frame )
    local chapterVariablesText = frame.args[1]
    local chapterVariablesData = mw.loadData( 'Module:ChapterVariables/dataJ' )
    return chapterVariablesData[chapterVariablesText] or chapterVariablesText or ""
end

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

return p