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