做梦梦到水是什么征兆| 出佛身血是什么意思| 急性肠胃炎打什么点滴| p波增宽什么意思| 大圈什么意思| 茄子和什么相克| 茯苓有什么功效和作用| 糖类抗原高是什么意思| 散瞳是什么| 水漫金山是什么生肖| 为什么喝咖啡会拉肚子| 昏睡是什么症状| 刘德华属什么生肖| 耳机降噪是什么意思| 无名指长痣代表什么| 长智齿一般什么年龄| 蚊子吸血是为了什么| 央企董事长什么级别| 仰卧起坐是什么现象| 正月二十九是什么星座| 胆固醇高是什么意思| 低密度脂蛋白胆固醇高吃什么药| 睡觉为什么流口水| 大学记过处分有什么影响| 天天喝豆浆有什么好处和坏处| 医学hr是什么意思| 容易出汗是什么问题| 转网是什么意思| 心悸心慌吃什么药最好| 蚕豆病不能吃什么药| 马蜂泡酒有什么功效| 尿路感染喝什么药| 肩周炎贴什么膏药效果最好| 发烧为什么会浑身酸疼| 名创优品是卖什么的| 什么是设计| 1945属什么生肖| 一直以来是什么意思| 报工伤需要什么材料| 维生素h是什么| 九一年属什么生肖| 加码是什么意思| 蜂鸟是什么鸟| 屈光和近视有什么区别| 活在当下什么意思| 皮疹用什么药膏最好| 猫咪喜欢吃什么| 数字17代表什么意思| 西红柿不能和什么一起吃| 冬季吃什么| 多发纳氏囊肿是什么意思| 蓝色与什么色搭配好看| 一天中什么时候最热| 十月二十五是什么星座| 小孩手指脱皮是什么原因| 譬如是什么意思| 大便是黑色的是什么原因| 直落是什么意思| 外耳炎用什么药| aa是什么病| 电风扇不转是什么原因| 癫痫挂什么科| 小便尿不出来是什么原因| 职业病是什么意思| 直肠炎吃什么药好的快| 2009年属什么| inr是什么意思| 仙是什么意思| 明年是什么生肖| 拉肚子吃什么消炎药| 眼睛有点黄是什么原因| 尿道口有灼热感是什么原因| 什么沐浴露好用| 3.8号是什么星座| aosc是什么病| 抽血生化是查什么| 水烧开后有白色沉淀物是什么| 蓝桉什么意思| 乘风破浪什么意思| 突然流鼻血是什么征兆| 无蒂息肉是什么意思| 什么然而止| t11椎体在什么位置| 肚脐眼中间疼是什么原因| 梅西踢什么位置| 圆脸适合什么发型| 后壁和前壁有什么区别| 浪琴名匠系列什么档次| 回眸一笑百媚生什么意思| 什么炒肉| 灰指甲不治疗有什么后果| 腿上有白色条纹是什么| 什么的饰品| 瘦脱相是什么意思| 利是是什么意思| 霍山石斛有什么功效| 疱疹长什么样子图片| 狼牙套是什么| 悲催是什么意思| 胆固醇高不可以吃什么食物| 天生丽质难自弃是什么意思| 减肥期间早餐应该吃什么| 头晕是为什么| 巴扎黑是什么意思| 脸色苍白没有血色是什么原因| 有什么神话故事| 称中药的小秤叫什么| 梦见火是什么意思| 脑梗什么原因导致的| 池塘边的榕树上是什么歌| 包茎挂什么科| 宁静致远是什么意思| 鸾凤和鸣什么意思| 乳腺纤维瘤有什么症状表现| 乙丑是什么生肖| 什么是违反禁令标志指示| 含羞草为什么会害羞| darker是什么意思| 梦见屎是什么意思| 严什么什么重| 心肌炎吃什么药| 乏力没精神容易疲劳是什么原因| 月经不能吃什么东西| pvd是什么材料| 看肺子要挂什么科| 主任医师是什么级别| 胰腺炎不能吃什么食物| 甲木是什么意思| 肝炎吃什么药最好| 什么东西晚上才生出尾巴| 表象是什么意思| 睡觉后脑勺出汗多是什么原因| 黄金分割点是什么| 白羊女喜欢什么样的男生| 吃什么提神| 肾炎吃什么食物好| wpw综合症是什么意思| XX是什么意思| 分手送什么花| 便秘是什么症状| 护理员是干什么的| 死有余辜是什么意思| 鲁迅真名叫什么| veromoda是什么牌子| 胸口中间疼挂什么科| 银河系的中心是什么| 庚子是什么时辰| 脾胃伏火是什么意思| 什么水果对皮肤好| 手术后不能吃什么食物| 不走寻常路是什么意思| 孕妇吃什么蔬菜| 小结是什么意思| 猫能吃什么| 荥在中医读什么| 吃西洋参有什么好处| 七一年属什么| 面基是什么意思啊| 女人脚底有痣代表什么| 减肥期间吃什么主食| 在减肥期间吃什么最好| 子孙满堂是什么生肖| 胃疼吃什么| 脑炎是什么原因引起的| 阎维文什么军衔| 换肾是什么病| 气血不足吃什么食物最好| 胃胀是什么原因| 康妇炎胶囊主治什么| 什么的事物| 鱼翅配什么煲汤最好| 柠檬加蜂蜜泡水喝有什么功效| 办暂住证需要什么| 津液是什么| 西楚霸王是什么生肖| 夏天猪骨煲什么汤最好| 星期六打喷嚏代表什么| 野生葛根粉有什么功效| 阴虚阳亢是什么意思| 脚肿什么原因| 小孩拉肚子吃什么食物| 关节炎吃什么药| 82年属什么的| 30如狼40如虎是什么意思| 泌尿是什么意思| 怀孕吃什么宝宝皮肤白| 什么是黑色素瘤| 平台期是什么意思| 7d是什么意思| 卡针是什么| 侯字五行属什么| 青梅竹马什么意思| 慢性胃炎吃什么药好| 男才女貌是什么意思| 八月20号是什么星座| 牙龈溃烂是什么原因| 黄酒是什么酒| 中气是什么意思| 为什么会铅中毒| 人鱼小姐大结局是什么| hcv阳性是什么意思| ny是什么牌子| 减肥中午吃什么比较好| 宫颈粘膜慢性炎是什么意思| 壶嘴为什么不能对着人| 龙和什么属相相克| 11月27日是什么星座| 属龙和什么属相相冲| 记仇的人是什么性格| 36周检查什么项目| 麻批是什么意思| 专升本有什么专业| 女性尿道炎吃什么药| redline是什么牌子| 放生是什么意思| 减脂是什么意思| 跟泰迪很像的狗叫什么| 悦己是什么意思| bata鞋属于什么档次| 素股是什么意思| 去医院看肛门挂什么科| 对别人竖中指是什么意思| 爱情是什么感觉| 螺蛳粉为什么那么臭| 碱性磷酸酶偏低是什么原因| 什么叫淋巴结转移| 吃羊肉不能吃什么水果| 2月18日是什么星座| 颠是什么意思| 育红班是什么意思| 被银环蛇咬了有什么症状| 10月11是什么星座| 爱情是什么| 2015年属什么| 莲花代表什么象征意义| 被隐翅虫咬了涂什么药| 蚩尤是什么| 看结石挂什么科室| 什么是大三阳| 生意兴隆是什么意思| 短效避孕药什么牌子好| 白癜风是什么症状| 大便秘结是什么原因| 风热感冒用什么药好| 乳酸杆菌少或无是什么意思| 生化妊娠后需要注意什么| 常流鼻血是什么原因| 脊髓炎吃什么药| 栓是什么意思| m是什么| 地奥心血康软胶囊主治什么病| s和m是什么意思啊| 存款准备金率下调意味着什么| 盐袋子热敷有什么好处| 还行吧是什么意思| 痢疾是什么| 长春有什么大学| 大便为什么是绿色的| 怀孕了吃什么药能打掉| 公务员和事业编有什么区别| 福肖指什么生肖| 感觉心慌是什么原因| kodice是什么牌子| 昱这个字念什么| 百度Saltar ao contido

