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