奇点是什么| 挑什么| 环移位了会出现什么症状| 检查尿酸挂什么科| 微博会员有什么功能| 胃酸过多是什么原因造成的| 管医院的是什么部门| 肝脏低回声意味着什么| 爱屋及乌是什么意思| 2050年是什么年| 叕怎么读音是什么意思| 月关是什么意思| 甘油三酯高有什么危害| 为什么叫211大学| 前身是什么意思| 亚甲炎是什么原因引起的| 穿刺活检是什么意思| 中联办是什么级别| 双什么意思| tg是什么| 俗气是什么意思| 脚有酸臭味是什么原因| 胃炎吃什么药最有效| 魔术贴是什么| 属羊的守护神是什么菩萨| 慢性浅表性胃炎吃什么药好得快| 头发拉焦了有什么补救| 什么的变化| 吃什么药能让月经马上来| 什么人不适合做业务员| o型血和b型血生的孩子是什么血型| 16周检查什么项目| 后脑勺长白头发是什么原因| 1966年是什么命| 孔子是什么家| 症结是什么意思| 三月出生的是什么星座| 什么情况下血压会升高| 稍纵即逝什么意思| 胃部彩超能检查出什么| 书是什么排比句| 右肋骨疼是什么原因| 言重了是什么意思| 红楼梦什么朝代| 六月二十七是什么日子| 种牙是什么意思| 线束厂是做什么的| 什么东西能解酒| 红袖什么意思| hp感染是什么意思| 气道高反应是什么意思| 恶露是什么东西| 崎胎瘤是什么| 血癌是什么原因造成的| 老公是什么意思| nt是什么币| 立普妥是什么药| 亿后面是什么单位| 托梦是什么意思| 狗眼看人低是什么意思| 舌苔厚黄吃什么药最好| 一般什么人容易得甲亢| 苹果醋什么时候喝最好| 什么是腔梗| 男人练臀桥有什么用| 6.20什么星座| 瘤变是什么意思| 海白菜是什么菜| 今天什么时辰立秋| 三伏天吃什么最好| 五什么六什么的成语| 朱元璋为什么杀徐达| 吐奶严重是什么原因| kangol是什么牌子| 蓝色属于什么五行属性| 身上长黑痣是什么原因| 64是什么| 裂变是什么意思| 鸡杂是什么| mnm是什么单位| 十二指肠溃疡是什么症状| 什么是体制内的工作| 缺维生素d吃什么| 乱点鸳鸯谱什么意思| 打是什么意思| 梦见自己孩子死了是什么意思| 乙肝检查挂什么科| 双向情感障碍是什么病| 钙是什么| 低密度脂蛋白高吃什么药| 促甲状腺素低是什么原因| 95年属于什么生肖| 有什么办法让男人死精| 下眼皮跳动是什么原因| 晚上适合吃什么| 肛门跳动是什么原因| 鱼油功效和作用是什么| 轻度肠化是什么意思| 南极和北极有什么区别| 一代宗师是什么意思| 胃穿孔是什么症状| 内科主要看什么病| 小孩拉肚子应该吃什么食物好| cmyk代表什么颜色| 身上经常出汗是什么原因| 马叉虫是什么意思| 放我一个人生活是什么歌| 女人什么时候排卵| 今年男宝宝取什么名字好| 寒碜是什么意思| 肾结石是什么症状| 家里进鸟了是什么预兆| 党参不能和什么一起吃| 什么时候看到的月亮最大| 面目狰狞是什么意思| 11年是什么婚| 7月24日什么星座| 胃溃疡什么症状| 经常喝柠檬水有什么好处和坏处| 什么是比例| 子痫是什么意思| 二垒是什么意思| 口腔医学技术是干什么的| 圆脸适合什么短发发型| 功能性消化不良是什么意思| 眼睛干涩是什么原因引起的| 喝酒前喝什么不容易醉又不伤胃| 老年人吃什么钙片补钙好| 脸上容易出油是什么原因| 回流什么意思| 甲状腺病变是什么意思| 膝盖内侧疼是什么原因| 小老头是什么意思| 一九八三年属什么生肖| fe是什么元素| 爱是什么排比句| 老人怕冷是什么原因| 人生没有什么不可放下| 什么是羊水栓塞| 猩红热是什么症状| 夏天吃姜有什么好处| 口臭用什么药| 为什么会有湿气| 钛对人体有什么好处| 吃了兔子肉不能吃什么| 凤五行属性是什么| 肉毒为什么怕热敷| 堪舆是什么意思| 医保报销需要什么材料| 吃什么升白细胞最快| 梦见小葱是什么意思| 仙草是什么| 气山读什么| 狗狗打喷嚏流鼻涕怎么办吃什么药| 酸奶对人体有什么好处| 女主是什么意思| 柔式按摩是什么| 什么季节| 长孙皇后为什么叫观音婢| 2.26是什么星座| otc药是什么意思| 人格魅力什么意思| 肌酐高吃什么水果好| 根管是什么| 什么蛇不咬人| 阴道炎什么症状| 什么人不适合做收银员| 梦见打狼是什么预兆| 外感病是什么意思| 1932年属什么生肖| 倒卖是什么意思| 腐男是什么意思| 做背有什么好处及作用| 男生为什么喜欢女生| 舌苔黄是什么原因引起的| 胖大海和什么搭配最好| 儿童乐园有什么好玩的| 男性结扎是什么意思| 为什么叫马桶| 企鹅代表什么生肖| 放疗有什么副作用| 无名指比中指长代表什么| 排卵期是指什么时候| 女人阴唇发黑是什么原因| 反酸是什么感觉| 咳嗽吐黄痰是什么原因| 人老了为什么会瘦| 人设是什么意思| 酮体是什么意思| 守株待兔是什么意思| 肚子左侧是什么器官| 什么茶好喝又对身体好| 宫颈糜烂用什么药好| 初衷是什么意思| 黄子韬爸爸是干什么的| 风尘是什么意思| tct检查是什么检查| 白细胞2加号什么意思| barbie是什么意思| 重阳节送老人什么礼物| 母仪天下什么意思| 12月27日是什么星座| 叫嚣是什么意思| 死心眼什么意思| 大姨妈为什么会推迟| 吃什么食物增加黑色素| 鸡蛋壳属于什么垃圾| 什么是乳糖不耐受| 无花果有什么好处| 透骨草治什么病最有效| 女性下面流水什么原因| 扫地僧是什么意思| 督邮相当于现在什么官| 半身不遂是什么原因引起的| 上火喝什么比较好| 夏天是什么时候| 肺结节影是什么意思啊| 落拓是什么意思| 五月初十是什么星座| 腹部b超挂什么科| 中东为什么叫中东| 卡路里什么意思| 兔子能吃什么| 家里蟑螂多是什么原因| 蒲公英的种子像什么| 宫外孕有什么症状| 岁月如歌下一句是什么| 牙齿出血是什么病征兆| 甄是什么意思| 下午8点是什么时辰| 九月九日是什么节日| 法警是什么编制| 21三体高风险是什么原因造成的| 水漂是什么意思| 木芙蓉什么时候开花| 卖萌是什么意思| 什么呀| 清凉的什么| 芳华什么意思| 考试为什么要用2b铅笔| leslie什么意思| m是什么尺码| 麻婆豆腐是什么菜系| 为什么不来大姨妈也没有怀孕| 月经失调是什么意思| 家里进蛇有什么预兆| 横截面是什么意思| kap是什么意思| 早泄什么症状| 黑胡桃色是什么颜色| 枸橼酸西地那非片是什么药| 低gi是什么意思| 脉数是什么意思| 猫吐了吃什么药| 月亮什么时候是圆的| 蛞蝓是什么动物| 胸痛一阵一阵的痛什么原因| 右手心痒是什么预兆| 玉兰片和竹笋有什么区别| 含漱是什么意思| 父亲节什么时候| 1度房室传导阻滞是什么意思| 粉色是什么颜色配成的| 肺部真菌感染吃什么药| 百度???? ??