永远做中国人民和中华民族的主心骨 ——五论习近平十三届全国人大一次会议重要讲话

Esta páxina está semiprotexida
Na Galipedia, a Wikipedia en galego.
Indicacións de uso do módulo

Obxectivo

[editar a fonte]
Modelos de citas
{{Cita arXiv}}pre-impresións de arXiv
{{Cita audiovisual}}medios audiovisuais
{{Cita audiovisual notas}}notas e libretos de medios audiovisuais
{{Cita conferencia}}conferencias publicadas
{{Cita DVD notas}}notas e libretos de DVDs/BRs
{{Cita enciclopedia}}coleccións editadas
{{Cita entrevista}}entrevistas
{{Cita episodio}}episodios de televisión ou radio
{{Cita discurso}}discursos
{{Cita grupo novas}}grupos de novas online
{{Cita informe}}informes
{{Cita informe técnico}}informes técnicos
{{Cita libro}}libros
{{Cita lista correo}}listas de distribución correo electrónico públicas
{{Cita mapa}}mapas
{{Cita nota de prensa}}notas de prensa
{{Cita novas}}artigos de noticias
{{Cita podcast}}podcast de son ou video
{{Cita publicación periódica}}revistas, xornais, papeis académicos
{{Cita serie}}series de son ou video
{{Cita sinal}}sinais, placas, carteis
{{Cita tese}}teses
{{Cita tweet}}chíos
{{Cita videoxogo}}videoxogos
{{Cita web}}fontes web
Citas en formato curto
百度 马克思主义哲学基于物质生产实践对人类历史展开的前提和基础意义,指出作为一种历史现象,自由状况是由现实生产方式的性质所直接决定的,只有科学揭示现实物质生产过程的运行机制以及生产方式的内在演变规律,通过先进阶级的力量改变不合理的所有制关系,推进历史进入到共产主义阶段才能最终实现人的自由,这显然为人类真正把握自由问题提供了一把钥匙。

