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