生产是什么意思| 血糖高吃什么菜| 小缺血灶是什么意思| 指疣是什么病| soe咖啡是什么意思| 张家界地貌属于什么地貌| 脸上爱长痘痘是什么原因| 有什么好的赚钱方法| 眼眶疼是什么原因| 什么雅| 卤牛肉用什么部位| 后背长痘是什么原因| 七四年属什么生肖| 酵母是什么东西| 生化流产是什么原因造成的| 中药龙骨是什么| 欣赏一个人是什么意思| 锅贴是什么| 五脏六腑是指什么| 人肉是什么味道| 易是什么意思| 什么叫正盐| 搬家送什么礼物最好| 丁五行属什么| 处女膜破了什么症状| 林冲属于什么生肖| 七一是什么节| 低筋面粉能做什么| 萧邦手表什么档次| 透明的什么| 怀孕有什么特征和反应| 去医院检查是否怀孕挂什么科| 支原体阳性什么意思| 真维斯属于什么档次| 男性吃什么生精快| 小土豆是什么意思| 蝼蛄是什么动物| abob是什么药| 卧推练什么肌肉| 调制乳粉是什么意思| 五个手指头分别叫什么| 粘胶是什么面料| 什么东西越吃越饿| 车万是什么意思| 生吃大葱有什么好处和坏处| proof什么意思| 伽马刀是什么意思| 林彪为什么反革命| 姨妈痛吃什么药| 什么是统招生| 中出是什么意识| 治妇科炎症用什么药好| 嘴巴发苦是什么原因| 奉天为什么改名沈阳| 县局局长什么级别| hpv低危型是什么意思| 车水马龙是什么意思| 诏安是什么意思| 张钧甯为什么读mi| 天气热吃什么解暑| 药流后吃什么消炎药| 2015属什么生肖| 顾客为什么购买| 伤元气是什么意思| qd医学上是什么意思| 脉搏高是什么原因| 瞒天过海是什么意思| 河字五行属什么| 什么是公主病| 生殖器疱疹用什么药最好| 壁虎是什么类动物| 脸发红发痒是什么原因| fzl什么意思| beauty是什么意思| 肺部积水是什么原因引起的| 手上十个簸箕代表什么| 生理盐水是什么东西| 11月29号什么星座| 双子座是什么性格| 头不自觉的晃动是什么原因| 引体向上练什么肌肉| 脚背肿是什么原因| 安乐死是什么意思| 女人更年期吃什么药调理最好| 伪军是什么意思| 日本投降是什么时候| 热淋是什么意思| 醉代表什么生肖| 血糖高可以吃什么主食| 胃胀吃什么中成药| 生物公司是做什么的| 经血粉红色是什么原因| guou是什么牌子的手表| 女人喝咖啡有什么好处和坏处| 禅悟是什么意思| 山药为什么煮熟了也麻口| 例假提前来是什么原因| 5s是什么| 天妇罗是什么| 九月十五日是什么星座| merrell是什么牌子| 咳嗽看什么科| 宫颈囊肿有什么症状表现| 消化功能紊乱吃什么药| 8月15日是什么星座| 流鼻血去药店买什么药| 招风耳是什么意思| 宫颈异常是什么意思| 什么是碱性食物| 祭日和忌日是什么意思| 玉鸟吃什么饲料好| 心电图st段改变什么意思| 幽门螺旋杆菌吃什么药最好| 得令是什么意思| 赞字五行属什么| 摩丝是什么| 知己是什么意思| 有黄痰是什么原因| 刘伯温属什么生肖| 人潮涌动是什么意思| 男人身体怕冷是什么原因如何调理| 大什么一什么| 鹌鹑蛋是什么动物的蛋| 尿特别黄是什么原因| 子宫形态失常是什么意思| 1959属什么生肖| 成都有什么特产| doneed是什么牌子| 喝竹叶水有什么好处| 旮旯是什么意思| 沉香手串有什么好处| 告状是什么意思| 纪委书记是什么级别| 咳嗽一直不好是什么原因怎么治| 助产学是干什么的| 花牛是什么| 多囊卵巢综合征吃什么药| 一什么牛奶| 珍珠奶茶的珍珠是什么做的| 这是什么地方| 回奶吃什么| 已佚是什么意思| 乙肝表面抗原高是什么意思| 排酸对身体有什么好处| 孕酮低吃什么药| 6月16什么星座| sherry是什么意思| 额头上长痘痘是什么原因引起的| 碳酸氢钠是什么添加剂| 为什么糙米越吃血糖越高| cba是什么| 病危通知书意味着什么| 肛门指检是检查什么| 康康是什么意思| 女人梦见血是什么预兆| 安可什么意思| 乳糖不耐受吃什么奶粉好| 皮肤黑穿什么颜色的衣服显白| 铁观音茶属于什么茶| 热玛吉是什么| 结节3类是什么意思| 衬衫搭配什么裤子好看| 还行吧是什么意思| 下午两点属于什么时辰| 阴道痒用什么药| 跑步胸口疼什么原因| 正处级是什么级别| 吃维生素b2有什么好处| 体检胸透主要检查什么| 腮腺炎是什么原因引起的| 分明的意思是什么| 挂红是什么意思| 吃什么补精子| 月经前一周失眠是什么原因| 水金龟属于什么茶| 有眼屎是什么原因| 临床医学学什么| 改编是什么意思| 膀胱冲洗用什么药| 组织委员的职责是什么| 肠胃炎可以吃什么| 发泡胶用什么能洗掉| 麻椒和花椒有什么区别| 拂是什么生肖| 胃糜烂吃什么药可以根治| 新斯的明是什么药| 养囊是什么意思| 磬是什么乐器| 锦纶是什么面料优缺点| 带状疱疹用什么药| 鳝鱼吃什么食物| 肺结节吃什么食物好| 红茶加枸杞有什么功效| 静脉曲张有什么症状| 液氮是什么东西| 二级警监是什么级别| 孩子喉咙痛吃什么药好| 一什么花生| 牛黄清心丸适合什么人群吃| 胆碱酯酶是什么意思| 10000mah是什么意思| 伤口愈合为什么会痒| 经常打嗝是什么原因| 脸色发青是什么原因引起的| 广菜是什么菜| 胃腺息肉什么意思| 1946年属什么生肖属相| 为什么拉屎会有血| 鳞状上皮乳头状瘤是什么| 宝宝睡觉流口水是什么原因| 什么牙什么嘴| 异什么意思| 死马当活马医是什么意思| 眼睑浮肿是什么原因| 孕酮低吃什么药| 胆汁淤积吃什么药| tfboys是什么意思| 生辰八字查五行缺什么| 止吐吃什么药| 送病人什么礼物好| 心口疼吃什么药| 闭合性跌打损伤是什么意思| 吃糖醋蒜有什么好处和坏处| 脸上长癣用什么药膏| 裤裙配什么上衣好看| 东施效颦什么意思| 放生乌龟有什么寓意| 认知是什么| 狗下崽前有什么征兆| 自缚是什么意思| 世界上最长的蛇是什么| 含服是什么意思| 梦见棺材什么意思| 镪水池是什么| 心律不齐用什么药| 沆瀣一气是什么意思| 软化灶是什么意思| 垂死病中惊坐起什么意思| 光动能手表是什么意思| 肠道有息肉有什么症状| 天秤座和什么座最配对| 宝宝拉肚子挂什么科| 脚烧是什么原因| 圆脸适合什么眼镜| 为什么会打嗝| 鸡胸是什么原因引起的| 今天是什么甲子| 总是爱出汗是什么原因| 下眼睑肿胀是什么原因| 中校是什么级别| 坛城是什么意思| 脚底起水泡是什么原因| 牙龈萎缩是什么原因造成的| 维生素d和维生素ad有什么区别| 白带是什么| 病毒感染吃什么消炎药| esd手术是什么意思| 做梦吃酒席什么预兆| 逆钟向转位什么意思| 用盐袋子热敷小肚子有什么功效| 电瓶车什么牌子好| 男狗配什么属相最好| 家里有蜈蚣是什么原因| 外阴白斑吃什么药| 百度Hoppa till inneh?llet