Módulo de soporte para a xeración de referencias do tipo "cita xxxx". Empregado polos modelos de citas.

Compo?entes do Módulo

[editar a fonte]
Páxina Páxina de probas Descrición
Módulo:Citas Módulo:Citas/probas Renderizado e funcións de apoio
Módulo:Citas/Configuration Módulo:Citas/Configuration/probas Táboas de traducións, identificación e manexo de erros
Módulo:Citas/Whitelist Módulo:Citas/Whitelist/probas Lista de parámetros activos, desbotados e obsoletos
Módulo:Citas/ValidaciónDatas Módulo:Citas/ValidaciónDatas/probas Validación de formato de datas (non usado, placeholder)
Módulo:Citas/Identifiers Módulo:Citas/Identifiers/probas Funcións para os identificadores con nome (isbn, doi, pmid, etc.)
Módulo:Citas/Utilities Módulo:Citas/Utilities/probas Funcións e táboas comúns
Módulo:Citas/COinS Módulo:Citas/COinS/probas Funcións para os metadatos
Módulo:Citas/Suggestions Módulo:Citas/Suggestions/probas Lista de erros comúns nos identificadores de parámetros ligados aos identificadores correctos

Esta documentación está transcluída desde Módulo:Citas/Utilities/uso. Os editores poden probar cambios no mesmo en Módulo:Citas/Utilities/probas.
Por favor, engade as categorías na subpáxina de documentación e os interwikis no Wikidata. Ver as subpáxinas deste módulo.

local u = {}

local z = {
	error_categories = {};														-- for categorizing citations that contain errors
	error_ids = {};
	message_tail = {};
	maintenance_cats = {};														-- for categorizing citations that aren't erroneous per se, but could use a little work
	properties_cats = {};														-- for categorizing citations based on certain properties, language of source for instance
};


--[[--------------------------< F O R W A R D   D E C L A R A T I O N S >--------------------------------------
]]

local cfg;																		-- table of tables imported from slected Module:Citation/CS1/Configuration


