本站页面(多半)转载自萌娘百科的同名页面,依CC BY-NC-SA 3.0引入,贡献者可以在历史页查询。
因各种原因页面内容可能和源页面有所出入,非本站特有页面内容请以萌娘百科为准。
因各种原因页面内容可能和源页面有所出入,非本站特有页面内容请以萌娘百科为准。
- 你好~!欢迎来到萌娘百科镜像站!如需查看或编辑,请联系本站管理员注册账号。
- 本镜像站和其他萌娘百科的镜像站无关,请注意分别。
Module:Sandbox/Leranjun/achievements/single
< Module:Sandbox | Leranjun | achievements
跳到导航
跳到搜索
-- Module:Sandbox/Leranjun/achievements/single -- Made with ♥ by User:Leranjun local p = {} local getArgs = require("Module:Arguments").getArgs local generate = require("Module:Sandbox/Leranjun/achievements/core").generate local LIST = mw.loadData("Module:Sandbox/Leranjun/achievements/data") function p.main(frame) local r = "" local args = getArgs(frame) if (args.templatestyles == "true") then r = r .. frame:extensionTag("templatestyles", "", {src = "User:Leranjun/achievements/styles.css"}) end r = r .. p.generate(args[1], args.time, frame) return r end function p.generate(key, time, frame) frame = frame or mw.getCurrentFrame() local data = LIST[key] if (data) then local args = { ["img"] = frame:callParserFunction("filepath", data[1]), ["title"] = data[2], ["sub"] = data[3], ["desc"] = data[4], ["time"] = time } return generate(args) else return "" end end return p