13楼五行属什么| 夏天喝什么汤| 事半功倍的意思是什么| 肩膀的肌肉叫什么| l是什么码| 牛反刍是什么意思| 脂肪瘤长什么样| 保育是什么意思| 头一直疼是什么原因| 酒后吃什么水果好| 男性射精是什么感觉| 甘油三酯偏高是什么意思| 三朵花代表什么意思| 山葵是什么| 豆蔻年华是什么意思| 口琴买什么牌子好| 合肥以前叫什么| 降血糖的草都有什么草| 胶原蛋白的成分是什么| 硬着头皮是什么意思| 胃疼应该挂什么科| 食道癌有什么症状| 经常跑步对身体有什么好处| insun是什么牌子| review是什么意思| 十加一笔是什么字| 口腔溃疡买什么药| 奶瓶pp和ppsu有什么区别| 六味地黄丸的功效是什么| 为什么不能抖腿| 宫颈机能不全是什么意思| 刻舟求剑是什么生肖| 黑白猫是什么品种| 什么人不穿衣服| 什么药吃了会产生幻觉| 疤痕修复用什么药膏好| 蛔虫吃什么药| 曼陀罗是什么意思| 大保健是什么意思| 火命适合什么颜色| 来月经喝酒有什么影响| 皮肤的八大功能是什么| 气血不足吃什么补最快| 蓝营绿营什么意思| 什么是绘本| 紫砂壶什么泥料最好| 爱无能是什么意思| 脑宁又叫什么名字| 长期吃泡面有什么危害| 憨厚是什么意思| 属虎的是什么命| 情感障碍是什么意思| 姐姐的女儿叫什么| 办护照需要带什么| 马可以加什么偏旁| 做大生化挂什么科| 蓬灰是什么东西| 什么的柳枝| 指骨属于什么骨| f4什么意思| 脑软化灶是什么意思| 喝什么水好啊| 脚底疼挂什么科| 95年属什么生肖| 免签国家是什么意思| 5像什么| 东北和山东有什么区别| 北京豆汁什么味道| 昆仑玉是什么玉| 树挪死人挪活是什么意思| 5月22日是什么星座| 腹膜刺激征是指什么| 淋病和梅毒有什么区别| 国家的实质是什么| 鲁班发明了什么| 茯苓泡水喝有什么功效| 梦见买白菜是什么意思| 走私是什么| 木行念什么| 笔名什么意思| 什么是大麦| gxg是什么牌子| 哀转久绝的绝什么意思| 口出狂言是什么生肖| 眼睛长黄斑是什么原因| 全腹部ct平扫主要检查什么| 锁骨上的痣代表什么| 怀孕10天有什么症状| 金骏眉是什么茶| 手指上的月牙代表什么| 咏字五行属什么| 私房照是什么| 陈皮和橘子皮有什么区别| 保险凭证号是什么| 色字头上一把刀什么意思| 农历五月十八是什么星座| 番茄和西红柿有什么区别| 右侧肋骨下方是什么器官| 血是什么颜色| yy是什么意思| 例假为什么第一天最疼| 头爱出汗是什么原因引起的| 唐僧成了什么佛| 考研复试是什么意思| 空代表什么生肖| 感冒鼻子不通气吃什么药| 小孩爱流鼻血是什么原因| 陈醋泡花生米有什么功效| 天台是什么意思| 台湾什么时候统一| 鸡生肖配什么生肖最好| 大红袍是什么茶类| 什么叫文化| 水里有什么| 月子吃什么| 黄连泡水喝能治什么病| 女孩第一次来月经需要注意什么| 517是什么星座| 2月15日是什么星座| bjd是什么| 早晨起床口干口苦是什么原因| 不正常的人有什么表现| 烊化是什么意思| 子宫肌瘤是什么病严重吗| 什么的笑着| 甲硝唑吃多了有什么危害| soeasy是什么意思| 魏大勋和李沁什么关系| 肺结节吃什么食物好| 阿司匹林主治什么病| 不什么一什么| 肌酐清除率是什么意思| 菠菜含什么元素最高| bnp是什么| 一花一草一世界的下一句是什么| 长江后浪推前浪是什么生肖| 睡觉时胳膊和手发麻是什么原因| 脸颊两侧长痘痘什么原因| 背德感是什么意思| 白糖和冰糖有什么区别| 须知是什么意思| pp是什么意思| 母胎单身是什么意思| 鼻孔流血是什么原因| 谷读什么| prc是什么意思| 牛肉与什么食物相克| 你的美丽让你带走是什么歌| 脾是起什么作用的| 糯米粉做什么好吃| 小青龙是什么龙虾| 豆瓣酱可以做什么菜| 夜尿次数多是什么原因| 差是什么意思| 一个均一个金念什么| 刘备是一个什么样的人| 毛骨鱼是什么鱼| 月经量极少几乎没有是什么原因| 金达克宁和达克宁有什么区别| 胃不舒服想吐是什么原因| 尾巴骨疼挂什么科| 奶水不足是什么原因造成的| 西施是什么生肖| 依巴斯汀片是什么药| 什么是道家| 沙棘不能和什么一起吃| 什么是坏血病| 窦性心律过缓什么意思| 嗓子疼吃什么药好得快| 内分泌失调看什么科| 怀不上孕做什么检查| 额头上长痘痘什么原因| 翠鸟吃什么| 夏天可以种什么花| 为什么会打呼噜| 领衔是什么意思| 头发干枯毛躁是什么原因| 山东吃什么主食| 1985年属什么| 四大皆空是什么生肖| 黄金变黑是什么原因| 脚癣是什么原因引起的| 黄瓜有什么功效| 朋友圈ps是什么意思| 米线和米粉有什么区别| 土鳖虫吃什么| 怀孕前三个月不能吃什么| 静脉曲张吃什么药| 西宁有什么好玩的| 家庭油炸用什么油好| 尿液有泡沫是什么原因| 女人排卵期是什么时候| 潘氏试验阳性说明什么| 尿道口发痒是什么原因| 人参是什么味道| 望尘莫及是什么意思| 三剑客是什么意思| 农历三月是什么月| 一杆进洞叫什么球| 蜻蜓是什么目| 红加绿是什么颜色| 2.10是什么星座| 随时随地是什么意思| 走路气喘是什么原因| 摆摊卖什么好| 中筋面粉是什么粉| 兔子是什么意思| 什么样的人可以通灵| 33周岁属什么生肖| 四物汤什么时候喝最好| 什么水果寒凉性| 软组织感染是什么意思| 撸管是什么感觉| 韭黄是什么| 排卵的时候有什么症状| 反胃想吐是什么原因| 黄疸高有什么危害| 羊水栓塞是什么原因引起的| 1958年属狗的是什么命| 指甲缝疼是什么原因| 陈赫是什么星座的| 耳膜炎是什么原因引起的| 月子期间可以吃什么水果| 琪五行属什么| 豆绿色配什么颜色好看| 黄瓜和什么搭配最好| 肾阳虚吃什么| 维生素b吃多了有什么副作用| 小孩发烧呕吐是什么原因| 莱字五行属什么| 两肺纹理增多模糊是什么意思| 应酬是什么意思| hpv什么症状| 风湿是什么| 宫颈阳性是什么意思| 眼睛胀是什么原因| 动物的尾巴有什么用处| 频繁是什么意思| 现在有什么好的创业项目| 核磁共振跟ct有什么区别| 雾霾是什么意思| 70年的狗是什么命| 病毒长什么样子| cip号是什么| 广西狗肉节是什么时候| 油性头发用什么洗发水| 排卵日和排卵期有什么区别| 中观是什么意思| 左氧氟沙星治什么| 5月21日是什么星座| 茂盛的意思是什么| 加码是什么意思| 女性去泰国要注意什么| 幼儿园转园需要什么手续| ie是什么| 洋葱和什么不能一起吃| 大白话是什么意思| 屁为什么是臭的| 属猪的幸运颜色是什么| 去台湾需要什么证件| 10.22是什么星座| 西打酒是什么意思| 儿童热伤风吃什么药| 什么店可以买到老鼠药| 百度P?esko?it na obsah

