Modul:SDBHChapterVariables
Aus DragonballWiki
Weitere Optionen
Die Dokumentation für dieses Modul kann unter Modul:SDBHChapterVariables/Doku erstellt werden
local p = {}
function p.main( frame )
local SDBHChapterVariablesText = frame.args[1]
local SDBHChapterVariablesData = ""
local SDBHChapterVariablesResult = ""
if frame.args[2] == nil then
SDBHChapterVariablesData = mw.loadData( 'Module:SDBHChapterVariables/data' )
else
SDBHChapterVariablesData = mw.loadData( 'Module:SDBHChapterVariables/data/' .. frame.args[2] )
end
if frame.args[2] == 'ja' then
SDBHChapterVariablesResult = frame:preprocess(SDBHChapterVariablesData[SDBHChapterVariablesText])
else
SDBHChapterVariablesResult = SDBHChapterVariablesData[SDBHChapterVariablesText]
end
return SDBHChapterVariablesResult or SDBHChapterVariablesText or ""
end
return p