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