男生什么情况想种草莓| 鸡爪煲汤放什么材料| 什么是花青素| 食管裂孔疝是什么原因造成的| 甘油三酯偏高有什么危害| 眼科属于什么科| 人为什么会做梦科学解释| dm是什么单位| 物质是由什么组成的| 亚麻是什么面料| 团长什么级别| 年下是什么意思| 1.12是什么星座| 看空是什么意思| 迁就什么意思| 淡盐水有什么作用和功效| 什么样的人招蚊子| 什么叫无产阶级| 什么的被子| 81年属什么生肖| 踩雷是什么意思| 过敏是什么样的图片| 乳清蛋白是什么| 淼是什么意思| 睑腺炎是什么原因造成| 内分泌紊乱吃什么药| 具备是什么意思| 雪纺是什么面料| 优思悦是什么药| 灵魂摆渡是什么意思| 尿酸高吃什么菜| 91年属什么| 执业医师是什么意思| 头伏吃什么| 霉菌性阴炎是什么原因引起的女| 绝对值是什么| 95511是什么号码| 伏是什么意思| 黑白颠倒是什么意思| 什么室什么空| 自身免疫性疾病是什么意思| 肺和大肠相表里是什么意思| 宝宝大便有泡沫是什么原因| 发票抬头是什么意思| igg抗体阳性是什么意思| 蛇遇猪就得哭什么意思| 阑尾切除后有什么影响和后遗症| 粳米是什么米| 9.21是什么星座| 为什么六月腊月不搬家| 04年是什么年| 皂苷是什么| 龙阳之好是什么意思| 六月属什么生肖| 棕色短裤配什么颜色上衣| 医生为什么看瞳孔知道没救了| 防晒衣什么颜色最防晒| 今年为什么有两个6月| 杨树林是什么品牌| 台湾什么时候收回| silk是什么意思| 李倩梅结局是什么| 狗头是什么意思| 纯天然无公害什么意思| 落花流水什么意思| 什么人不能喝咖啡| 贫乳是什么意思| 台湾三小是什么意思| 88年属什么的生肖| 左侧卵巢囊性结构什么意思| 胸前有痣代表什么意思| 帮凶是什么意思| 羊蝎子是什么| 肺部炎症用什么药最好| 越五行属什么| 教师节属什么生肖| 非主流什么意思| 同房是什么意思| 上四休二是什么意思| 腿抽筋是什么问题| 肝红素高是什么原因| 夏天什么时候最热| 鸡吃什么| 4.12是什么星座| 梦见搞卫生什么意思| 降钙素原高说明什么| 脑供血不足吃什么药最好| 想睡睡不着是什么原因| 社保基金是什么| 肺栓塞的主要症状是什么| 梦见来月经是什么意思| 尿失禁是什么症状| 男人梦见蛇是什么征兆| 卖剑买牛是什么动物| luna什么意思| 排卵期有什么| 你好后面加什么符号| 口幼读什么| 眷属是什么意思| 总做梦是什么原因| 塑料袋是什么材质| 什么是植物神经功能紊乱| 肌瘤是什么| 非甾体是什么意思| 吃火龙果对身体有什么好处| 异性是什么意思| 囊中之物是什么意思| 夜未央是什么意思| 1977属什么生肖| 想睡睡不着是什么原因| 什么算熬夜| 静对什么| 心脏ct能检查出什么| 创伤是什么意思| 溶血性黄疸是什么原因引起的| 暴发火眼吃什么药| 天秤女和什么星座最配| 九月十号是什么星座| 检查是否怀孕要挂什么科| 饮片是什么意思| 睡觉磨牙是什么原因| 五险一金有什么用| cfp是什么证书| 当兵什么时候体检| 贝字旁的字和什么有关| 滥情什么意思| 3月6号是什么星座| 姨妈有血块是什么原因| cm医学上是什么意思| 哪里是什么意思| 五心烦热是什么症状| 甲亢是一种什么病| 末法时期是什么意思| 花生对胃有什么好处| 瘦肉精是什么| 还愿有什么讲究| 下眼睑浮肿是什么原因| 不解大便是什么原因| 薏米和什么一起煮粥最好| 子宫憩室是什么意思| 吃完饭想吐是什么原因| 一什么童话| 饮片是什么意思| 下雨天穿什么衣服| 阴道炎用什么药效果最好| 77年属蛇的是什么命| 机关单位和事业单位有什么区别| 反应性细胞改变炎症是什么意思| 生脉饮适合什么人喝| 梦到别人结婚是什么意思| 私联是什么意思| 梦见自己光脚走路是什么意思| 胃一阵一阵的疼吃什么药| 射手座跟什么星座最配| 黑色的鸟是什么鸟| 月蚀是什么意思| 驼鸟吃什么食物| 翘楚是什么意思| 屮艸芔茻什么意思| 什么病需要透析| 男人交生育保险有什么用| 珠联璧合是什么意思| 卡拉胶是什么| 血糖高能吃什么| 97年的属什么| 寸是什么单位| balmain什么档次| 胃烧灼感是什么原因| 什么的风采| 身体内热是什么原因| 肠功能紊乱吃什么药| 小孩睡觉说梦话是什么原因| 上火喉咙痛吃什么药| 什么 姿势 最深| 眼前发黑是什么原因| 圆形脸适合什么样的发型| 食管裂孔疝是什么原因造成的| cross是什么牌子| 吃什么水果祛斑最快| 口干舌燥口苦吃什么药| 狗到家里是什么预兆| 2e是什么意思| 杵状指见于什么病| 青海有什么特产| 三月份生日是什么星座| 满月针最晚什么时候打| 普萘洛尔是什么药| 猫薄荷是什么东西| 咂是什么意思| 梦见很多虫子是什么意思| 拍肺部片子挂什么科| 女人吃牛蛙有什么好处| npv是什么意思| 肺间质纤维化是什么病| 吊兰开花有什么兆头| 那天午后我站在你家门口什么歌| 打完升白针有什么反应| 白天咳嗽晚上不咳嗽是什么原因| 眼震电图能查什么病| 爱困总想睡觉什么原因| 什么时候征兵| 人中起痘痘是什么原因| epa是什么| 夜间尿多是什么原因| 频繁感冒是什么原因| 老夫聊发少年狂什么意思| 龟头流脓小便刺痛吃什么药| 伟哥有什么副作用| 地奥心血康软胶囊主治什么病| 脂肪肝吃什么中成药| 冷都男是什么意思| 1992年出生的是什么命| 做胃镜之前需要做什么准备| 呕吐是什么原因| 绿心黑豆有什么功效| 心脏早搏挂什么科| 男头发稀少适合什么发型| 什么的秋天| 黑猫进家门预示着什么| 和南圣众是什么意思| 早上出虚汗是什么原因| 腊月十八是什么星座| 眼白发黄是什么原因| 衄血是什么意思| 沙弥是什么意思| tid是什么意思| 维生素c有什么好处| 肺气肿是什么原因导致的| fdg代谢增高是什么意思| 下嘴唇发紫是什么原因| 贤妻良母是什么意思| 绿茶不能和什么一起吃| 海鲜不能和什么水果一起吃| 付之一炬是什么意思| 生酮饮食是什么| 人黄是什么原因| 劫财代表什么| 寻的部首是什么| 牛肉饺子馅配什么蔬菜好吃| 脊柱侧弯挂什么科| 扁桃体肥大是什么原因造成的| 吸毒什么感觉| 神话是什么意思| 吃什么祛痰化痰最有效| 爱情是个什么东西| 一个叉念什么| 什么叫周围神经病| 头发需要什么营养| 做脑部ct挂什么科| 身怀六甲是什么意思| 针对是什么意思| 创始人是什么意思| 胃疼胃胀吃什么药| 同房肚子痛是什么原因| 口腔长期溃疡是什么原因引起的| 暖手宝里面是什么| 单飞是什么意思| 天麻是什么东西| 鱼吃什么食物| 龙和什么属相相克| c1和c2有什么区别| 血象高是什么意思| 蜂窝组织炎是什么病| 一笑倾城是什么意思| 百度Jump to content

