血管炎吃什么药最有效| 东南属什么五行| 告诫是什么意思| 生物医学工程专业学什么| honor是什么牌子的手机| ppi是什么意思| 茄子有什么营养| 下联是什么| 肠胃不好吃什么药效果好| 宫颈囊肿是什么症状| 眼睛充血是什么原因引起的| 小麦淀粉是什么| 王母娘娘叫什么名字| 人为什么需要诗歌| 中国最高学位是什么| 什么止疼药见效最快| 电视剧上星是什么意思| fredperry是什么牌子| 做腋臭手术挂什么科室| 七手八脚是什么意思| 泸州老窖是什么香型| 吴亦凡什么星座| 木有什么意思| 1984年属鼠是什么命| 北豆腐是什么| 支原体吃什么药| 释怀什么意思| 尿道疼吃什么药| 吴京为什么看上谢楠| 全身检查挂什么科| 咽喉炎 吃什么| 01是什么生肖| 什么会引起高血压| 梦见抬死人是什么意思| 人经常放屁是什么原因| 凤眼果什么时候成熟| 肾功能三项检查什么| 头晕恶心吃什么药| 国家为什么重视合肥| 大便阳性说明什么问题| 蜂蜜有什么作用与功效| 假菌丝是什么意思| 喉咙痛挂什么科| 凋谢是什么意思| 为什么孕酮会低| 翊字是什么意思| 什么病不能喝酒| 晚上七点到九点是什么时辰| 吃软不吃硬是什么生肖| 梦见剪头发预示什么| 网约车是什么意思| 圈癣是什么引起的| 霉菌性阴道炎用什么药好得快| 阑尾炎能吃什么水果| 茉莉花是什么颜色| eric是什么意思| 床上放什么可以驱蟑螂| 眉毛长长是什么原因| 精美的什么| 优思悦是什么药| 山竹有什么功效| 霜降出什么生肖| 福星高照是什么生肖| 3月28日什么星座| 通房是什么意思| 叶酸什么牌子好| 怕冷不怕热是什么体质| 有妇之夫是什么意思| 1926年属什么生肖| 双龙是什么意思| 院士是什么学位| 1037年属什么生肖| 8月21日是什么星座| 鬼针草长什么样| 娃娃脸是什么意思| 吹箫什么意思| 笑得什么| 颈椎病是什么原因引起的| 海口有什么好玩的| ra是什么病的缩写| 145是什么意思| 百香果配什么好喝| 湿疹是因为什么原因引起的| 梦见自己丢钱了什么征兆| 桑蚕丝用什么洗最好| 为什么不建议女人上环| 口臭吃什么中成药| 太阳是什么| 守株待兔是什么生肖| 还记得年少时的梦吗是什么歌| 泉州和晋江什么关系| 什么狗不咬人| 衣服为什么会发霉| 农历六月十五是什么星座| 幽门螺旋杆菌阳性是什么意思| 饱和脂肪是什么意思| 特别是什么意思| 总蛋白偏高有什么危害| 慢性胆囊炎吃什么药| 六三年属什么生肖| 宜昌有什么特产| 醋泡什么壮阳最快| 1314代表什么意思| 嗓子咽口水疼吃什么药| 脚板肿是什么原因引起的| 一五行属什么| 狐臭看什么科| 伪骨科是什么意思| 掉头发是什么原因| 黑芝麻和白芝麻有什么区别| 大长今是什么意思| 思源名字的寓意是什么| 梦见山体滑坡是什么意思| 为什么不建议吃茵栀黄| 女人辟邪带什么最好| 槟榔是什么东西| 火彩是什么| 小腿肌肉痛什么原因| 声音的高低叫什么| 氯化钠是什么东西| 七点到九点是什么时辰| 左克是什么药| 殇什么意思| 2013属什么生肖| abc是什么药| 什么是前置胎盘| 孕妇可以吃什么水果| 巴西货币叫什么| 末是什么意思| 爱生闷气的人容易得什么病| 县武装部长是什么级别| 北京有什么| 三文鱼和什么不能一起吃| 龟头炎用什么药| 梨花代表什么生肖| 伸张正义是什么意思| 杏黄是什么颜色| 类风湿关节炎吃什么药| 时机是什么意思| 铁皮石斛能治什么病| 卵巢囊性占位是什么意思| 阴囊瘙痒用什么药膏| 以梦为马什么意思| 舟五行属什么| 蟹爪兰用什么肥料最好| clarks是什么牌子| 红色血痣是什么原因| 尿酸看什么科| 网红是什么意思| 在家无聊可以做什么| 三国演义是什么朝代| 勾践属什么生肖| 补体c3偏低是什么意思| 先天性心脏病是什么原因造成的| 什么是龟头炎| 白醋加盐洗脸有什么好处| miles是什么意思| 梦到自己老公出轨是什么意思| bb粥指的是什么意思| 2008年属什么生肖| k14是什么金| 什么是生化| 性功能下降是什么原因| 芯字五行属什么| 肛周脓肿挂什么科| 氢化植物油是什么| 孕晚期缺铁对胎儿有什么影响| eyki是什么牌子的手表| 圣罗兰为什么叫杨树林| 血常规可以查出什么病| 何炅的老婆叫什么名字| 始终如一是什么意思| 什么是对称轴| 干什么挣钱最快| 经常按摩头皮有什么好处| 土龙是什么鱼| 周围型肺ca是什么意思| 手足口疫苗叫什么名字| 血清载脂蛋白b偏高是什么意思| 6月7日什么星座| 年轻人心悸是什么原因| 六月是什么夏| 40年什么婚| cns是什么意思| 舌苔厚白吃什么食物好| 祭祀什么意思| 女人人中深代表什么| gfr医学上是什么意思| 开理疗店需要什么证件| c反应蛋白偏高是什么原因| 驻颜是什么意思| tomboy是什么意思| 海带补什么| ca医学上是什么意思| 葛根的作用是什么| 血压低是什么原因引起的| 梦见抬死人是什么意思| 茉莉龙珠是什么茶| 小孩子手脚脱皮是什么原因| ems是什么意思| 奶黄包的馅是什么做的| 小朋友流鼻血是什么原因| 谷丙转氨酶偏高吃什么药| ph值低是什么原因| 颜字五行属什么| 书到用时方恨少什么意思| 自慰用什么| 草字头加西读什么| 人总放屁是什么原因| 两边太阳胀痛什么原因引起的| 梦见修坟墓是什么预兆| 疝气嵌顿是什么意思| 尿道感染有什么症状| 处女座男生喜欢什么样的女生| 一感冒就咳嗽是什么原因| 唇炎看什么科最好| 铁蛋白高是什么意思| 病毒性咳嗽吃什么药好| 蝙蝠属于什么动物| 恋物癖是什么| 圆脸适合什么刘海| 孕囊是什么样的图片| 鹤膝风是什么病| 玻色因是什么| 咳嗽有白痰一直不好是什么原因| 湖蓝色配什么颜色好看| 为什么种牙那么贵| 子宫小结节是什么意思| 黄鼠狼喜欢吃什么东西| 骏字五行属什么| 水肺潜水是什么意思| 猪猪侠叫什么| 车厘子和樱桃什么区别| 静待花开的前一句是什么| 全身发抖是什么原因| 警察为什么叫蜀黍| 手抖是什么症状| 吃什么去湿气| 面膜什么时候敷效果最好| 睾丸胀痛是什么原因| 鸣是什么家禽| 灰菜有什么功效与作用| 六月初一是什么日子| 200年属什么生肖| 吃茶油对身体有什么好处| 五十八岁属什么生肖| 大寒吃什么| 4.23是什么星座| 大作是什么意思| 肾看什么科| 儿童看小鸡挂什么科| biemlfdlkk是什么牌子| 迁单是什么意思| 男性孕前检查挂什么科| 应急车道是什么意思| 快闪是什么意思| 亥时是什么时候| 淡盐水是什么水| 尿隐血2十是什么原因| 拔完智齿第三天可以吃什么| 厥阴病是什么意思| 茅庐是什么意思| 男人人中有痣代表什么| 什么是有机磷农药| 百度跳转到内容