白玉菩提是什么材质

Fr?n Wikipedia
百度 全国哲学社会科学规划办公室

Dokumentation [visa] [redigera] [historik] [rensa sidcachen]


-- This module outputs different kinds of lists. At the moment, bulleted,
-- unbulleted, horizontal, ordered, and horizontal ordered lists are supported.

local libUtil = require('libraryUtil')
local checkType = libUtil.checkType
local mTableTools = require('Modul:TableTools')

local p = {}

local listTypes = {
	['bulleted'] = true,
	['unbulleted'] = true,
	['horizontal'] = true,
	['ordered'] = true,
	['horizontal_ordered'] = true
}

function p.makeListData(listType, args)
	-- Constructs a data table to be passed to p.renderList.
	local data = {}

	-- Classes
	data.classes = {}
	if listType == 'horizontal' or listType == 'horizontal_ordered' then
		table.insert(data.classes, 'hlist hlist-separated')
	elseif listType == 'unbulleted' then
		table.insert(data.classes, 'plainlist')
	end
	table.insert(data.classes, args.class)

	-- Main div style
	data.style = args.style

	-- Indent for horizontal lists
	if listType == 'horizontal' or listType == 'horizontal_ordered' then
		local indent = tonumber(args.indent)
		indent = indent and indent * 1.6 or 0
		if indent > 0 then
			data.marginLeft = indent .. 'em'
		end
	end
	
	-- List style types for ordered lists
	-- This could be "1, 2, 3", "a, b, c", or a number of others. The list style
	-- type is either set by the "type" attribute or the "list-style-type" CSS
	-- property.
	if listType == 'ordered' or listType == 'horizontal_ordered' then 
		data.listStyleType = args.list_style_type or args['list-style-type']
		data.type = args['type']

		-- Detect invalid type attributes and attempt to convert them to
		-- list-style-type CSS properties.
		if data.type 
			and not data.listStyleType
			and not tostring(data.type):find('^%s*[1AaIi]%s*$')
		then
			data.listStyleType = data.type
			data.type = nil
		end
	end
	
	-- List tag type
	if listType == 'ordered' or listType == 'horizontal_ordered' then
		data.listTag = 'ol'
	else
		data.listTag = 'ul'
	end

	-- Start number for ordered lists
	data.start = args.start
	if listType == 'horizontal_ordered' then
		-- Apply fix to get start numbers working with horizontal ordered lists.
		local startNum = tonumber(data.start)
		if startNum then
			data.counterReset = 'listitem ' .. tostring(startNum - 1)
		end
	end

	-- List style
	 -- ul_style and ol_style are included for backwards compatibility. No
	 -- distinction is made for ordered or unordered lists.
	data.listStyle = args.list_style

	-- List items
	-- li_style is included for backwards compatibility. item_style was included
	-- to be easier to understand for non-coders.
	data.itemStyle = args.item_style or args.li_style
	data.items = {}
	for i, num in ipairs(mTableTools.numKeys(args)) do
		local item = {}
		item.content = args[num]
		item.style = args['item' .. tostring(num) .. '_style']
			or args['item_style' .. tostring(num)]
		item.value = args['item' .. tostring(num) .. '_value']
			or args['item_value' .. tostring(num)]
		table.insert(data.items, item)
	end
	
	return data