李克强主持召开国务院常务会议 确定《政府工作报告》重点任务分工 新一届国务院开始全面履职

Tuto stránku mohou editovat jen zavedení u?ivatelé a správci.
Z Wikipedie, otev?ené encyklopedie
百度 何伟表示,这不仅体现在金融精准扶贫政策持续走向纵深,也体现在金融精准扶贫主体的日趋多元化。

require 'strict'

local p = {}

local lib = require 'Modul:Wikidata/lib'
local cache = {}

p.props = {
	accessdate = { 'P813' },
	-- archivedate = { 'P2960' }, TODO
	-- archiveurl = { 'P1065' }, TODO
	author = { 'P50' },
	date = { 'P577' },
	doi = { 'P356' },
	-- editor = { 'P90' }, TODO
	-- illustration = { 'P110' }, TODO
	isbn = { 'P212', 'P957' },
	-- lang = { 'P364', 'P407' }, TODO
	-- last_updated = { 'P5017' }, TODO
	-- pages = { 'P304' }, TODO
	place = { 'P291' },
	published = { 'P1433' },
	publisher = { 'P123' },
	title = { 'P1476' },
	-- type = { 'P31' }, TODO
	url = { 'P854', 'P953', 'P2699' },
	work = { 'P248' },
}

local function dataToContent(data)
	local Formatters = require 'Modul:Wikidata/Formatters'

	local content = {}
	if data.title or data.work then
		local title
		if data.title then
			title = Formatters.getFormattedValue(data.title[1], {})
		end
		if data.work then
			title = Formatters.getFormattedValue(data.work[1], { text = title })
		end
		if data.author then
			local authors = {}
			for _, snak in ipairs(data.author) do
				table.insert(authors, Formatters.getFormattedValue(snak, {}))
			end
			table.insert(content, table.concat(authors, ', ') .. ':')
		end
		table.insert(content, mw.ustring.format("''%s''.", title))
	end
	if data.published then
		local published = Formatters.getFormattedValue(data.published[1], {})
		table.insert(content, mw.ustring.format("In: %s.", published))
	end
	if data.place or data.publisher then
		local places, publishers
		if data.place then
			places = {}
			for _, snak in ipairs(data.place) do
				table.insert(places, Formatters.getFormattedValue(snak, {}))
			end
		end
		if data.publisher then
			publishers = {}
			for _, snak in ipairs(data.publisher) do
				table.insert(publishers, Formatters.getFormattedValue(snak, {}))
			end
		end
		if places and publishers then
			table.insert(
				content,
				table.concat(places, ', ') .. ': ' .. table.concat(publishers, ', ') .. '.'
			)
		else
			table.insert(
				content,
				table.concat(places or publishers, ', ') .. '.'
			)
		end
	end
	if data.date then
		local date = Formatters.getFormattedValue(data.date[1], { nolink = true }) .. '.'
		table.insert(content, date)
	end
	if data.isbn then
		local isbn = Formatters.getFormattedValue(data.isbn[1], { pattern = '[[Speciální:Zdroje knih/$1|$1]]' })
		table.insert(content, mw.ustring.format('[[International Standard Book Number|ISBN]] %s.', isbn))
	end
	if data.doi then
		local doi = Formatters.getFormattedValue(data.doi[1], {
			autoformat = true, property = data.doi[1].property,
		})
		table.insert(content, mw.ustring.format('[[Digital object identifier|DOI]] %s.', doi))
	end
	if data.url then
		local url = Formatters.getFormattedValue(data.url[1], { ['value-formatter'] = 'url', text = 'Dostupné online' }) .. '.'
		table.insert(content, url)
	elseif data.external then
		local url = Formatters.getFormattedValue(data.external[1], {
			autoformat = true,
			property = data.external[1].property,
			text = 'Dostupné online' -- todo: i18n
		}) .. '.'
		table.insert(content, url)
	end
	if #content > 0 and data.accessdate then
		local date = Formatters.getRawValue(data.accessdate[1], {}):toString()
		table.insert(content, mw.ustring.format('[cit. %s].', date))
	end
	return table.concat(content, ' ')