舌尖发麻是什么问题

被永久保护的模块
维基百科,自由的百科全书
百度 近40年来最有远见和魄力的方案不再保留国土资源部、国家海洋局、国家测绘地理信息局,组建自然资源部;不再保留环境保护部,组建生态坏境部;整合工商、质监、食品药品监管部门的主要职责,组建国家市场监管总局;成立应急管理部、退役军人事务部……3月13日,国务院机构改革方案提请十三届全国人大一次会议审议。
-- This module implements [[Template:Class]], [[Template:Class/icon]] and
-- [[Template:Class/colour]].

local mArguments -- lazily loaded
local definitions = mw.loadJsonData('Module:Class/definition.json')
local yesno = require("Module:Yesno")

local p = {}

local class_always_enable = {
	"fa", "fl", "fm", "a", "ga", "b", "c", "start", "stub", "list", "sia", "na", "file", "unassessed"
}
--------------------------------------------------------------------------------
-- Local configuration and messages
--------------------------------------------------------------------------------

local cfg = {
	defaultCode = 'DEFAULT',
	classPrefix = 'assess-',
	globalClass = 'assess',
	defaultClassSuffix = 'default',
	unboldClassSuffix = 'unbold',
	catRootFormat = '%s%s',
	catTopicFormat = '%s%s级%s',
	catBasicFormat = '%s级%s',
	categoryFormat = '[[:Category:%s|%s]]',
	templateLocation = 'Template:Class',
	iconTemplateLocation = 'Template:Class/icon',
	colourTemplateLocation = 'Template:Class/colour',
	IDTemplateLocation = 'Template:Class/ID',
	stylesLocation = 'Module:Class/styles.css',
	baseColourPath = {'colour', 'base'},
	iconPath = {"icon", "file"},
	iconDefaultPath = {"icon", "default"},
	iconAttribPath = {"icon", "requiresAttribution"},
	fullLabelPath = {"labels", "full"},
	shortLabelPath = {"labels", "short"},
	categoryRootPath = {"categoryRoot"},
	tooltipPath = {"labels", "tooltip"},
	yes = "yes",
	no = "no", 
	argumentNames = {
		class = "class",
		style = "style"
	},
	getOptions = {
		--First item is localized argument name, second is case-sensitivity
		bold = {"bold", false},
		header = {"header", false},
		image = {"image", false},
		rowspan = {"rowspan", false},
		fullcategory = {"fullcategory", true},
		category = {"category", true},
		topic = {"topic", true}
	}
}