end

function p.renderList(data)
	-- Renders the list HTML.
	
	-- Return the blank string if there are no list items.
	if type(data.items) ~= 'table' or #data.items < 1 then
		return ''
	end
	
	-- Render the main div tag.
	local root = mw.html.create('div')
	for i, class in ipairs(data.classes or {}) do
		root:addClass(class)
	end
	root:css{['margin-left'] = data.marginLeft}
	if data.style then
		root:cssText(data.style)
	end

	-- Render the list tag.
	local list = root:tag(data.listTag or 'ul')
	list
		:attr{start = data.start, type = data.type}
		:css{
			['counter-reset'] = data.counterReset,
			['list-style-type'] = data.listStyleType
		}
	if data.listStyle then
		list:cssText(data.listStyle)
	end

	-- Render the list items
	for i, t in ipairs(data.items or {}) do
		local item = list:tag('li')
		if data.itemStyle then
			item:cssText(data.itemStyle)
		end
		if t.style then
			item:cssText(t.style)
		end
		item
			:attr{value = t.value}
			:wikitext(t.content)
	end

	return tostring(root)
end

function p.renderTrackingCategories(args)
	local isDeprecated = false -- Tracks deprecated parameters.
	for k, v in pairs(args) do
		k = tostring(k)
		if k:find('^item_style%d+$') or k:find('^item_value%d+$') then
			isDeprecated = true
			break
		end
	end
	local ret = ''
	if isDeprecated then
		ret = ret .. '[[Category:List templates with deprecated parameters]]'
	end
	return ret