“地球一小时”活动在各地举行

??? ?? ??
????, ?? ??? ???.
?? ????[??] [??] [??] [?? ??]
百度 当时在国足后场倒脚中,不知道是因为太紧张还是根本就是心不在焉,王燊超竟然将球停到5米之外,如此粗糙的脚下技术,相信他的恩师徐根宝看了不知道会作何感想。

? ??? #invoke??? ??? ??? ?? ??? ? ?? ???. ?? ??? ?? ???? ?? ???? #invoke? ?? ?? ???? ?? ?? ????. ??? ??? ?????:

  • ??? ??? ?? ???? ???? ??? ?????.
  • ??? ??? ??? ? ?? ???? ?? ??? ???? ? ????.
  • ??? ?? ?? ????? ??, ?? ??? ????? ???? ? ????.
  • ??? ???? ??(fetch)?? <ref>...</ref> ??? (??) ??? ????? ??? ???.
  • ???? ??? ??? ??? ?????.

?? ???

?? ??? ???? ???. getArgs?? ??? ??? ?? ?????.

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

? ??? ???? en:Module:Arguments? ??????.

-- This module provides easy processing of arguments passed to Scribunto from
-- #invoke. It is intended for use by other Lua modules, and should not be
-- called from #invoke directly.

local libraryUtil = require('libraryUtil')
local checkType = libraryUtil.checkType