end

local function dataFromItem(id, data)
	for key, props in pairs(p.props) do
		if not data[key] then
			local array = {}
			for _, prop in ipairs(props) do
				for _, statement in ipairs(mw.wikibase.getBestStatements(id, prop)) do
					if lib.IsSnakValue(statement.mainsnak) then
						table.insert(array, statement.mainsnak)
					end
				end
				if #array > 0 then
					break
				end
			end
			if #array > 0 then
				data[key] = array
			end
		end
	end
end

function p.formatReferences(references, options)
	local frame = mw.getCurrentFrame()
	local Formatters = require 'Modul:Wikidata/Formatters'
	local valid_refs = {}
	local limit = tonumber(options.max_ref)
	for _, ref in ipairs(references) do
		if cache[ref.hash] then
			table.insert(valid_refs, frame:extensionTag('ref', '', { name = ref.hash }))
		else
			local data = {}
			for key, props in pairs(p.props) do
				local array = {}
				for _, prop in ipairs(props) do
					if ref.snaks[prop] then
						for _, snak in ipairs(ref.snaks[prop]) do
							if lib.IsSnakValue(snak) then
								table.insert(array, snak)
							end
						end
					end
					if #array > 0 then
						break
					end
				end
				if #array > 0 then
					data[key] = array
				end
			end
			for prop, snaks in pairs(ref.snaks) do
				if snaks[1].datatype == 'external-id' or prop == 'P627' then --fixme
					data.external = { snaks[1] }
					break
				end
			end
			if data.work then -- P248
				local id = Formatters.getRawValue(data.work[1], {})
				dataFromItem(id, data)
			end
			local ref_content = dataToContent(data)
			if ref_content ~= '' then
				if lib.IsOptionTrue(options, 'addlink') then
					-- TODO
				end
				ref_content = lib.addWdClass(ref_content)
				table.insert(valid_refs, frame:extensionTag('ref', ref_content, { name = ref.hash }))
				cache[ref.hash] = true
			end
		end
		if limit and #valid_refs == limit then
			break
		end
	end
	return table.concat(valid_refs)