end

function p.makeList(listType, args)
	if not listType or not listTypes[listType] then
		error(string.format(
			"bad argument #1 to 'makeList' ('%s' is not a valid list type)",
			tostring(listType)
		), 2)
	end
	checkType('makeList', 2, args, 'table')
	local data = p.makeListData(listType, args)
	local list = p.renderList(data)
	local trackingCategories = p.renderTrackingCategories(args)
	return list .. trackingCategories
end

for listType in pairs(listTypes) do
	p[listType] = function (frame)
		local mArguments = require('Modul:Arguments')
		local origArgs = mArguments.getArgs(frame)
		-- Copy all the arguments to a new table, for faster indexing.
		local args = {}
		for k, v in pairs(origArgs) do
			args[k] = v
		end
		return p.makeList(listType, args)
	end
end

function p.pages(frame)  -- For the {{Pagelist}} template
    local pframe = frame:getParent()
    local args = pframe.args -- the arguments passed TO the template, in the wikitext that instantiates the template
    local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
    local delim = config['delim'] or '';
    local edelim = config['edelim'];
    if edelim == nil or edelim == "" then
        edelim = delim;
    end
    local conjunction = config['conjunction'] or ' och ';
    local nspace = '';
    if config['nspace'] then
        nspace = config['nspace'] .. ":";
    end
    local nextpage = 1;
    local text = "";
    while args[nextpage] ~= nil and args[nextpage] ~= "" do
        local page = "[[" .. nspace .. args[nextpage] .. "]]";
        nextpage = nextpage + 1;
        if nextpage == 2 then  -- is first?
             text =  delim ..  page .. edelim;
        else  -- or last?
            if args[nextpage] == nil or args[nextpage] == "" then 
                text = text .. conjunction .. delim .. page .. edelim;
            else
                text = text .. ", " .. delim .. page .. edelim;
            end
        end
    end
    return text    
end  

return p
骨龄是什么 打了狂犬疫苗不能吃什么 梦见好多死人是什么征兆 心里不舒服挂什么科 bishop是什么意思
微波炉不能用什么容器 1935年属什么 肝内小钙化灶是什么意思 关节外科主要看什么 烂脚丫用什么药能治除根
荨麻疹可以吃什么食物 mrt是什么意思 什么是低钠盐 毛泽东的女儿为什么姓李 自我救赎是什么意思
ca153是什么检查项目 为什么额头反复长痘痘 老年人缺钾是什么原因引起的 牛欢喜是什么部位 味粉是什么调料
泰山在什么地方hcv8jop4ns5r.cn 白衬衫配什么裤子好看clwhiglsz.com 失重感是什么感觉hcv9jop6ns7r.cn 睡觉小腿抽筋是什么原因hcv9jop4ns4r.cn 缺营养吃什么补身体最好hcv9jop6ns7r.cn
甲状腺结节吃什么hcv8jop8ns5r.cn 吃维生素e有什么好处gangsutong.com 兔跟什么生肖配对最好hcv8jop3ns3r.cn 眼睛突然红了是什么原因hcv8jop4ns2r.cn 孟字五行属什么huizhijixie.com
美国人的祖先是什么人hcv7jop9ns7r.cn 丝瓜配什么炒好吃hcv9jop6ns1r.cn 例假量多是什么原因hcv7jop9ns1r.cn 喝中药不能吃什么hcv8jop4ns2r.cn 经常想吐恶心是什么原因hcv8jop2ns7r.cn
冬枣什么时候上市hcv9jop4ns8r.cn 地主之谊是什么意思hcv8jop8ns2r.cn 罗网是什么意思hcv7jop6ns8r.cn cac是什么意思hcv8jop2ns6r.cn 长期咳白痰是什么原因adwl56.com
百度