--[[--------------------------< I S _ S E T >------------------------------------------------------------------

Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string.
This function is global because it is called from both this module and from Date validation

]]
local function is_set( var )
	return not (var == nil or var == '');
end


--[[--------------------------< I N _ A R R A Y >--------------------------------------------------------------

Whether needle is in haystack

]]

local function in_array( needle, haystack )
	if needle == nil then
		return false;
	end
	for n,v in ipairs( haystack ) do
		if v == needle then
			return n;
		end
	end
	return false;
end


--[[--------------------------< S U B S T I T U T E >----------------------------------------------------------

Populates numbered arguments in a message string using an argument table.

]]

local function substitute( msg, args )
	return args and mw.message.newRawMessage( msg, args ):plain() or msg;
end


--[[--------------------------< E R R O R _ C O M M E N T >----------------------------------------------------

Wraps error messages with css markup according to the state of hidden.

]]
local function error_comment( content, hidden )
	return substitute( hidden and cfg.presentation['hidden-error'] or cfg.presentation['visible-error'], content );
end


--[[--------------------------< S E T _ E R R O R >--------------------------------------------------------------

Sets an error condition and returns the appropriate error message.  The actual placement of the error message in the output is
the responsibility of the calling function.

]]
local function set_error( error_id, arguments, raw, prefix, suffix )
	local error_state = cfg.error_conditions[ error_id ];
	
	prefix = prefix or "";
	suffix = suffix or "";
	
	if error_state == nil then
		error( cfg.messages['undefined_error'] );
	elseif is_set( error_state.category ) then
		table.insert( z.error_categories, error_state.category );
	end
	
	local message = substitute( error_state.message, arguments );
	
	message = message .. " ([[" .. cfg.messages['help page link'] .. 
		"#" .. error_state.anchor .. "|" ..
		cfg.messages['help page label'] .. "]])";
	
	z.error_ids[ error_id ] = true;
	if in_array( error_id, { 'bare_url_missing_title', 'trans_missing_title' } )
			and z.error_ids['citation_missing_title'] then
		return '', false;
	end
	
	message = table.concat({ prefix, message, suffix });
	
	if raw == true then
		return message, error_state.hidden;
	end		
		
	return error_comment( message, error_state.hidden );
end


--[[-------------------------< I S _ A L I A S _ U S E D >-----------------------------------------------------

This function is used by select_one() to determine if one of a list of alias parameters is in the argument list
provided by the template.

Input:
	args – pointer to the arguments table from calling template
	alias – one of the list of possible aliases in the aliases lists from Module:Citation/CS1/Configuration
	index – for enumerated parameters, identifies which one
	enumerated – true/false flag used choose how enumerated aliases are examined
	value – value associated with an alias that has previously been selected; nil if not yet selected
	selected – the alias that has previously been selected; nil if not yet selected
	error_list – list of aliases that are duplicates of the alias already selected

Returns:
	value – value associated with alias we selected or that was previously selected or nil if an alias not yet selected
	selected – the alias we selected or the alias that was previously selected or nil if an alias not yet selected

]]

local function is_alias_used (args, alias, index, enumerated, value, selected, error_list)
	if enumerated then															-- is this a test for an enumerated parameters?
		alias = alias:gsub ('#', index);										-- replace '#' with the value in index
	else
		alias = alias:gsub ('#', '');											-- remove '#' if it exists
	end

	if is_set(args[alias]) then													-- alias is in the template's argument list
		if value ~= nil and selected ~= alias then								-- if we have already selected one of the aliases
			local skip;
			for _, v in ipairs(error_list) do									-- spin through the error list to see if we've added this alias
				if v == alias then
					skip = true;
					break;														-- has been added so stop looking 
				end
			end
			if not skip then													-- has not been added so
				table.insert( error_list, alias );								-- add error alias to the error list
			end
		else
			value = args[alias];												-- not yet selected an alias, so select this one
			selected = alias;
		end
	end
	return value, selected;														-- return newly selected alias, or previously selected alias
end


