Modul:ChDragonBallSDChapterVariables: Unterschied zwischen den Versionen
Aus DragonballWiki
Weitere Optionen
Gokussj7 (Diskussion | Beiträge) (Gokussj7 verschob die Seite Modul:ChragonBallSDChapterVariables nach Modul:ChDragonBallSDChapterVariables, ohne dabei eine Weiterleitung anzulegen) K |
|
(kein Unterschied)
| |
Version vom 12. Oktober 2024, 09:29 Uhr
Die Dokumentation für dieses Modul kann unter Modul:ChDragonBallSDChapterVariables/Doku erstellt werden
local p = {}
function p.main( frame )
local ChragonBallSDChapterVariablesText = frame.args[1]
local ChragonBallSDChapterVariablesData = ""
local ChragonBallSDChapterVariablesResult = ""
if frame.args[2] == nil then
ChragonBallSDChapterVariablesData = mw.loadData( 'Module:ChragonBallSDChapterVariables/data' )
else
ChragonBallSDChapterVariablesData = mw.loadData( 'Module:ChragonBallSDChapterVariables/data/' .. frame.args[2] )
end
if frame.args[2] == 'ja' then
ChragonBallSDChapterVariablesResult = frame:preprocess(ChragonBallSDChapterVariablesData[ChragonBallSDChapterVariablesText])
else
ChragonBallSDChapterVariablesResult = ChragonBallSDChapterVariablesData[ChragonBallSDChapterVariablesText]
end
return ChragonBallSDChapterVariablesResult or ChragonBallSDChapterVariablesText or ""
end
return p