--------------------------------------------------------------------------------
-- Argument helper functions
--------------------------------------------------------------------------------

local function getRawArgs(frame, wrapper)
	--Retrieves the arguments from the frame
	mArguments = mArguments or require('Module:Arguments')
	return mArguments.getArgs(frame, {
		wrappers = wrapper,
		trim = false,
		removeBlanks = false
	})
end

local function makeInvokeFunction(func, wrapper)
	--Wraps a general function into an invokable version
	return function (frame)
		local args = getRawArgs(frame, wrapper)
		return func(args)
	end
end

--------------------------------------------------------------------------------
-- String helper functions
--------------------------------------------------------------------------------

local function trim(str)
	--Trims strings, passes through non-strings without modification
	return (type(str) == 'string') and mw.text.trim(str) or str
end

local function normalizeValue(val)
	--Normalizes strings, particularly class codes
	if type(val) == 'string' then val = trim(val):lower() end
	if val == '' then val = nil end
	return val
end

local function ucfirst(str)
	--Capitalizes the first character of a string
	return mw.ustring.upper(mw.ustring.sub(str, 1, 1)) .. mw.ustring.sub(str, 2)
end

--------------------------------------------------------------------------------
-- Definition helper functions
--------------------------------------------------------------------------------

local function getDefinition(code)
	--Retrieves the definition and canonical class code for a given code.
	--Returns two values: the definition object and the canonical class code
	--string.
	local canonicalCode = normalizeValue(code)
	if code == cfg.defaultCode then canonicalCode = code end
	local class = definitions[canonicalCode]
	while class and class.alias do
		canonicalCode = class.alias
		class = definitions[class.alias]
	end
	if not class then
		return nil, nil
	end
	return class, canonicalCode
end

local function getDefault()
	--Shortcut function for retrieving the default definition
	return getDefinition(cfg.defaultCode) end

