259是什么意思| 琼脂是什么东西| npn是什么意思| 精氨酸是什么| 为什么手比脸白那么多| 5月11日什么星座| 尿蛋白是什么病| 奠什么意思| 脑梗是什么原因引起的| 蜘蛛吃什么食物| 巨蟹座女和什么座最配| 什么是直肠炎| 哥德巴赫猜想是什么| 3p什么意思| 妇科假丝酵母菌是什么病| 一个鸟一个衣是什么字| live什么意思| 析是什么意思| 姨妈期可以做什么运动| 易举易泄是什么原因| 刘姥姥和贾府什么关系| 唐宋元明清前面是什么| 为什么怀孕这么难| 什么叫瑕疵| 两肋插刀是什么意思| 气加山念什么| 例假期间适合吃什么水果| 狗牯脑茶属于什么茶| 肝脏低回声意味着什么| 91是什么意思| 小孩子晚上睡觉磨牙是什么原因| 鸡涌是什么意思| jewelry什么意思| 眼睛干痒用什么眼药水| 什么是性激素| 妄想症有什么症状| 醋加小苏打有什么作用| 印第安纹是什么| 舌苔发白是什么原因呢| 男性尿血是什么原因导致的| 醉清风是什么意思| 无偿献血证有什么用| 小狗吃什么| nad是什么| 细胞是由什么构成的| 做什么运动可以瘦腿| 婴儿打嗝是什么原因| k值是什么意思| 得莫利是什么意思| 羊奶粉有什么好处| 奉子成婚是什么意思| 三伏天什么时候最热| 吃什么增强性功能| 牙胶是什么| 眼压高有什么症状和危害| 头皮发麻是什么病的前兆| 外阴痒用什么| 帕罗西汀是什么药| 什么是无为| 刀伤用什么药愈合最快| 什么是回迁房| 白葡萄酒配什么食物| 脂肪肝能吃什么水果| 历时是什么意思| 狠人是什么意思| 擦伤挂什么科| 乔治白属于什么档次| 11月2号是什么星座| 耳朵发炎吃什么消炎药| 运交华盖是什么意思| 做梦相亲是什么意思| 胆大包天是什么生肖| 目瞪口呆是什么生肖| 赖是什么意思| 飞廉是什么意思| 咳嗽有痰吃什么药| 脂浊是什么意思| 扶他林是什么药| 猴子是什么动物| 吃什么对脾胃好| 阳痿早泄是什么原因| 一什么圆月| 为什么伴娘要未婚| 农历6月28日是什么星座| 憋屈是什么意思| 挂面是什么面| 为什么拔罐肩膀最黑| 微博会员有什么功能| 后生可畏是什么意思| 腿脚发麻是什么原因| 什么药降肌酐| 受凉拉肚子吃什么药| o型血和o型血生的孩子是什么血型| 王母娘娘叫什么名字| 泽五行属什么| 髋关节积液是什么原因造成的| 投放是什么意思| 睡醒手麻是什么原因引起的| 指甲紫色是什么原因| 地图舌吃什么药| 精索静脉曲张有什么症状| vj是什么| 黑鱼吃什么| 山竹有什么好处| 什么样的西瓜甜| pid是什么意思| 漫展是干什么的| 47岁属什么| gg了是什么意思| 梦见吃油饼是什么意思| 风信子的花语是什么| 子宫内膜病变有什么症状| 塑胶厂是做什么的| 媚骨是什么意思| copd是什么意思| 爱心是什么意思| 腋毛变白是什么原因| 小月子吃什么好| 什么是植物油| 拉屎擦屁股纸上有血什么原因| 五十肩是什么意思| 中专什么时候报名| 排卵试纸阴性是什么意思| 喜爱的反义词是什么| 肾主骨是什么意思| 梦到自行车丢了是什么意思| 方知是什么意思| 脑供血不足用什么药效果最好| ahc是韩国什么档次| 舌头上有黑苔是什么原因| 一什么永什么成语| 蔓越莓有什么功效和作用| 什么时候放开二胎| 菲薄是什么意思| 银屑病是什么| 什么的恐龙| 松脂是什么| 范畴的意思是什么| 三文鱼为什么可以生吃| 维生素c有什么好处| lsp什么意思| 2030年是什么年| 吃什么可以让胸部变大| 什么叫扁平疣长什么样| 喉咙肿瘤有什么症状| darling什么意思| 喝了蜂蜜水不能吃什么| 什么叫变态| o型血与b型血生的孩子是什么血型| top1什么意思| 城隍爷是什么神| 院长是什么级别| 听雨是什么意思| 韵五行属什么| 屁股大什么原因| 蜜糖有什么功效和作用| 备孕不应该吃什么| 有鸟飞进屋是什么预兆| 敞开心扉是什么意思| 结肠炎吃什么药好| 生气对身体有什么危害| 帕金森是什么引起的| 减肥每天吃什么三餐| 胎心胎芽最晚什么时候出现| 白子是什么| 女性经常手淫有什么危害| 有加有减先算什么| 间接胆红素偏高是什么原因| 智是什么意思| 心肌酶是检查什么的| 保险凭证号是什么| 喉咙有痰挂什么科| 艾灸是什么东西| 777是什么意思| 红花是什么生肖| 烀是什么意思| 上颚起泡是什么原因| 吃什么促进新陈代谢| 戾气什么意思| 三点水翟读什么| 子宫脱落是什么原因引起的| 五月十四号是什么情人节| 百什么争鸣成语| 双清是什么意思| 头皮发红是什么原因| 小腿肌肉抽筋是什么原因引起的| 口腔溃疡吃什么食物| 加拿大属于什么洲| 旻读什么| 无回声结节是什么意思| 你真狗是什么意思| 白癜风用什么药膏| 奶篓子是什么意思| 师夷长技以制夷什么意思| 羽下面隹什么字| 肺肾两虚吃什么中成药| 济公原名叫什么| 着了过是什么词| zw是什么意思| 葬礼穿什么衣服| 羟苯乙酯是什么| 技校算什么学历| colombo是什么牌子| 朴实无华是什么意思| 沧海遗珠是什么意思| 小孩子打呼噜是什么原因| 脑梗复查挂什么科| 男生下面疼是什么原因| 龙和什么生肖最配| 5月什么星座| 土耳其是什么人种| 龟裂是什么意思| 高烧后拉稀说明什么| 鸡婆什么意思| 胰岛素针头4mm和5mm有什么区别| 牙龈肿了吃什么药| 107是什么意思| george是什么牌子| 为什么会有胎记| 蛇吃什么| 孕妇血压低吃什么能补上来| 母子健康手册有什么用| 明心见性什么意思| 今非昔比是什么意思| 其实不然是什么意思| 铁锭是什么意思| 申时是什么时候| 春运是什么意思| 绅士什么意思| icd医学上是什么意思| 外阴白斑是什么| 检查骨密度挂什么科| 智商135是什么水平| 微量蛋白尿高说明什么| 世界上最大的沙漠是什么沙漠| 龙的本命佛是什么佛| 人为什么会焦虑| 张嘴睡觉有什么危害| 7.21是什么日子| 单核细胞百分比偏高是什么原因| 喝绿茶对身体有什么好处| 短发适合什么脸型| 杭州有什么景点| 女生什么时候最想要| 胃不好吃什么| 肿瘤吃什么中药能消除| 后宫是什么意思| blingbling什么意思| 一什么而入| 为什么说白痰要人命| ccr是什么意思| 什么的足迹| 妇科检查白细胞酯酶阳性是什么意思| 腹泻什么意思| 风湿类风湿有什么区别| 盆底肌松弛有什么症状| 相性是什么意思| 干酪是什么| 比围是什么| 钱丢了预示着什么| 九月份什么星座| vm是什么意思| 心肌炎做什么检查| 关节痛吃什么药| 百度Pereiti prie turinio