管党治党光靠觉悟是不够的 动员千遍不如问责一次

Lát'?w?? Wikipedia, ìwé ìm?? ??f??
百度 甘肃省涉及六盘山、秦巴山和藏族地区三个集中连片特困地区,贫困面大、贫困程度深。

Lua error in package.lua at line 80: module 'Module:Transclusion_count/data/L' not found.

This module outputs various kinds of lists. At present, it supports bulleted lists, unbulleted lists, horizontal lists, ordered lists (numbered or alphabetical), and horizontal ordered lists. It allows for easy css styling of the list or of the individual list items.

Usage

Quick usage

àdàk?:Pre2

All parameters

àdàk?:Pre2

Arguments passed from parent template

àdàk?:Pre2

Functions
Function name Produces Example output Template using the function
bulleted Bulleted lists
  • First item
  • Second item
  • Third item
{{bulleted list}}
unbulleted Unbulleted lists
  • First item
  • Second item
  • Third item
{{unbulleted list}}
horizontal Horizontal bulleted lists
  • First item
  • Second item
  • Third item
{{hlist}}
ordered Ordered lists (numbered lists and alphabetical lists)
  1. First item
  2. Second item
  3. Third item
{{ordered list}}
horizontal_ordered Horizontal ordered lists
  1. First item
  2. Second item
  3. Third item