local function getProperty(class, default, map)
	--Retrieves a given property from a string given a class definition, a
	--default class definition, and a map for the path to traverse through the
	--class object. The map should be a sequential table of string property
	--names, e.g. {"colour", "base"} would retrieve someClass.colour.base
	local prop, dProp = class, default
	for k, v in ipairs(map) do
		prop = ((type(prop) == 'table') or nil) and prop[v]
		dProp = ((type(dProp) == 'table') or nil) and dProp[v]
	end
	if prop == nil then prop = dProp end
	return prop
end

--------------------------------------------------------------------------------
-- Color functions
--------------------------------------------------------------------------------

function p._colour(code)
	--Retrieves the base colour for a given code
	return getProperty(getDefinition(code), getDefault(), cfg.baseColourPath)
end

function p.colour(frame)
	--Retrieves the base colour for a given code; is invokable
	local args = getRawArgs(frame, cfg.colourTemplateLocation)
	-- Nowiki tags prevent output beginning with "#" from triggering bug 14974.
	return frame:extensionTag('nowiki', p._colour(args[1]))
end

--------------------------------------------------------------------------------
-- ID functions
--------------------------------------------------------------------------------
function p._ID(code)
	local _, id = getDefinition(code)
	return id
end

function p.ID(frame)
	--Retrieves the ID for a given code; is invokable
	local args = getRawArgs(frame, cfg.IDTemplateLocation)
	return p._ID(args[1])
end

--------------------------------------------------------------------------------
-- Icon functions
--------------------------------------------------------------------------------

function p._icon(args)
	--Retrieves an icon image and formats it as wikitext
	local class = getDefinition(args[cfg.argumentNames.class] or args[1])
	local default = getDefault()
	local file = getProperty(class, default, cfg.iconPath)
	local label = 
		getProperty(class, default, cfg.tooltipPath) or
		ucfirst(getProperty(class, default, cfg.fullLabelPath))
	local attrib = getProperty(class, default, cfg.iconAttribPath)
	local size = args.size or '16px'
	local span = mw.html.create('span')

	span
		:cssText(args[cfg.argumentNames.style])
		:attr('title', label)
		:wikitext(
			string.format(
				'[[File:%s|%s|' .. size .. '%s|class=noviewer|alt=]]',
				file,
				label,
				attrib and '' or '|link='
			)
		)
	return tostring(span)
end

p.icon = makeInvokeFunction(p._icon, cfg.iconTemplateLocation)
--Invokable version of p._icon

--------------------------------------------------------------------------------
-- Class functions
--------------------------------------------------------------------------------

function p._class(args)
	--Parses its arguments into a table cell with an optional icon, a name
	--linked to an appropriate category, and appropriate colour styling
	local classDef, classCode =
		getDefinition(args[cfg.argumentNames.class] or args[1])
	local default = getDefault()
	local iconDefault = getProperty(classDef, default, cfg.iconDefaultPath)
	local shortLabel = getProperty(classDef, default, cfg.shortLabelPath)
	local categoryRoot = getProperty(classDef, default, cfg.categoryRootPath)
	--o is short for "options", go for "get options". Bool true → case-sensitive
	local o, go = {}, cfg.getOptions
	for k, v in pairs(go) do
		o[k] = v[2] and trim(args[v[1]]) or normalizeValue(args[v[1]])
	end

	local cell = mw.html.create(o.header and 'th' or 'td')
	--image=yes forces icon, image=no disables it, otherwise checks default
	local icon = iconDefault and (o.image ~= cfg.no) or (o.image == cfg.yes)
	icon = icon and p.icon(args) .. ' ' or ''
	local page_type = require("Module:PJBSClass/main").getPageType(classCode)
	local category
	if o.fullcategory then
		category = o.fullcategory
	elseif o.category then
		category = string.format(cfg.catRootFormat, categoryRoot, o.category)
	elseif o.topic then
		category = string.format(cfg.catTopicFormat, categoryRoot, o.topic, page_type)
	else
		category = string.format(cfg.catBasicFormat, categoryRoot, page_type)
	end
	local text = string.format(cfg.categoryFormat, category, shortLabel)
	cell
		:addClass(cfg.globalClass)
		:addClass(
			o.bold == cfg.no and cfg.classPrefix .. cfg.unboldClassSuffix or nil
		)
		:addClass(cfg.classPrefix .. (classCode or cfg.defaultClassSuffix))
		:attr('rowspan', tonumber(o.rowspan))
		:wikitext(mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = {src = cfg.stylesLocation} }, icon, text)

	return tostring(cell)
