置顶公告:【置顶】关于临时开启评论区所有功能的公告(2022.10.22) | 【置顶】关于本站Widget恢复使用的公告
  • 你好~!欢迎来到萌娘百科镜像站!如需查看或编辑,请联系本站管理员注册账号。
  • 本镜像站和其他萌娘百科的镜像站无关,请注意分别。

Module:Sandbox/贯井羽优的草莓胖次/签名

猛汉♂百科,万男皆可猛的百科全书!转载请标注来源页面的网页链接,并声明引自猛汉百科。内容不可商用。
跳到导航 跳到搜索
Template-info.svg 模块文档  [创建] [刷新]
local p = {}
 
local function notempty(s)
    return (s and s ~= "")
end

local getArgs = require("Module:Arguments").getArgs

local function wikitext(text1)
	return mw.getCurrentFrame():preprocess(text1)
end

local items = {
	{"白峰理沙","莎莉"},
	{"白银圭"},
	{"百地玉手"},
    {"本田透(水果篮子)","本田透"},
    {"仓上日向"}, 
	{"川口芳乃"},
    {"村上椎奈"},
    {"多田唯"},
    {"帆高夏海"},
    {"菲娜(熊熊勇闯异世界)","菲娜"},
    {"风色琴音"},
    {"高坂穗乃果","穗乃果"},
    {"高海千歌"},
    {"宫子(向阳素描)","宫子"},
    {"古河渚"},
    {"贯井羽优"},
    {"海凪小春"},
    {"花坂结衣"},
    {"加藤惠(路人女主的养成方法)","加藤惠"},
    {"结爱己"},
    {"锦木千束","千束"},
    {"拉媞珐·芙尔兰札","拉媞珐"},
    {"恋冢小梦"},
    {"菱曙"},
    {"泷本一二三","日富美"},
    {"美杜莎(邪神与厨二病少女)","ATM"},
    {"米莉姆·纳瓦","米莉姆"},
    {"木莲"},
    {"牧野神奈"},
    {"七宫智音"},
    {"青山七海"},
    {"日向夏帆"},
    {"伞木希美"},
    {"山口如月"},
    {"申鹤"},
    {"神里绫华"},
    {"四糸乃"},
    {"唐可可"},
    {"天海响"},
    {"田井中律"},
    {"田所惠"},
    {"薇奈特"},
    {"无声铃鹿"},
    {"西由宇子","优子"},
    {"小豆梓"},
    {"小荠"},
    {"小野寺小咲","小野寺"},
    {"星之守千秋","星之守"},
    {"雪白七七子","七七子"},
    {"雪平一果"},
    {"巽绀"},
    {"阳夏木蜜柑","蜜柑"},
    {"野田美希"},
    {"夜之森小红","小红"},
    {"一条萤"},
	{"伊地知虹夏","虹夏"},
    {"伊井野弥子","秀知门神"},
    {"鹰川堇"},
    {"优木雪菜"},
    {"由比滨结衣","团子"},
    {"有原翼"},
    {"永冢纱季"},
    {"宇治松千夜","千夜"},
    {"御庭摘希"},
    {"猿渡宇希"},
    {"志摩凛"},
    {"中野四叶"},
    {"柊镜"},
    {"种岛白杨"},
    {"猪濑舞"},
    {"猪熊阳子"},
    {"住良木现"},
    {"梓川枫"},
    {"佐仓千代"},
    {"佐天泪子"}
    }
 
function p.main(frame)
    local rand = math.mod(math.floor(os.time()/60),#items)+1
 
    return "[[" ..
        items[rand][1] .. '|<span style="color:#3da3db">' .. (items[rand][2] or items[rand][1]) .. "</span>]]" 
end

function p.check()
	t = wikitext('{|class="wikitable"') .. '\n' .. wikitext('|-').. '\n' .. wikitext('! style="position:sticky;top:0;"|老婆(共' .. #items .. '个) !! style="position:sticky;top:0;"|条目 ')
	for i = 1,#items
	do
		 t = t .. '\n' .. wikitext('|-').. '\n'.. wikitext('|' .. (items[i][2] or items[i][1]) .. '|| [[' .. items[i][1] .. ']]')
	end
	t = t .. '\n' .. wikitext('|}')
	return t
end
 
return p