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