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