--[[--------------------------< A D D _ M A I N T _ C A T >------------------------------------------------------

Adds a category to z.maintenance_cats using names from the configuration file with additional text if any.
To prevent duplication, the added_maint_cats table lists the categories by key that have been added to z.maintenance_cats.

]]

--local added_maint_cats = {}														-- list of maintenance categories that have been added to z.maintenance_cats
--local function add_maint_cat (key, arguments)
--	if not added_maint_cats [key] then
--		added_maint_cats [key] = true;											-- note that we've added this category
--		table.insert( z.maintenance_cats, substitute (cfg.maint_cats [key], arguments));	-- make name then add to table
--	end
--end


--[[--------------------------< S A F E _ F O R _ I T A L I C S >----------------------------------------------

Protects a string that will be wrapped in wiki italic markup '' ... ''

]]

local function safe_for_italics( str )
	if not is_set(str) then
		return str;
	else
		if str:sub(1,1) == "'" then str = "<span></span>" .. str; end
		if str:sub(-1,-1) == "'" then str = str .. "<span></span>"; end
		
		-- Remove newlines as they break italics.
		return str:gsub( '\n', ' ' );
	end
end


--[[--------------------------< W R A P _ S T Y L E >----------------------------------------------------------

Applies styling to various parameters.  Supplied string is wrapped using a message_list configuration taking one
argument; protects italic styled parameters.  Additional text taken from citation_config.presentation - the reason
this function is similar to but separate from wrap_msg().

]]

local function wrap_style (key, str)
	if not is_set( str ) then
		return "";
	elseif in_array( key, { 'italic-title', 'trans-italic-title' } ) then
		str = safe_for_italics( str );
	end

	return substitute( cfg.presentation[key], {str} );
end


--[[--------------------------< S E L E C T _ O N E >----------------------------------------------------------

Chooses one matching parameter from a list of parameters to consider.  The list of parameters to consider is just
names.  For parameters that may be enumerated, the position of the numerator in the parameter name is identified
by the '#' so |author-last1= and |author1-last= are represented as 'author-last#' and 'author#-last'.

Because enumerated parameter |<param>1= is an alias of |<param>= we must test for both possibilities.


Generates an error if more than one match is present.

]]

local function select_one( args, aliases_list, error_condition, index )
	local value = nil;															-- the value assigned to the selected parameter
	local selected = '';														-- the name of the parameter we have chosen
	local error_list = {};

	if index ~= nil then index = tostring(index); end

	for _, alias in ipairs( aliases_list ) do									-- for each alias in the aliases list
		if alias:match ('#') then												-- if this alias can be enumerated
			if '1' == index then												-- when index is 1 test for enumerated and non-enumerated aliases
				value, selected = is_alias_used (args, alias, index, false, value, selected, error_list);	-- first test for non-enumerated alias
			end
			value, selected = is_alias_used (args, alias, index, true, value, selected, error_list);		-- test for enumerated alias
		else
			value, selected = is_alias_used (args, alias, index, false, value, selected, error_list);		--test for non-enumerated alias
		end
	end

	if #error_list > 0 and 'none' ~= error_condition then						-- for cases where this code is used outside of extract_names()
		local error_str = "";
		for _, k in ipairs( error_list ) do
			if error_str ~= "" then error_str = error_str .. cfg.messages['parameter-separator'] end
			error_str = error_str .. wrap_style ('parameter', k);
		end
		if #error_list > 1 then
			error_str = error_str .. cfg.messages['parameter-final-separator'];
		else
			error_str = error_str .. cfg.messages['parameter-pair-separator'];
		end
		error_str = error_str .. wrap_style ('parameter', selected);
		table.insert( z.message_tail, { set_error( error_condition, {error_str}, true ) } );
	end
	
	return value, selected;
end


--[=[-------------------------< R E M O V E _ W I K I _ L I N K >----------------------------------------------

Gets the display text from a wikilink like [[A|B]] or [[B]] gives B

]=]

local function remove_wiki_link (str)
	return (str:gsub( "%[%[([^%[%]]*)%]%]", function(l)
		return l:gsub( "^[^|]*|(.*)$", "%1" ):gsub("^%s*(.-)%s*$", "%1");
	end));