end

return p
额头上长痘痘是什么原因 荠菜长什么样 睡觉盗汗是什么原因 为什么不建议小孩打流感疫苗 吃什么东西养胃最有效
螺内酯片是什么药 凯子和马子是什么意思 中耳炎去药店买什么药 合肥什么时候出梅 水命中什么水命最好
苏州有什么好玩的 黑马比喻什么样的人 阿玛尼算什么档次 夏天为什么会下冰雹 日进斗金是什么意思
肠系膜淋巴结是什么病 五行属火适合什么行业 茼蒿不能和什么一起吃 来月经前有什么症状 七月十四号是什么星座
脂膜炎是什么原因引起的hcv8jop3ns8r.cn 什么是四环素牙hcv9jop1ns4r.cn 什么手机最贵hcv9jop6ns5r.cn 舌尖溃疡是什么原因hcv8jop7ns9r.cn 左侧淋巴结肿大是什么原因travellingsim.com
师团长是什么级别hcv7jop5ns1r.cn 胃袋是什么hcv9jop2ns2r.cn 病毒性感冒发烧吃什么药hcv7jop4ns6r.cn 智能眼镜有什么功能hcv7jop9ns8r.cn 心肌病吃什么药hcv7jop9ns8r.cn
什么叫精神病hcv9jop2ns0r.cn 病是什么结构的字hcv8jop2ns1r.cn 左侧附件区囊性回声是什么意思onlinewuye.com 滑膜炎吃什么药hcv8jop8ns4r.cn 6月12是什么星座hcv9jop0ns1r.cn
有什么好吃的家常菜xianpinbao.com 寻麻疹不能吃什么bfb118.com 更的部首是什么hcv8jop5ns7r.cn 什么是假性自闭症hcv7jop6ns8r.cn 衤字旁的字与什么有关hcv8jop5ns5r.cn
百度