本站页面(多半)转载自萌娘百科的同名页面,依CC BY-NC-SA 3.0引入,贡献者可以在历史页查询。
因各种原因页面内容可能和源页面有所出入,非本站特有页面内容请以萌娘百科为准。
因各种原因页面内容可能和源页面有所出入,非本站特有页面内容请以萌娘百科为准。
- 你好~!欢迎来到萌娘百科镜像站!如需查看或编辑,请联系本站管理员注册账号。
- 本镜像站和其他萌娘百科的镜像站无关,请注意分别。
Module:Sandbox/Camille1111/Signature
跳到导航
跳到搜索
local p = {}--[[ 仿照一位史蒂夫写的模块,用于个人签名。 --]] local function notempty(s) return (s and s ~= "") end function p.main(frame) if (notempty(frame.args["link"])) then local r = "[[" .. frame.args["link"] .. '|<span style="color:#FD5F8A">' if (notempty(frame.args["text"])) then r = r .. frame.args["text"] else r = r .. frame.args["link"] end return r .. "</span>]]" end local items = { { "DD党", "单推人" }, { "鹿乃", "小鹿包" }, { "galgame", "黄油蟹蟹" }, { "原神", "旅行者" }, { "东方Project", "东方众" }, { "明日方舟", "刀客塔" } } math.randomseed(tostring(os.time()):reverse():sub(1, 6)) local rand = math.random(#items) return "[[" .. items[rand][1] .. '|<span style="color:#F06292;text-shadow:0px 0px 10px #FCE4EC">' .. (items[rand][2] or items[rand][1]) .. "</span>]]" end return p