end


--[[--------------------------< S E T _ S E L E C T E D _ M O D U L E S >--------------------------------------

Sets local cfg table to same (live or sandbox) as that used by the other modules.

]]

local function set_selected_modules (cfg_table_ptr)
	cfg = cfg_table_ptr;
end

--[[--------------------------< L I G A Z O N _ L I N G U A >--------------------------------------

Recibe o código de lingua e devolve a ligazón. Se non está na lista devolve branco.

]]
local function ligazon_lingua (lingua)
  local ligazon = ""
	if lingua == 'es' then 
		ligazon = '[[Lingua castelá|castelán]]'
	elseif lingua == 'en'  then			
		ligazon = '[[Lingua inglesa|inglés]]'
	elseif lingua == 'fr' then	
		ligazon = '[[Lingua francesa|francés]]'
	elseif lingua == 'de' then	
		ligazon = '[[Lingua alemá|alemán]]'
	elseif lingua == 'ar' then	
		ligazon = '[[Lingua árabe|árabe]]'
	elseif lingua == 'ast' then	
		ligazon = '[[Lingua asturiana|asturiano]]'
	elseif lingua == 'ca' then	
		ligazon = '[[Lingua catalá|catalán]]'
	elseif lingua == 'eu' then	
		ligazon = '[[Lingua éuscara|éuscaro]]'
	elseif lingua == 'it' then	
		ligazon = '[[Lingua italiana|italiano]]'
	elseif lingua == 'pt' then	
		ligazon = '[[Lingua portuguesa|portugués]]'
	elseif lingua == 'vl' then	
		ligazon = 'varias [[lingua]]s'
        else 
                ligazon = ""
	end

  return ligazon
end

return {																		-- return exported functions and tables
	is_set = is_set,
	in_array = in_array,
	substitute = substitute,
	error_comment = error_comment,
	set_error = set_error,
	select_one = select_one,
	add_maint_cat = add_maint_cat,
	wrap_style = wrap_style;
	safe_for_italics = safe_for_italics;
	remove_wiki_link = remove_wiki_link;
	set_selected_modules = set_selected_modules;
        ligazon_lingua = ligazon_lingua;
	z = z,
	}
端午节晚上吃什么 1月7号什么星座 道貌岸然是什么生肖 十二生肖代表什么花 什么牌子的益生菌调理肠胃比较好
早餐吃什么最减肥瘦身 畏手畏脚是什么意思 包皮长什么样 午睡睡不着是什么原因 胸腺瘤是什么病
什么是甲沟炎 六月八号是什么星座 淋球菌阳性是什么意思 水瓶座和什么座最配 干疮是什么样子的图片
肝郁脾虚吃什么药效果最好 心肌是什么意思 梦到狗什么意思 黄斑前膜是什么病 750是什么意思
胃不好吃什么养胃水果hcv9jop0ns0r.cn ad是什么的缩写hcv9jop6ns2r.cn 三月是什么月hcv9jop2ns9r.cn 什么样的人容易垂体瘤hcv7jop9ns6r.cn vertu手机为什么那么贵hcv9jop5ns7r.cn
表达是什么意思hcv9jop3ns7r.cn 1988年什么命hcv8jop7ns1r.cn ph值高是什么原因hcv8jop2ns4r.cn HP是什么hcv8jop9ns4r.cn 菠萝蜜的核有什么功效0735v.com
过期的洗面奶可以用来做什么hcv9jop2ns8r.cn 场面是什么意思hcv8jop3ns9r.cn 美甲什么颜色显手白hcv7jop6ns3r.cn 缱绻旖旎是什么意思hcv8jop9ns6r.cn 蛇盘疮是什么症状xianpinbao.com
糖蛋白是什么hcv8jop4ns4r.cn coach是什么牌子的包hcv7jop9ns8r.cn 一级甲等医院是什么意思hcv8jop6ns1r.cn 瑞舒伐他汀钙片治什么病hcv7jop9ns6r.cn 胃反流吃什么药效果好hlguo.com
百度