七字五行属什么| 海鲜中毒有什么反应| 晚上尿次数多什么原因| 总是干咳是什么原因| 吃鱼肝油有什么好处| 拒服兵役是什么意思| 子宫内膜炎用什么药效果好| 拉磨是什么意思| 皮肤一碰就红是什么原因| 牛头马面是什么生肖| 念珠菌是什么病| 为什么每次同房后都会尿路感染| 眼干是什么原因引起的| 心肌缺血吃什么好| ein是什么意思| 78属什么生肖| 生日派对是什么意思| 生蚝不能和什么一起吃| 小猫为什么一直叫| drg什么意思| 南昌有什么好玩的地方| 男鸡配什么属相最好| 88属什么生肖| 什么虫咬了起水泡| 冰心原名叫什么| 药吃多了会有什么后果| 下午六点多是什么时辰| 感冒不能吃什么| 散光看东西是什么样的| 限高什么意思| 梦见搞卫生什么意思| 吉兰巴雷综合征是什么病| tba是什么意思| 巴雷特是什么| 什么败走华容道不出所料| zoe什么意思| 吃猪脑有什么好处和坏处| 葡萄酒中的单宁是什么| 成人用品是什么| 胎盘早剥是什么意思| 细小是什么病什么症状| 什么蔬菜含钾高| 美育是什么意思| 肾炎吃什么食物好| 耳朵聋是什么原因| 不加一笔是什么字| 9月3号是什么日子| utc是什么意思| 梦见盖新房子是什么意思| 双肺纤维条索是什么意思| 鸡蛋不能和什么食物一起吃| 心跳的快是什么原因| 手指头红是什么原因| 血糖高适合吃什么零食| 喝什么解酒快| 精子是什么味道的| 读书破万卷下一句是什么| 口苦吃什么中药| 12月份什么星座| 马鲛鱼是什么鱼| 白色的玉是什么玉| o型血和ab型血生的孩子是什么血型| 血氧低吃什么提高的快| 青瓜是什么| 爸爸的爸爸叫什么儿歌| 2010属什么生肖| 令公子车祸隐藏了什么| 夏至吃什么传统食物| 外阴红肿瘙痒用什么药| 自作多情是什么意思| 高干是什么意思| 为什么佛山有三个车牌| 为什么新生儿会有黄疸| 警告处分有什么影响| 人生得意须尽欢是什么意思| 辰字属于五行属什么| 茶叶过期了有什么用途| 大血小板比率偏高是什么原因| 子宫内膜6mm意味着什么| 犟驴是什么意思| 做梦烧纸钱什么意思| 皮肤过敏有什么好办法| 妯娌关系是什么意思| 火影忍者大结局是什么| 脚肿是什么原因造成的| 手指甲出现双层是什么原因| 梨什么时候成熟| 息风止痉是什么意思| 腰痛吃什么药好| 温存是什么意思| 青梅煮酒什么意思| 耳毛念什么| 什么叫健康| 大什么一什么| 手脚发烫是什么原因造成的| 入职offer是什么意思| 后果的意思是什么| 弃猫效应是什么| 宝宝打嗝是什么原因引起的| 今年什么时间进伏| 女性吃什么改善更年期| 无名指麻木是什么原因| 紧急避孕药叫什么名字| 什么细节能感动摩羯男| 什么是高情商| 心衰吃什么药最好| 还债是什么意思| 猪肉不能和什么一起吃| 纳呆什么意思| 啄木鸟为什么不会脑震荡| 马克定食是什么意思| 邵字五行属什么| 小分子肽有什么作用| 经常手淫对身体有什么危害| 瘤变是什么意思| 什么的海藻| 手指甲紫色是什么原因| 黑枸杞泡水是什么颜色| 额头爱出汗是什么原因| fbi相当于中国的什么| 提拉米苏是什么东西| 挂科是什么意思| 睾丸皮痒用什么药膏| 什么快递便宜| 小腿麻木是什么原因| 旗舰是什么意思| 什么的嘴巴| 脊柱疼是什么原因| 儿童中耳炎用什么药最好| 1月1号什么星座| 阑尾炎有什么症状| mmol是什么单位| 梭织是什么意思| 女流之辈是什么意思| 女人什么时候是安全期| 阑尾炎什么症状| 科目三为什么这么难| 为什么人会衰老| 豆蔻年华是什么意思| 女的肾虚是什么症状| 警察两杠一星是什么级别| 常打嗝是什么原因| 中央组织部部长什么级别| 血脂高饮食应注意什么| 棺材用什么木材做最好| 安大爷是什么意思| 丙三醇是什么东西| 皮炎是什么原因引起的| 朱祁镇为什么杀于谦| 虚火牙痛吃什么药效果最快| 勾践属什么生肖| 不到长城非好汉的下一句是什么| 肛门坠胀吃什么药最好| 红色属于五行属什么| 静怡是什么意思| 咳血是什么原因引起的| 今年21岁属什么生肖| 水杯用什么材质的好| 亚甲减是什么意思| 有胃火口臭怎么办吃什么药| 阴虚是什么意思| 讹诈是什么意思| 哦耶是什么意思| 昏睡是什么症状| 气血两虚吃什么补最快| 美的是什么牌子| 画饼充饥是什么意思| 身上出冷汗是什么原因| 分分钟都妙不可言是什么歌| 54岁属什么的| 病毒由什么构成| 肺寒咳嗽吃什么药| 什么终于什么造句| 棉绸是什么面料| 母乳什么味道| 胸腰椎退行性变是什么意思| 白癜风用什么药膏| 乙肝恢复期是什么意思| 做什么生意最赚钱| 火加同念什么| 打美国电话前面加什么| 网飞是什么| 不喜欢是什么意思| pussy 什么意思| 蓝字五行属什么| 念珠菌阳性是什么病| 葸是什么意思| tritan是什么材质| 沱茶属于什么茶| 臭屁是什么意思| 感冒输液用什么药| 吃甘草片有什么副作用| 脑供血不足是什么原因引起的| 豸是什么意思| 吃什么有助于伤口愈合| 藏红花适合什么样的人喝| 下场是什么意思| 态度是什么意思| 衤字旁的字与什么有关| 痰有腥臭味是什么原因| 腋下有异味用什么药| 什么是应届毕业生| 羊水浑浊是什么原因造成的| 既寿永昌什么意思| 202年属什么生肖| 毕婚族是什么意思| 什么是乳胶床垫| 女人吃什么养颜又美白| 唐卡是什么材料做的| 中元节开什么生肖| 眼睛痛吃什么药好得快| 康复科是主要治疗什么| 梦见仙鹤是什么意思| 反应蛋白高是什么意思| 生活方式是什么意思| 甲钴胺片主要治什么病| 咳嗽吃什么水果最好| 六月二十三号是什么星座| 前列腺特异性抗原是什么意思| 小孩拉肚子吃什么食物| 穿刺是什么| 心跳加速心慌吃什么药| 腰上有痣代表什么| 难产是什么意思| 美国为什么叫鹰酱| 非萎缩性胃炎是什么意思| 洗头膏什么牌子好| 1103是什么星座| 12月2号什么星座| 手抓饼里面夹什么好吃| 东坡肉是什么菜系| 亥时是什么时候| 化痰祛痰吃什么药| 缺钾是什么原因引起的| 额头老出汗是什么原因| 哥谭市是什么意思| 入幕之宾是什么意思| 熬夜喝什么好| 薷是什么意思| 井柏然原名叫什么| 冰心原名是什么| 七九年属什么生肖| 打鼾是什么原因引起的| 拔完牙后能吃什么| 西梅不能和什么一起吃| 驴肉不能和什么一起吃| 什么是手淫| 吃什么能流产| 拉水便吃什么药| 九月十三是什么星座| 骨折吃什么恢复快| 肠胃挂什么科| 什么什么动听| 5月20号是什么星座| 扎马步有什么好处| 来日方长什么意思| 愚钝是什么意思| 军魂是什么意思| 福建人喜欢吃什么口味| 卧榻是什么意思| 什么东西倒立后会增加一半| 凌驾是什么意思| 三月一日是什么星座| 胡子发黄是什么原因| 百度Jump to content

