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