Parameters

  • Positional parameters (1, 2, 3...) - these are the list items. If no list items are present, the module will output nothing.
  • start - sets the start item for ordered lists. This can be a start number for numbered lists, or a start letter for alphabetical lists. Horizontal ordered lists only support numbers.
  • type - the type of marker used in ordered lists. Possible values are "1" for numbers (the default), "A" for uppercase letters, "a" for lowercase letters, "I" for uppercase Roman numerals, and "i" for lowercase Roman numerals. Not supported in horizontal ordered lists. See also the list_style_type parameter.
  • list_style_type - the type of marker used in ordered lists. This uses CSS styling, and has more types available than the type parameter, which uses an html attribute. Possible values are listed at MDN's list-style-type page. Support may vary by browser. list-style-type is an alias for this parameter.
  • class - a custom class for the <div></div> tags surrounding the list, e.g. plainlinks.
  • style - a custom css style for the <div></div> tags surrounding the list, e.g. font-size: 90%;.
  • list_style - a custom css style for the list itself. The format is the same as for the |style= parameter.
  • item_style - a custom css style for all of the list items (the <li></li> tags). The format is the same as for the |style= parameter.
  • item1_style, item2_style, item3_style... - custom css styles for each of the list items. The format is the same as for the |style= parameter.
  • item1_value, item2_value, item3_value... - custom value for the given list item. List items following the one given will increment from the specified value. The value should be a positive integer. (Note that this option only has an effect on ordered lists.)
  • indent - this parameter indents the list, for horizontal and horizontal ordered lists only. The value must be a number, e.g. 2. The indent is calculated in em, and is 1.6 times the value specified. If no indent is specified, the default is zero.

Examples