local arguments = {}

-- Generate four different tidyVal functions, so that we don't have to check the
-- options every time we call it.

local function tidyValDefault(key, val)
	if type(val) == 'string' then
		val = val:match('^%s*(.-)%s*$')
		if val == '' then
			return nil
		else
			return val
		end
	else
		return val
	end
end

local function tidyValTrimOnly(key, val)
	if type(val) == 'string' then
		return val:match('^%s*(.-)%s*$')
	else
		return val
	end
end

local function tidyValRemoveBlanksOnly(key, val)
	if type(val) == 'string' then
		if val:find('%S') then
			return val
		else
			return nil
		end
	else
		return val
	end
end

local function tidyValNoChange(key, val)
	return val
end

local function matchesTitle(given, title)
	local tp = type( given )
	return (tp == 'string' or tp == 'number') and mw.title.new( given ).prefixedText == title
end

local translate_mt = { __index = function(t, k) return k end }

function arguments.getArgs(frame, options)
	checkType('getArgs', 1, frame, 'table', true)
	checkType('getArgs', 2, options, 'table', true)
	frame = frame or {}
	options = options or {}

	--[[
	-- Set up argument translation.
	--]]
	options.translate = options.translate or {}
	if getmetatable(options.translate) == nil then
		setmetatable(options.translate, translate_mt)
	end
	if options.backtranslate == nil then
		options.backtranslate = {}
		for k,v in pairs(options.translate) do
			options.backtranslate[v] = k
		end
	end
	if options.backtranslate and getmetatable(options.backtranslate) == nil then
		setmetatable(options.backtranslate, {
			__index = function(t, k)
				if options.translate[k] ~= k then
					return nil
				else
					return k
				end
			end
		})
	end

	--[[
	-- Get the argument tables. If we were passed a valid frame object, get the
	-- frame arguments (fargs) and the parent frame arguments (pargs), depending
	-- on the options set and on the parent frame's availability. If we weren't
	-- passed a valid frame object, we are being called from another Lua module
	-- or from the debug console, so assume that we were passed a table of args
	-- directly, and assign it to a new variable (luaArgs).
	--]]
	local fargs, pargs, luaArgs
	if type(frame.args) == 'table' and type(frame.getParent) == 'function' then
		if options.wrappers then
			--[[
			-- The wrappers option makes Module:Arguments look up arguments in
			-- either the frame argument table or the parent argument table, but
			-- not both. This means that users can use either the #invoke syntax
			-- or a wrapper template without the loss of performance associated
			-- with looking arguments up in both the frame and the parent frame.
			-- Module:Arguments will look up arguments in the parent frame
			-- if it finds the parent frame's title in options.wrapper;
			-- otherwise it will look up arguments in the frame object passed
			-- to getArgs.
			--]]
			local parent = frame:getParent()
			if not parent then
				fargs = frame.args
			else
				local title = parent:getTitle():gsub('/sandbox$', '')
				local found = false
				if matchesTitle(options.wrappers, title) then
					found = true
				elseif type(options.wrappers) == 'table' then
					for _,v in pairs(options.wrappers) do
						if matchesTitle(v, title) then
							found = true
							break
						end
					end
				end

				-- We test for false specifically here so that nil (the default) acts like true.
				if found or options.frameOnly == false then
					pargs = parent.args
				end
				if not found or options.parentOnly == false then
					fargs = frame.args
				end
			end
		else
			-- options.wrapper isn't set, so check the other options.
			if not options.parentOnly then
				fargs = frame.args
			end
			if not options.frameOnly then
				local parent = frame:getParent()
				pargs = parent and parent.args or nil
			end
		end
		if options.parentFirst then
			fargs, pargs = pargs, fargs
		end
	else
		luaArgs = frame
	end

	-- Set the order of precedence of the argument tables. If the variables are
	-- nil, nothing will be added to the table, which is how we avoid clashes
	-- between the frame/parent args and the Lua args.
	local argTables = {fargs}
	argTables[#argTables + 1] = pargs
	argTables[#argTables + 1] = luaArgs

	--[[
	-- Generate the tidyVal function. If it has been specified by the user, we
	-- use that; if not, we choose one of four functions depending on the
	-- options chosen. This is so that we don't have to call the options table
	-- every time the function is called.
	--]]
	local tidyVal = options.valueFunc
	if tidyVal then
		if type(tidyVal) ~= 'function' then
			error(
				"bad value assigned to option 'valueFunc'"
					.. '(function expected, got '
					.. type(tidyVal)
					.. ')',
				2
			)
		end
	elseif options.trim ~= false then
		if options.removeBlanks ~= false then
			tidyVal = tidyValDefault
		else
			tidyVal = tidyValTrimOnly
		end
	else
		if options.removeBlanks ~= false then
			tidyVal = tidyValRemoveBlanksOnly
		else
			tidyVal = tidyValNoChange
		end
	end

	--[[
	-- Set up the args, metaArgs and nilArgs tables. args will be the one
	-- accessed from functions, and metaArgs will hold the actual arguments. Nil
	-- arguments are memoized in nilArgs, and the metatable connects all of them
	-- together.
	--]]
	local args, metaArgs, nilArgs, metatable = {}, {}, {}, {}
	setmetatable(args, metatable)

	local function mergeArgs(tables)
		--[[
		-- Accepts multiple tables as input and merges their keys and values
		-- into one table. If a value is already present it is not overwritten;
		-- tables listed earlier have precedence. We are also memoizing nil
		-- values, which can be overwritten if they are 's' (soft).
		--]]
		for _, t in ipairs(tables) do
			for key, val in pairs(t) do
				if metaArgs[key] == nil and nilArgs[key] ~= 'h' then
					local tidiedVal = tidyVal(key, val)
					if tidiedVal == nil then
						nilArgs[key] = 's'
					else
						metaArgs[key] = tidiedVal
					end
				end
			end
		end
	end

	--[[
	-- Define metatable behaviour. Arguments are memoized in the metaArgs table,
	-- and are only fetched from the argument tables once. Fetching arguments
	-- from the argument tables is the most resource-intensive step in this
	-- module, so we try and avoid it where possible. For this reason, nil
	-- arguments are also memoized, in the nilArgs table. Also, we keep a record
	-- in the metatable of when pairs and ipairs have been called, so we do not
	-- run pairs and ipairs on the argument tables more than once. We also do
	-- not run ipairs on fargs and pargs if pairs has already been run, as all
	-- the arguments will already have been copied over.
	--]]

	metatable.__index = function (t, key)
		--[[
		-- Fetches an argument when the args table is indexed. First we check
		-- to see if the value is memoized, and if not we try and fetch it from
		-- the argument tables. When we check memoization, we need to check
		-- metaArgs before nilArgs, as both can be non-nil at the same time.
		-- If the argument is not present in metaArgs, we also check whether
		-- pairs has been run yet. If pairs has already been run, we return nil.
		-- This is because all the arguments will have already been copied into
		-- metaArgs by the mergeArgs function, meaning that any other arguments
		-- must be nil.
		--]]
		if type(key) == 'string' then
			key = options.translate[key]
		end
		local val = metaArgs[key]
		if val ~= nil then
			return val
		elseif metatable.donePairs or nilArgs[key] then
			return nil
		end
		for _, argTable in ipairs(argTables) do
			local argTableVal = tidyVal(key, argTable[key])
			if argTableVal ~= nil then
				metaArgs[key] = argTableVal
				return argTableVal
			end
		end
		nilArgs[key] = 'h'
		return nil
	end

	metatable.__newindex = function (t, key, val)
		-- This function is called when a module tries to add a new value to the
		-- args table, or tries to change an existing value.
		if type(key) == 'string' then
			key = options.translate[key]
		end
		if options.readOnly then
			error(
				'could not write to argument table key "'
					.. tostring(key)
					.. '"; the table is read-only',
				2
			)
		elseif options.noOverwrite and args[key] ~= nil then
			error(
				'could not write to argument table key "'
					.. tostring(key)
					.. '"; overwriting existing arguments is not permitted',
				2
			)
		elseif val == nil then
			--[[
			-- If the argument is to be overwritten with nil, we need to erase
			-- the value in metaArgs, so that __index, __pairs and __ipairs do
			-- not use a previous existing value, if present; and we also need
			-- to memoize the nil in nilArgs, so that the value isn't looked
			-- up in the argument tables if it is accessed again.
			--]]
			metaArgs[key] = nil
			nilArgs[key] = 'h'
		else
			metaArgs[key] = val
		end
	end

	local function translatenext(invariant)
		local k, v = next(invariant.t, invariant.k)
		invariant.k = k
		if k == nil then
			return nil
		elseif type(k) ~= 'string' or not options.backtranslate then
			return k, v
		else
			local backtranslate = options.backtranslate[k]
			if backtranslate == nil then
				-- Skip this one. This is a tail call, so this won't cause stack overflow
				return translatenext(invariant)
			else
				return backtranslate, v
			end
		end
	end

	metatable.__pairs = function ()
		-- Called when pairs is run on the args table.
		if not metatable.donePairs then
			mergeArgs(argTables)
			metatable.donePairs = true
		end
		return translatenext, { t = metaArgs }
	end

	local function inext(t, i)
		-- This uses our __index metamethod
		local v = t[i + 1]
		if v ~= nil then
			return i + 1, v
		end
	end

	metatable.__ipairs = function (t)
		-- Called when ipairs is run on the args table.
		return inext, t, 0
	end

	return args
end

return arguments
做梦梦见钓鱼是什么意思 柿子什么时候成熟 辛巳五行属什么 nac是什么 制动是什么意思
g18k金是什么意思 为什么会梦遗 副科是什么级别 瑶柱是什么东西 82年属狗是什么命
紫癜是什么症状 三千大千世界什么意思 什么是催眠 膜性肾病什么意思 复印病历需要什么证件
户口是什么意思 深海鱼油起什么作用 黑加仑是什么水果 trendiano什么牌子 今年72岁属什么生肖
孕妇红细胞偏低是什么原因bysq.com 粉饼和散粉有什么区别hcv9jop7ns5r.cn 孕吐什么时候结束hcv8jop3ns7r.cn 什么是农历hcv7jop6ns6r.cn 黑松露是什么hcv9jop6ns3r.cn
国老是什么中药xinjiangjialails.com 3价铁离子是什么颜色hcv8jop2ns1r.cn 什么动物吃蚂蚁hcv8jop9ns0r.cn 乙肝五项15阳性是什么意思hcv8jop6ns2r.cn 妊娠是什么意思啊hcv8jop8ns1r.cn
孙悟空是什么佛hcv8jop1ns8r.cn 奥康属于什么档次hcv8jop7ns1r.cn 从革是什么意思hcv7jop5ns1r.cn 胎菊泡水喝有什么功效hcv8jop3ns3r.cn mdr是什么意思hcv9jop6ns2r.cn
鸭子为什么会游泳aiwuzhiyu.com 反酸是什么症状hcv8jop2ns6r.cn 人参泡酒有什么功效hcv8jop0ns2r.cn 能屈能伸是什么生肖hcv9jop8ns1r.cn 长溃疡是缺什么维生素hcv7jop5ns5r.cn
百度