《王与异界骑士》4月20日15:00~17:00停机维护公告

?????????? ??
百度 习近平主席铿锵有力的宣示再次表明,新时代的中国将与各国人民一道,一如既往为世界的和平发展汇聚力量,一以贯之推动构建人类命运共同体,始终不渝做世界和平的建设者、全球发展的贡献者、国际秩序的维护者。
--
-- This module implements
--  {{Color contrast ratio}}
--  {{Greater color contrast ratio}}
--  {{ColorToLum}}
--  {{RGBColorToLum}}
--
local p = {}
local HTMLcolor = mw.loadData( 'Module:Color contrast/colors' )

local function sRGB (v)
	if (v <= 0.03928) then
		v = v / 12.92
	else
		v = math.pow((v+0.055)/1.055, 2.4)
	end
	return v
end

local function rgbdec2lum(R, G, B)
	if ( 0 <= R and R < 256 and 0 <= G and G < 256 and 0 <= B and B < 256 ) then
		return 0.2126 * sRGB(R/255) + 0.7152 * sRGB(G/255) + 0.0722 * sRGB(B/255)
	else
		return ''
	end
end

local function hsl2lum(h, s, l)
	if ( 0 <= h and h < 360 and 0 <= s and s <= 1 and 0 <= l and l <= 1 ) then
		local c = (1 - math.abs(2*l - 1))*s
		local x = c*(1 - math.abs( math.fmod(h/60, 2) - 1) )
		local m = l - c/2

		local r, g, b = m, m, m
		if( 0 <= h and h < 60 ) then
			r = r + c
			g = g + x
		elseif( 60 <= h and h < 120 ) then
			r = r + x
			g = g + c
		elseif( 120 <= h and h < 180 ) then
			g = g + c
			b = b + x
		elseif( 180 <= h and h < 240 ) then
			g = g + x
			b = b + c
		elseif( 240 <= h and h < 300 ) then
			r = r + x
			b = b + c
		elseif( 300 <= h and h < 360 ) then
			r = r + c
			b = b + x
		end
		return rgbdec2lum(255*r, 255*g, 255*b)
	else
		return ''
	end