Bulleted lists
Code Result
{{#invoke:list|bulleted|First item|Second item|Third item}}
  • First item
  • Second item
  • Third item
{{#invoke:list|bulleted|First item|Second item|Third item|item_style=color:blue;}}
  • First item
  • Second item
  • Third item
{{#invoke:list|bulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
  • First item
  • Second item
  • Third item
Unbulleted lists
Code Result
{{#invoke:list|unbulleted|First item|Second item|Third item}}
  • First item
  • Second item
  • Third item
{{#invoke:list|unbulleted|First item|Second item|Third item|item_style=color:blue;}}
  • First item
  • Second item
  • Third item
{{#invoke:list|unbulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
  • First item
  • Second item
  • Third item
Horizontal lists
Code Result
{{#invoke:list|horizontal|First item|Second item|Third item}}
  • First item
  • Second item
  • Third item
{{#invoke:list|horizontal|First item|Second item|Third item|indent=2}}
  • First item
  • Second item
  • Third item
Unbulleted lists
Code Result
{{#invoke:list|unbulleted|First item|Second item|Third item}}
  • First item
  • Second item
  • Third item
{{#invoke:list|unbulleted|First item|Second item|Third item|item_style=color:blue;}}
  • First item
  • Second item
  • Third item
{{#invoke:list|unbulleted|First item|Second item|Third item|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
  • First item
  • Second item
  • Third item
Ordered lists
Code Result
{{#invoke:list|ordered|First item|Second item|Third item}}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|ordered|First item|Second item|Third item|start=3}}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|ordered|First item|Second item|Third item|type=i}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|ordered|First item|Second item|Third item|list_style_type=lower-greek}}
  1. First item
  2. Second item
  3. Third item
Horizontal ordered lists
Code Result
{{#invoke:list|horizontal_ordered|First item|Second item|Third item}}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|horizontal_ordered|First item|Second item|Third item|start=3}}
  1. First item
  2. Second item
  3. Third item
{{#invoke:list|horizontal_ordered|First item|Second item|Third item|indent=2}}
  1. First item
  2. Second item
  3. Third item

Tracking/maintenance category

See also


-- 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('Module: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('Module:Arguments')
		local origArgs = mArguments.getArgs(frame, {
			valueFunc = function (key, value)
			if not value or not mw.ustring.find(value, '%S') then return nil end
			if mw.ustring.find(value, '^%s*[%*#;:]') then
				return value
			else
				return value:match('^%s*(.-)%s*$')
			end
			return nil
		end
		})
		-- 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

return p
脸为什么容易红 出海什么意思 舌头尖发麻是什么原因 血半念什么 印度为什么没把墨脱占领
肾功能四项检查什么 车震是什么 点了痣要注意什么 耳朵发痒是什么原因 大保健是什么
什么是修养 三十年婚姻是什么婚 柳暗花明是什么生肖 晚上睡觉脚抽筋是什么原因引起的 痿证是什么病
刚怀孕吃什么最好最营养 cos是什么意思啊 一人一口是什么字 尿钙是什么意思 欧巴桑是什么意思
铁扇公主是什么妖精hcv8jop4ns9r.cn 太妃糖为什么叫太妃糖hcv9jop3ns0r.cn 筋膜炎吃什么药好得快hcv7jop6ns8r.cn 靶向药物是什么hcv9jop2ns9r.cn 便秘喝什么茶润肠通便hcv9jop3ns2r.cn
出差带什么hcv8jop4ns0r.cn 喝豆浆拉肚子什么原因hcv7jop7ns1r.cn 梦见剪头发预示什么hcv7jop6ns5r.cn 同人小说是什么意思dajiketang.com 杭州的市花是什么花hcv9jop8ns2r.cn
豌豆黄是什么1949doufunao.com 大圣归来2什么时候上映hcv8jop2ns8r.cn 什么鱼红烧最好吃qingzhougame.com 阳虚是什么原因引起的hcv9jop4ns3r.cn 低频是什么意思hcv9jop2ns2r.cn
五味子有什么功效和作用hcv9jop7ns1r.cn 秦国是现在的什么地方hcv9jop4ns3r.cn 肚子拉稀是什么原因hcv8jop2ns4r.cn 七月七日是什么节日hcv8jop7ns9r.cn 为什么不能空腹喝牛奶hcv8jop8ns6r.cn
百度