end

p.class = makeInvokeFunction(p._class, cfg.templateLocation)
--Invokable version of p._class

function p.class_mask(input_data)
	local class = input_data or ""
	if type((input_data or {}).args) ~= type(nil) then --input_data is a frame
		local inner_args = input_data.args
		local outer_args = {}
		if type(input_data.getParent) == type(tostring) then outer_args = input_data:getParent().args or {} end
		class = outer_args['1'] or outer_args[1] or outer_args.class or outer_args.CLASS or 
			inner_args['1'] or inner_args[1] or inner_args.class or inner_args.CLASS or ""
	end
	local class_cfg = {}
	for _, _class_key in ipairs(class_always_enable) do
		local class_key = p._ID(tostring(_class_key))
		class_cfg[class_key] = true
	end
	local args = ((type(input_data) == type(0)) and {} or input_data).args or {}
	local b_class = definitions.b.name[1]
	local file_image = definitions.file.name[1]
	local forceNA = yesno(args.forceNA, true)
	for _class_key, class_flag in pairs(args) do
		if _class_key == "file-image" then
			file_image = class_flag
		end
		local class_key = p._ID(tostring(_class_key))
		if type(class_key) == type("string") then
			if class_key == 'b' and yesno(class_flag, "is_para") == "is_para" then
				b_class = tostring(class_flag)
				class_cfg[class_key] = true
			else
				class_cfg[class_key] = yesno(class_flag, false)
			end
		end
	end
	class = p._ID(tostring(class))
	if forceNA and class == "na" then
		class = require("Module:PJBSClass/main").getClassAuto() or ''
		if class == '' then class = "na" end
		class = p._ID(tostring(class))
	end
	local masked_class, i = class, 0
	while not yesno(class_cfg[masked_class], false) do
		if definitions[masked_class] then
			local fallback = definitions[masked_class].fallback
			if type(fallback) == type("string") then
				masked_class = fallback
			else
				masked_class = "unassessed"
				break
			end
		else
			masked_class = "unassessed"
			break
		end
		i = i + 1 if i > 100 then
			masked_class = "unassessed"
			break
		end
	end
	if masked_class == 'b' then return b_class end
	if masked_class == 'file' then return file_image end
	return definitions[masked_class].name[1] or definitions["unassessed"].name[1] 
end

return p
幸存者偏差是什么意思 小三阳吃什么食物好得快 胎盘低置需要注意什么 10.8号是什么星座 眼睛干涩吃什么中成药
可燃冰属于什么能源 油嘴滑舌是什么意思 经常感冒吃什么提高免疫力 梦到和妈妈吵架是什么意思 挑疳积挑出来的是什么
芒果和什么不能一起吃 喘息是什么意思 人民币用什么材料做的 乳糖不耐受吃什么奶粉 自缢什么意思
花开半夏是什么意思 罗刹女是什么意思 大便干吃什么药 属猪和什么属相最配 胃炎能吃什么水果
dior是什么意思inbungee.com 喝什么茶可以降血糖96micro.com 甲状腺肿物是什么意思hcv7jop4ns8r.cn 五月底是什么星座hcv8jop0ns1r.cn 肠胃炎可以吃什么食物hcv7jop7ns2r.cn
八卦是什么意思hcv9jop4ns9r.cn 子宫肌瘤吃什么能消除hcv9jop8ns1r.cn 肝胆相照什么意思hcv9jop2ns3r.cn 暑假什么时候结束hcv9jop7ns4r.cn 三个龙读什么hcv8jop4ns1r.cn
佐助是什么意思hcv7jop4ns5r.cn 嘴唇干裂是什么原因引起的hcv9jop1ns8r.cn 黑洞里面是什么hcv8jop8ns5r.cn 一面什么hcv7jop6ns7r.cn 国家主席是什么级别hcv8jop0ns1r.cn
甲肝抗体阳性代表什么hcv9jop0ns2r.cn 好难过这不是我要的结果什么歌hcv8jop3ns0r.cn 基因突变发生在什么时期hcv8jop9ns5r.cn 乳腺纤维瘤是什么原因引起的hcv7jop5ns0r.cn 胆脂瘤是什么病hcv9jop6ns7r.cn
百度