end

local function color2lum(c)

	if (c == nil) then
		return ''
	end

	-- html '#' entity
	c = c:gsub("&#35;", "#")

	-- whitespace
	c = c:match( '^%s*(.-)[%s;]*$' )

	-- unstrip nowiki strip markers
	c = mw.text.unstripNoWiki(c)

	-- lowercase
	c = c:lower()

	-- first try to look it up
	local L = HTMLcolor[c]
	if (L ~= nil) then
		return L
	end

	-- convert from hsl
	if mw.ustring.match(c,'^hsl%([%s]*[0-9][0-9%.]*[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*%)$') then
		local h, s, l = mw.ustring.match(c,'^hsl%([%s]*([0-9][0-9%.]*)[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*%)$')
		return hsl2lum(tonumber(h), tonumber(s)/100, tonumber(l)/100)
	end

	-- convert from rgb
	if mw.ustring.match(c,'^rgb%([%s]*[0-9][0-9]*[%s]*,[%s]*[0-9][0-9]*[%s]*,[%s]*[0-9][0-9]*[%s]*%)$') then
		local R, G, B = mw.ustring.match(c,'^rgb%([%s]*([0-9][0-9]*)[%s]*,[%s]*([0-9][0-9]*)[%s]*,[%s]*([0-9][0-9]*)[%s]*%)$')
		return rgbdec2lum(tonumber(R), tonumber(G), tonumber(B))
	end

	-- convert from rgb percent
	if mw.ustring.match(c,'^rgb%([%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*%)$') then
		local R, G, B = mw.ustring.match(c,'^rgb%([%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*%)$')
		return rgbdec2lum(255*tonumber(R)/100, 255*tonumber(G)/100, 255*tonumber(B)/100)
	end

	-- remove leading # (if there is one) and whitespace
	c = mw.ustring.match(c, '^[%s#]*([a-f0-9]*)[%s]*$')

	-- split into rgb
	local cs = mw.text.split(c or '', '')
	if( #cs == 6 ) then
		local R = 16*tonumber('0x' .. cs[1]) + tonumber('0x' .. cs[2])
		local G = 16*tonumber('0x' .. cs[3]) + tonumber('0x' .. cs[4])
		local B = 16*tonumber('0x' .. cs[5]) + tonumber('0x' .. cs[6])

		return rgbdec2lum(R, G, B)
	elseif ( #cs == 3 ) then
		local R = 16*tonumber('0x' .. cs[1]) + tonumber('0x' .. cs[1])
		local G = 16*tonumber('0x' .. cs[2]) + tonumber('0x' .. cs[2])
		local B = 16*tonumber('0x' .. cs[3]) + tonumber('0x' .. cs[3])

		return rgbdec2lum(R, G, B)
	end

	-- failure, return blank
	return ''
end

-- This exports the function for use in other modules.
-- The colour is passed as a string.
function p._lum(color)
	return color2lum(color)
end

function p._greatercontrast(args)
	local bias = tonumber(args['bias'] or '0') or 0
	local css = (args['css'] and args['css'] ~= '') and true or false
	local v1 = color2lum(args[1] or '')
	local c2 = args[2] or '#FFFFFF'
	local v2 = color2lum(c2)
	local c3 = args[3] or '#000000'
	local v3 = color2lum(c3)
	local ratio1 = -1;
	local ratio2 = -1;
	if (type(v1) == 'number' and type(v2) == 'number') then
		ratio1 = (v2 + 0.05)/(v1 + 0.05)
		ratio1 = (ratio1 < 1) and 1/ratio1 or ratio1
	end
	if (type(v1) == 'number' and type(v3) == 'number') then
		ratio2 = (v3 + 0.05)/(v1 + 0.05)
		ratio2 = (ratio2 < 1) and 1/ratio2 or ratio2
	end

	if css then
		local c1 = args[1] or ''
		if mw.ustring.match(c1, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') or
			mw.ustring.match(c1, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') then
				c1 = '#' .. c1
		end
		if mw.ustring.match(c2, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') or
			mw.ustring.match(c2, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') then
				c2 = '#' .. c2
		end
		if mw.ustring.match(v3, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') or
			mw.ustring.match(v3, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') then
				c3 = '#' .. c3
		end
		return 'background-color:' .. c1 .. '; color:' .. ((ratio1 > 0) and (ratio2 > 0) and ((ratio1 + bias > ratio2) and c2 or c3) or '') .. ';'
	end

	return (ratio1 > 0) and (ratio2 > 0) and ((ratio1 + bias > ratio2) and c2 or c3) or ''
end

function p._ratio(args)
	local v1 = color2lum(args[1])
	local v2 = color2lum(args[2])
	if (type(v1) == 'number' and type(v2) == 'number') then
		-- v1 should be the brighter of the two.
		if v2 > v1 then
			v1, v2 = v2, v1
		end
		return (v1 + 0.05)/(v2 + 0.05)
	else
		return args['error'] or '?'
	end
end

function p._styleratio(args)
	local style = (args[1] or ''):lower()
	local bg, fg = 'white', 'black'
	local lum_bg, lum_fg = 1, 0

	if args[2] then
		local lum = color2lum(args[2])
		if lum ~= '' then bg, lum_bg = args[2], lum end
	end
	if args[3] then
		local lum = color2lum(args[3])
		if lum ~= '' then fg, lum_fg = args[3], lum end
	end

	local slist = mw.text.split(mw.ustring.gsub(mw.ustring.gsub(style or '', '&#[Xx]23;', '#'), '&#35;', '#'), ';')
	for k = 1,#slist do
		local s = slist[k]
		local k,v = s:match( '^[%s]*([^:]-):([^:]-)[%s;]*$' )
		k = k or ''
		v = v or ''
		if (k:match('^[%s]*(background)[%s]*$') or k:match('^[%s]*(background%-color)[%s]*$')) then
			local lum = color2lum(v)
			if( lum ~= '' ) then bg, lum_bg = v, lum end
		elseif (k:match('^[%s]*(color)[%s]*$')) then
			local lum = color2lum(v)
			if( lum ~= '' ) then bg, lum_fg = v, lum end
		end
	end
	if lum_bg > lum_fg then
		return (lum_bg + 0.05)/(lum_fg + 0.05)
	else
		return (lum_fg + 0.05)/(lum_bg + 0.05)
	end
end

--[[
Use {{#invoke:Color contrast|somecolor}} directly or
{{#invoke:Color contrast}} from a wrapper template.

Parameters:
	-- |1=	— required; A color to check.
--]]
function p.lum(frame)
	local color = frame.args[1] or frame:getParent().args[1]
	return p._lum(color)
end

function p.ratio(frame)
	local args = frame.args[1] and frame.args or frame:getParent().args
	return p._ratio(args)
end

function p.styleratio(frame)
	local args = frame.args[1] and frame.args or frame:getParent().args
	return p._styleratio(args)
end

function p.greatercontrast(frame)
	local args = frame.args[1] and frame.args or frame:getParent().args
	return p._greatercontrast(args)
end

return p
如来佛祖和释迦牟尼是什么关系 天经地义是什么意思 补体c1q偏高说明什么 小儿发烧吃什么食物好 超体2什么时候上映
mv是什么单位 江字五行属什么 属猴与什么属相最配 莴笋不能和什么一起吃 什么是潜规则
乳房疼痛应该挂什么科 睡觉喜欢流口水是什么原因 小肠是干什么的 58岁属什么生肖 为什么会手抖
账单日是什么意思 农历是什么生肖 2月2日是什么星座 静待佳音什么意思 bu是什么颜色
黄精药材有什么功效hcv8jop7ns4r.cn 例假提前是什么原因hcv9jop6ns6r.cn 梦见猪是什么意思hcv8jop7ns6r.cn 心电图窦性心动过速是什么意思hcv8jop7ns2r.cn 下午5点半是什么时辰hcv9jop7ns4r.cn
软化耳屎的药水叫什么hcv8jop8ns0r.cn 乌岽单丛是什么茶hcv8jop5ns5r.cn 戏子是什么意思hcv9jop6ns9r.cn 月经期间不能吃什么hcv8jop8ns0r.cn 金牛座和什么星座最配hcv8jop4ns8r.cn
梦见烧纸钱是什么意思96micro.com 肺部挂什么科hcv9jop0ns8r.cn 傻狍子什么意思hcv9jop1ns9r.cn 打喷嚏流鼻涕吃什么药好hcv9jop3ns6r.cn 天伦之乐是什么意思hcv8jop4ns2r.cn
要强的女人是什么性格hcv8jop1ns5r.cn 习是什么结构的字hcv8jop1ns4r.cn 肝硬化是什么意思hcv8jop5ns9r.cn 医生为为什么建议不吃生菜hcv9jop4ns8r.cn 腋下淋巴结肿大挂什么科hcv7jop5ns1r.cn
百度