鸽子不能和什么一起吃

Puslapis i? Vikipedijos, laisvosios enciklopedijos.
百度 大学生村官必须为服务期满且已转为事业编制或考录为公务员,或者从选聘到村任职起工作满4年且目前仍在村官岗位,具有大专以上学历。

Documentation for this module may be created at Module:Color contrast/doc

--
-- 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
羊肉和什么不能一起吃 荨麻疹什么症状 阴唇肥大是什么原因 喝什么降尿酸 眉头长痘痘是因为什么原因引起的
艾灸有什么好处 紫草是什么 sad什么意思 肿瘤手术后吃什么好 定增股票是什么意思
肚子饿了为什么会叫 为什么夏天越来越热 上坟可以带什么水果 什么是意淫 什么是尿崩症
胳膊上的花是打了什么疫苗 伊朗用什么货币 什么是继发性肺结核 烟头属于什么垃圾 什么叫孝顺
中国第一艘航空母舰叫什么hcv9jop5ns1r.cn 容易出汗是什么问题hcv9jop0ns3r.cn 有事钟无艳无事夏迎春是什么意思hcv8jop0ns6r.cn 鹅口疮是什么样的图片hcv7jop5ns2r.cn 五步蛇长什么样hcv8jop5ns5r.cn
打鼾是什么原因引起的helloaicloud.com t代表什么imcecn.com 生闷气是什么意思hcv8jop1ns3r.cn 吃什么会瘦hcv8jop4ns5r.cn 软组织损伤是什么意思hcv9jop6ns1r.cn
脂肪肝有什么症状hcv8jop7ns1r.cn 2003年的羊是什么命hcv7jop5ns3r.cn 脱节是什么意思hcv8jop0ns2r.cn 凤凰是什么hcv9jop0ns3r.cn 伤到什么程度打破伤风jasonfriends.com
代表什么意思hcv8jop8ns4r.cn 七月11日是什么星座hcv9jop4ns6r.cn 胰腺不好吃什么食物好hcv8jop4ns7r.cn 炒菜放什么调料最好吃hcv8jop6ns8r.cn 孩子注意力不集中缺什么微量元素hcv8jop1ns1r.cn
百度