黄芪什么季节喝最好| rh是什么意思| 丙型肝炎吃什么药最好| 左耳发热是什么预兆| 九月初四是什么星座| 滥竽充数的充是什么意思| 小儿多动症挂什么科| 1948年中国发生了什么| 雄鱼是什么鱼| 七一年属什么| 碳酸钙是什么| 脚后跟干裂用什么药膏| 计数单位是指什么| 圆是什么结构| 盲人按摩有什么好处| 加息是什么意思| 爱出汗的人是什么原因| 地铁不能带什么东西| 代偿期和失代偿期是什么意思| 什么力气| 奶奶的妈妈应该叫什么| 女性白细胞高是什么原因| 乳腺结节钙化是什么意思| 什么除湿气效果最好| 心电图窦性心律是什么意思| 司仪是什么意思| 检查胃挂什么科| 咳嗽呕吐是什么原因| 1月21号是什么星座| 红小豆和赤小豆有什么区别| 晶莹的意思是什么| 晚上适合做什么运动| 小儿呕吐是什么原因引起的| 摔伤用什么药好得快| 尿渗透压低是什么原因| 8月6日是什么星座| 荨麻疹什么样| 浑身无力是什么原因| 养肝护肝吃什么最好| 扁桃体化脓是什么原因引起的| 一心一意什么意思| 上海有什么好玩的地方适合小孩子| 吃什么不长肉还能瘦| 系带是什么| 屎壳郎为什么要推粪球| opv是什么疫苗| 吃什么东西最营养| 梦到吃螃蟹是什么意思| 缺铁性贫血吃什么好| 忍者神龟是什么意思| 什么原因引起甲亢| 华在姓氏里读什么| 脖子后面正中间有痣代表什么| 返祖现象什么意思| 口甜是什么原因引起的| hennessy是什么酒价格多少| 为什么会有痰| 在什么情况下需要做肠镜| 白天尿少晚上尿多什么原因| 退职是什么意思| 什么年什么月| 相合是什么意思| 无感什么意思| 便秘吃什么药效果好| 补办结婚证需要什么手续| 眼睛红肿是什么原因| 内脂豆腐是什么| 吃什么容易结石| 不care是什么意思| 早上五六点是什么时辰| 指教是什么意思| 什么是阴道炎| 什么手机最贵| 炮制是什么意思| 弱水是什么意思| 早餐吃什么比较好| 肾阴虚什么症状| 吃什么瘦肚子| 足石念什么| 边界尚清是什么意思| courvoisier是什么酒| 为什么今年有两个6月| 92年1月属什么生肖| 哈达是什么意思| 什么是代谢| 生肖排第六是什么生肖| 头皮痒头皮屑多是什么原因| 前胸后背出汗是什么原因造成的| 08年属什么| 纠葛是什么意思| 分泌物多是什么原因| 醋酸视黄酯是什么| 总胆红素偏高有什么危害| 59岁属什么生肖| 隆字五行属什么| 剪不断理还乱是什么意思| haccp是什么认证| 做梦梦到狮子是什么意思| 胰岛素高是什么意思| 白矾是什么东西| 什么叫小微企业| 胸胀疼是什么原因| 汗多尿少是什么原因| vol是什么意思| 治便秘吃什么| 汤去掉三点水念什么| 总是嗳气是什么原因| 尿酸碱度是什么意思| 空调什么牌子好| 阴虚火旺是什么意思| ser是什么氨基酸| 尿毒症能吃什么水果| 什么药补血最快| 活性酶是什么| 身上长白色的斑点是什么原因| 肾出血是什么原因引起的| 蹲久了站起来头晕是什么原因| 莲子是什么| 男人要吃什么才能壮阳| 耐药性是什么意思| mmf是什么药| 头汗多是什么原因引起的| bug是什么意思网络用语| 梦见大狼狗是什么意思| 什么是渎职| 什么时候开始数伏| 疑难杂症是什么意思| 喷字去掉口念什么| 女性生活疼痛什么原因| 12月22号是什么星座| 牙龈疼是什么问题| 病毒感染咳嗽吃什么药效果好| 眼睛发炎用什么眼药水| 人越来越瘦是什么原因| hospital是什么意思| 飞机为什么能飞上天| 什么的梦境| 龟头炎用什么| o型血为什么招蚊子| guess什么牌子| 坐南朝北是什么意思| 墨西哥用什么货币| 吃薄荷对人身体有什么好处| 黑白颠倒是什么意思| 头痒用什么东西洗头最好| 吃什么可以排毒| 周边是什么| 破除是什么意思| 全身出虚汗多是什么原因造成的| 7月6日是什么节日| 玻璃心是什么意思| pq是什么意思| 1960属什么生肖| 白带有血丝是什么情况| 什么样的红点是艾滋病| 什么虎不吃人| 容易淤青的体质叫什么| 肉沫炒什么好吃| r值是什么| 考警校需要什么条件| hr是什么单位| 牙齿发黄是什么原因| 宛如是什么意思| 脑梗是由什么引起的| 拔牙后吃什么| 艳羡是什么意思| 四眼狗是什么品种| 人流是什么意思| 梦见鸡死了是什么预兆| 农历10月26日是什么星座| et什么意思| 司令是什么军衔| 薄荷泡水喝有什么好处| 甲亢的早期症状是什么| 腰果有什么好处| 人心是什么意思| 荷叶和山楂一起泡水有什么功效| 汗疱疹用什么药好| 儿童办护照需要什么证件| 怀孕做nt检查什么| 吃什么hcg翻倍快| 乙型肝炎病毒表面抗体阳性是什么意思| 贫血是什么意思| 桑蚕丝是什么面料| 妈妈的弟弟的老婆叫什么| 怕金森是什么症状| 肝有钙化灶是什么意思| 什么是混合物| 什么的白塔| 庸人自扰之是什么意思| 左边脸长痘痘是什么原因| 壮腰健肾丸有什么功效| 移花接木的意思是什么| 磨砂膏是什么| 什么时候测试怀孕最准确的| 医院查过敏源挂什么科| 鸟代表什么生肖| 木瓜是什么季节的| 查肝炎做什么检查项目| 身体缺钾会有什么症状| 小儿风寒感冒吃什么药最好| 请多指教是什么意思| 葛根粉有什么作用| 老公梦见老婆出轨是什么意思| 月经一直不停有什么办法止血| 肠炎吃什么| 多梦是什么原因造成的| 咳嗽喉咙痒吃什么药好得快| 肥胖纹什么样子| 二氧化碳是什么东西| 屁股后面骨头疼是什么原因| 偶数和奇数是什么意思| rbc是什么意思| 口里有异味是什么原因| 便血挂什么科| 十二朵玫瑰花代表什么意思| 什么叫体位性低血压| 精斑是什么| 蹦蹦跳跳的动物是什么生肖| 儿童办理护照需要什么材料| 被隐翅虫咬了用什么药| 男人气血不足吃什么药| 血小板偏高有什么危害| lively是什么意思| 柚子是什么季节| 小麦淀粉是什么| 激光是什么| 手蜕皮什么原因| 男命正印代表什么| 副局长什么级别| 213什么意思| 玉帝和王母是什么关系| 光脚走路有什么好处| 便秘不能吃什么食物| 肛裂是什么| 长期喝蜂蜜水有什么好处| 7月9日是什么星座| 八方来财是什么意思| 肺结核什么症状| hlh是什么病| 老放臭屁是什么原因| 大小便失禁是什么原因| 心悸是什么感觉| 纯爱是什么意思| 奋不顾身的顾是什么意思| 梦见晒衣服是什么意思| 煮沸除氯是什么意思| 狸子是什么动物| 8月28号是什么日子| 艾蒿是什么| 子宫憩室是什么| 咳嗽绿痰是什么原因| 脚心抽筋是什么原因引起的| 小五行属性是什么| 冬虫夏草到底是什么| 0是什么数| 女性尿路感染是什么原因造成的| 英短蓝猫吃什么猫粮好| 蒂芙尼算什么档次| 女孩叫锦什么好听| 甘草长什么样| 晚来天欲雪能饮一杯无什么意思| 抑郁症是什么症状| 5w是什么意思| 百度Перайсц? да зместу

4月8号什么星座

З В?к?педы?, свабоднай энцыклапеды?

local data = require('Module:External links/data')
-- Localizable part
-- Please, note, that labels to various sites and cataloges are taken from Wikidata (i.e. Wikidata label)

local linksPrefix = ''
local project = 'В?к?педыя'
local categoryTemplateEmpty = project .. ':Шаблон ?Вонкавыя спасылк?? пусты'
local categoryWithWikimediaCommons = project .. ':Артыкулы са спасылкам? на В?к?схов?шча'
local categoryColored = project .. ':Каляровы шаблон ?Вонкавыя спасылк??'
local templateLink = 'Вонкавыя спасылк?'

local group1Label = '[[' .. linksPrefix .. 'Сацыяльная сетка|У сацыяльных сетках]]'
local group2Label = 'Тэксты твора?'
local group3Label = 'Фота, в?дэа ? а?дыё'
local group4Label = 'Тэматычныя сайты'
local group5Label = 'Сло?н?к? ? энцыклапеды?'
local group6Label = 'Генеалог?я ? некрапал?стыка'
local group7Label = 'Таксанам?я'
local group8Label = '[[' .. linksPrefix .. 'Нарматы?ны кантроль|Нарматы?ны кантроль]]'

-- The language codes that should be always displayed even if they have normal rank and claim with another language and prefferered rank exists
local preferredLanguage = 'Q9091'; -- belarusian

local templateColorName = 'колер';
-- Some projects have "named" colors, defined by templates
function colorByTitle( frame, colorTitle )
	local templateName = 'Колер/' .. colorTitle;
	local templateTitle = mw.title.makeTitle( 'Template', templateName );
	if ( templateTitle == nil or not templateTitle.exists ) then
		return false;
	end
	return frame:expandTemplate{ title = templateName };
end

-- Feel free to correct labels and categories, or add/remove sources here

-- Non-localizable part (not need to localize )
local moduleNavbox = require('Module:Navbox')
local moduleLanguages -- accessed if necessary

local titleBasedLinks = { ['Q602358'] = true, ['Q17290934'] = true, ['Q1960551'] = true }

local p = {}

local function link( url )
	return url
end

local function renderLabel( params )
	if type( params ) == 'string' then
		return params;
	end

	local id = params[ 1 ];
	local default = params[ 2 ];

	if #params >= 3 then
		local label = params[ 3 ];
		local link = mw.wikibase.sitelink( id );
		if ( link ~= nil ) then
			return '[[' .. link .. '|' .. label .. ']]';
		end
		local title = mw.wikibase.label( id ) or default;
		return '<span title="' .. title .. '" style="border-bottom: 1px dotted; cursor: help;">' .. label .. '</span>'
	end

	return mw.wikibase.label( id ) or default;
end

local function getQualifierSingleValue( statement, qualifierName )
	if (statement ~= nil
			and statement.qualifiers ~= nil
			and statement.qualifiers[qualifierName] ~= nil) then

		for qualifierIndex, qualifier in pairs( statement.qualifiers[qualifierName] ) do
			if (qualifier.datavalue ~= nil
					and qualifier.datavalue.type ~= nil
					and qualifier.datavalue.value ~= nil) then

				if ( qualifier.datavalue.type == "monolingualtext" ) then
					return qualifier.datavalue.value.text;
				end
				if ( qualifier.datavalue.type == "string" ) then
					return qualifier.datavalue.value;
				end
				if ( qualifier.datavalue.type == "wikibase-entityid" ) then
					return qualifier.datavalue.value.id;
				end
				mw.log( 'Unknown qualifier type: ' .. qualifier.datavalue.type )
				return qualifier.datavalue.value;

			end
		end

	end
	return nil;
end

local function getQualifierValues( statement, qualifierName )
	local result = {}
	if (statement ~= nil
			and statement.qualifiers ~= nil
			and statement.qualifiers[qualifierName] ~= nil) then
		local qualifiers = statement.qualifiers[qualifierName];
		for _, qualifier in pairs( qualifiers ) do
			if (qualifier.datavalue ~= nil
				and qualifier.datavalue.type ~= nil
				and qualifier.datavalue.value ~= nil) then

				if ( qualifier.datavalue.type == "string" ) then
					result[ #result + 1 ] = qualifier.datavalue.value;
				elseif ( qualifier.datavalue.type == "wikibase-entityid" ) then
					result[ #result + 1 ] = qualifier.datavalue.value.id;
				else
					mw.log( 'Unknown qualifier type: ' .. qualifier.datavalue.type );
					result[ #result + 1 ] = qualifier.datavalue.value;
				end
			end
		end
	end
	return result;
end

local function contains( tableStructure, value )
	if ( tableStructure == nil or value == nil) then
		return true;
	end
	for index, line in pairs( tableStructure ) do
		if ( line == value ) then
			return true;
		end
	end
	return false;
end

local function filterByRank( resourceDatas )
	-- itemId, languages. rank = rank

	local hasPreffered = false;
	for index, resourceData in pairs(resourceDatas) do
		if ( resourceData.rank == 'preferred' ) then
			hasPreffered = true;
		end
	end

	if (not hasPreffered) then
		return resourceDatas;
	end

	local result = {};
	for index, resourceData in pairs(resourceDatas) do
		if ( resourceData.rank == 'preferred' or contains(resourceData.languages, preferredLanguage) ) then
			table.insert(result, resourceData);
		end
	end

	return result;
end

local function collectLinks( configuration, elementId )
	--Create rows
	local elements = {}
	local data = {}


	local item = mw.wikibase.getEntity( elementId )
	if item == nil or item.claims == nil then
		return elements
	end

	if ( item.claims['P553'] ~= nil ) then
		local claim = item.claims['P553']
		for _, statement in pairs( claim ) do
			if (statement ~= nil) then
				-- profile ID
				local rank = statement.rank or 'normal';
				if ( rank ~= 'deprecated' ) then
					local itemId = getQualifierSingleValue( statement, 'P554' );
					if (itemId ~= nil) then
						-- language
						local languages = getQualifierValues( statement, 'P407' );
						local resourceId = statement.mainsnak.datavalue.value.id;
						if (data[resourceId] == nil) then
							data[resourceId] = {};
						end
						table.insert( data[resourceId], { itemId = itemId, languages = languages, rank = rank} );
					end
				end
			end
		end
	end

	for _, params in pairs( configuration ) do
		local resourceId = params[2]

		local claim = item.claims[ resourceId ]
		if ( claim ) then
			for _, statement in pairs( claim ) do
				local rank = statement.rank or 'normal';
				if ( rank ~= 'deprecated' and statement.mainsnak.datavalue) then
					local itemId = statement.mainsnak.datavalue.value;
					local languages = getQualifierValues( statement, 'P407' );
					if (data[resourceId] == nil) then
						data[resourceId] = {};
					end
					table.insert( data[resourceId], { itemId = itemId, languages = languages, rank = rank} );
				end
			end
		end
	end

	for resourceId, resourceDatas in pairs( data ) do
		data[resourceId] = filterByRank( resourceDatas );
	end

	local hasNonOptionalLinks = false

	for _, params in pairs( configuration ) do
		local resourceId = params[2]
		local optional = params[5] or false;

		local resourceDatas = data[resourceId];
		if resourceDatas ~= nil then
			if ( not optional ) then
				hasNonOptionalLinks = true
			end

			local resourceLabel = renderLabel( params[1] );
			local firstChar = mw.ustring.sub( resourceLabel, 1, 1 );
			local separateDesign = firstChar == '[' or firstChar == '<';

			local html = '';
			if ( separateDesign ) then
				html = html .. resourceLabel .. ':&nbsp;';
			end

			local preitemId
			for index, resourceData in pairs(resourceDatas) do
				local itemId = resourceData.itemId;
				if index == 2 then
					--дае магчымасць пастав?ць id з адной уласц?васц? ? розныя спасылк?
					if itemId == preitemId then
						break
					end
				end

				local languages = resourceData.languages;
				local link = params[3] ( itemId );
				local linkFirstChar;
				local interwiki;
				if ( link ) then
					linkFirstChar = mw.ustring.sub( link, 1, 1 );
					interwiki = linkFirstChar == ':'
				end
				if ( separateDesign ) then
					if ( index ~= 1 ) then
						html = html .. ',&nbsp;'
					end
					if ( link ) then
						if ( interwiki ) then
							html = html .. '[[' .. link .. '|' .. itemId .. ']]';
						else
							html = html .. '[' .. link .. ' ' .. itemId .. ']';
						end
					else
						html = html .. itemId;
					end
				else
					if ( index ~= 1 ) then
						html = html .. ' · '
					end
					if ( link ) then
						if ( interwiki ) then
							html = html .. '[[' .. link .. '|' .. resourceLabel .. ']]';
						else
							html = html .. '[' .. link .. ' ' .. resourceLabel .. ']';
						end
					else
						-- it should not happen
						html = html .. resourceLabel .. ':&nbsp;' .. itemId;
					end

					if ( languages ~= nil and #languages > 0 ) then
						if moduleLanguages ~= false then -- not false, but maybe nil
							if ( mw.title.makeTitle( 'Module', 'Languages' ).exists
									and mw.title.makeTitle( 'Module', 'Languages/data' ).exists
									and mw.title.makeTitle( 'Module', 'Wikidata/Language-codes' ).exists) then
								moduleLanguages = require('Module:Languages');
							else
								moduleLanguages = false;
							end
						end
						
						if ( moduleLanguages ) then
							for langIndex, language in pairs(languages) do
								html = html .. '&nbsp;' .. moduleLanguages.getWikidataRefHtml( language )
							end
						end
					end
				end
				preitemId = resourceData.itemId;
			end
			if ( #params >= 4 and params[4] ) then
				html = html .. '[[Category:' .. params[4] .. ']]'
			end
			table.insert( elements, html )
		end
	end

	if ( not hasNonOptionalLinks ) then
		return {}
	end

	return elements
end

local function collectDictionaryLinks( elementId )
	--Create rows
	local elements = {}

	local item = mw.wikibase.getEntity( elementId );
	if ( item == nil or item.claims == nil) then
		return elements
	end

	local sourceToElementLinks = {};

	local claim = item.claims['P1343']
	if ( claim ) then
		for _, statement in pairs( claim ) do
			if (statement ~= nil) then
				local rank = statement.rank or 'normal';
				if ( rank ~= 'deprecated' ) then
					local resourceId = statement.mainsnak.datavalue.value.id;
					local languages = getQualifierValues( statement, 'P407' );

					-- Wikisource link ?
					local entityId = getQualifierSingleValue( statement, 'P805' ) or getQualifierSingleValue( statement, 'P248' );
					if ( entityId ) then
						if (sourceToElementLinks[resourceId] == nil) then
							sourceToElementLinks[resourceId] = {};
						end
						table.insert( sourceToElementLinks[resourceId], { entityId = entityId, languages = languages, rank = rank } );
					end

					-- URL to encyclopedia
					local url = getQualifierSingleValue( statement, 'P953' );
					if (url == nil) then
						-- no longer recommend, but widely used
						url = getQualifierSingleValue( statement, 'P854' ); 
					end
					if ( url ~= nil ) then
						if (sourceToElementLinks[resourceId] == nil) then
							sourceToElementLinks[resourceId] = {};
						end
						table.insert( sourceToElementLinks[resourceId], { url = url, languages = languages, rank = rank } );
					end
				end
			end
		end
	end

	for _, description in pairs( data.dictionaries ) do
		if ( description.linkF ) then
			local claim = item.claims[ description.id ];
			if ( claim ) then
				for _, statement in pairs( claim ) do
					local rank = statement.rank or 'normal';
					if ( rank ~= 'deprecated' and statement.mainsnak.datavalue) then
						local value = statement.mainsnak.datavalue.value;
						local url = description.linkF( value );
						local languages = getQualifierValues( statement, 'P407' );
						if ( sourceToElementLinks[description.id] == nil) then
							sourceToElementLinks[description.id] = {};
						end
						table.insert( sourceToElementLinks[description.id], { url = url, languages = languages, rank = rank} );
					end
				end
			end
		end
	end

	local html = '';
	for _, description in pairs( data.dictionaries ) do
		local links = sourceToElementLinks[ description.id ];
		if ( links ) then
			for _, link in pairs( links ) do
				if ( link.url ) then
					table.insert( elements, '[' .. link.url .. ' ' .. description.title .. ']' );
				end

				if ( link.entityId ) then
					local sitelink = mw.wikibase.getSitelink( link.entityId, description.project );
					if ( sitelink ) then
						table.insert( elements, '[[' ..  description.projectCode .. sitelink .. '|' .. description.title .. ']]' );
					end
				end
			end
		end
	end

	return elements
end

function p.render( frame )
	local colorArg = '';
	local elementId = nil;
	if ( frame ~= nil ) then
		local parentArgs = frame:getParent().args
		colorArg = parentArgs[templateColorName] or parentArgs['color'] or parentArgs[1] or '';
		if parentArgs['from'] and parentArgs['from'] ~= '' then
			elementId = string.upper( parentArgs['from'] );
		elseif parentArgs['d'] and parentArgs['d'] ~= '' then
			elementId = string.upper( parentArgs['d'] );
		end
		if ( colorArg ~= '' ) then
			local firstChar = mw.ustring.sub( colorArg, 1, 1 );
			if ( firstChar ~= '#' ) then
				local byTemplate = colorByTitle( frame, colorArg );
				if ( byTemplate ) then
					colorArg = byTemplate;
				end
			end
		end
	end

	local navboxData = {
		name  = 'External links',
		navboxclass = 'navbox bewikiArticleExternalLinksTable',
		bodyclass = 'hlist toCollapsibleCount',
	};
	if colorArg and colorArg ~= '' then
		navboxData.groupstyle = 'background: ' .. colorArg .. ';';
	end

	local rowIndex = 1;

	local socialNetworksElements = collectLinks( data.socialNetworkProperties, elementId );
	if ( #socialNetworksElements > 0 ) then
		navboxData['group' .. rowIndex] = group1Label;
		navboxData['list' .. rowIndex] = table.concat( socialNetworksElements , ' · ' );
		rowIndex = rowIndex + 1;
	end

	local textsElements = collectLinks( data.textsProperties, elementId );
	if ( #textsElements > 0 ) then
		navboxData['group' .. rowIndex] = group2Label;
		navboxData['list' .. rowIndex] = table.concat( textsElements , ' · ' );
		rowIndex = rowIndex + 1;
	end

	local contentHostingElements = collectLinks( data.contentHostingProperties, elementId );
	if ( #contentHostingElements > 0 ) then
		navboxData['group' .. rowIndex] = group3Label;
		navboxData['list' .. rowIndex] = table.concat( contentHostingElements , ' · ' );
		rowIndex = rowIndex + 1;
	end

	local themeProfilesElements = collectLinks( data.themeProfilesProperties, elementId );
	if ( #themeProfilesElements > 0 ) then
		navboxData['group' .. rowIndex] = group4Label;
		navboxData['list' .. rowIndex] = table.concat( themeProfilesElements , ' · ' );
		rowIndex = rowIndex + 1;
	end

	local dictionaryElements = collectDictionaryLinks( elementId );
	if ( #dictionaryElements > 0 ) then
		navboxData['group' .. rowIndex] = group5Label;
		navboxData['list' .. rowIndex] = table.concat( dictionaryElements , ' · ' );
		rowIndex = rowIndex + 1;
	end

	local geniElements = collectLinks( data.geniGraves, elementId );
	if ( #geniElements > 0 ) then
		navboxData['group' .. rowIndex] = group6Label;
		navboxData['list' .. rowIndex] = table.concat( geniElements , ' · ' );
		rowIndex = rowIndex + 1;
	end

	local taxElements = collectLinks( data.taxons, elementId );
	if ( #taxElements > 0 ) then
		navboxData['group' .. rowIndex] = group7Label;
		navboxData['list' .. rowIndex] = table.concat( taxElements , ' · ' );
		rowIndex = rowIndex + 1;
	end

	local authorityControlElements = collectLinks( data.authorityControl, elementId );
	local authorityControlExtElements = collectLinks( data.authorityControlExt, elementId );
	if ( #authorityControlElements > 0 ) then
		navboxData['group' .. rowIndex] = group8Label;
		if ( #authorityControlExtElements > 0 ) then
			navboxData['list' .. rowIndex] = table.concat( authorityControlElements , ' · ' ) .. ' · ' .. table.concat( authorityControlExtElements , ' · ' );
		else
			navboxData['list' .. rowIndex] = table.concat( authorityControlElements , ' · ' );
		end
		if ( #authorityControlElements > 5 ) then
			navboxData['group' .. rowIndex] = nil;
			package.loaded['Module:Navbox'] = nil;
			local templateStyles = frame:extensionTag{ name = 'templatestyles', args = { src = 'Шаблон:Нав?гацыйная табл?ца/styles.css' } };
			local collapsibleNavbox = require('Module:Navbox')._navbox( { title = group8Label, list1 = navboxData['list' .. rowIndex],
				border = 'subgroup', navbar = 'plain', state = 'collapsed', titleclass = 'ts-navbox-plaintitle', bodyclass = 'authoritycontrol',
				titlestyle = navboxData.groupstyle, bodystyle = 'text-align: left;' } );
			navboxData['list' .. rowIndex] = templateStyles .. collapsibleNavbox;
		end
		rowIndex = rowIndex + 1;
	end

	if ( rowIndex == 1 ) then
		if ( mw.title.getCurrentTitle().namespace == 0 ) then
			return '[[Category:' .. categoryTemplateEmpty .. ']]';
		end
	else
		
		if navboxData['group1'] then
			navboxData['group1'] = '<div style="padding: 0px 18px 0px 0px; width: 100%;"><div style="float: left;">' ..
				frame:expandTemplate{ title = 'tnavbar-view', args = { templateLink } } .. '</div>&nbsp;&nbsp;' ..
				navboxData['group1'] .. '</div>';
		else
			navboxData['group1'] = '<div style="padding: 0px 0px 0px 0px; width: 100%;">' ..
				frame:expandTemplate{ title = 'tnavbar-view', args = { templateLink } } .. '</div>';
		end
	end

	local navbox = moduleNavbox._navbox( navboxData )
	if colorArg and colorArg ~= '' then
		navbox = navbox .. '[[Category:' .. categoryColored .. ']]'
	end
	return navbox
end

local function renderDocumentationCategory( links )
	local result = '';

	for _, params in pairs( links ) do
		local resourceLabel = renderLabel( params[ 1 ] or params.title );
		local resourceId = params[ 2 ] or params.id;
		local category = params[ 4 ];
		local optional;
		if ( params[ 5 ] or false ) then
			optional = 'TRUE';
		else
			optional = 'FALSE';
		end
	
		result = result .. '| ' .. resourceLabel .. '\n';
		if string.match( resourceId, '^P' ) then
			result = result .. '| [[:d:Property:' .. resourceId .. '|' .. resourceId .. ']]\n';
		elseif string.match( resourceId, '^Q' ) then
			result = result .. '| [[:d:' .. resourceId .. '' .. '|' .. resourceId .. ']]\n';
		else
			result = result .. '| &nbsp; \n';
		end

		if ( category ~= nil and category ~= false ) then
			result = result .. '| [[:Category:' .. category .. '|' .. category .. ']]\n';
		else
			result = result .. '| &nbsp; \n';
		end
		result = result .. '| ' .. optional .. '\n';
		result = result .. '|-\n';
	end

	return result;
end

function p.renderDocumentation()
	local result = ''
	result = result .. '|-\n';
	result = result .. '! colspan=4 | ' .. group1Label .. '\n';
	result = result .. '|-\n';
	result = result .. renderDocumentationCategory( data.socialNetworkProperties );
	result = result .. '|-\n';
	result = result .. '! colspan=4 | ' .. group2Label .. '\n';
	result = result .. '|-\n';
	result = result .. renderDocumentationCategory( data.textsProperties );
	result = result .. '|-\n';
	result = result .. '! colspan=4 | ' .. group3Label .. '\n';
	result = result .. '|-\n';
	result = result .. renderDocumentationCategory( data.contentHostingProperties );
	result = result .. '|-\n';
	result = result .. '! colspan=4 | ' .. group4Label .. '\n';
	result = result .. '|-\n';
	result = result .. renderDocumentationCategory( data.themeProfilesProperties );
	result = result .. '|-\n';
	result = result .. '! colspan=4 | ' .. group5Label .. '\n';
	result = result .. '|-\n';
	result = result .. renderDocumentationCategory( data.dictionaries );
	result = result .. '|-\n';
	result = result .. '! colspan=4 | ' .. group6Label .. '\n';
	result = result .. '|-\n';
	result = result .. renderDocumentationCategory( data.geniGraves );
	result = result .. '|-\n';
	result = result .. '! colspan=4 | ' .. group7Label .. '\n';
	result = result .. '|-\n';
	result = result .. renderDocumentationCategory( data.taxons );
	result = result .. '|-\n';
	result = result .. '! colspan=4 | ' .. group8Label .. '\n';
	result = result .. '|-\n';
	result = result .. renderDocumentationCategory( data.authorityControl );
	return result;
end

return p
五六天不拉大便是什么原因 梦见四条蛇是什么意思 大枕大池是什么意思 化痰吃什么食物 香蕉有什么功效和作用
端午是什么时候 什么是非 阴唇内侧长疙瘩是什么原因 看望病人买什么水果 mic是什么单位
肚子不饿是什么原因 手抖吃什么药马上控制 私募是什么 16周检查什么项目 怀孕一个星期有什么症状
肝火旺有什么症状 梦见背小孩是什么意思 腹泻吃什么药见效最快 鼻窦炎是什么病 pdrn是什么
糖耐量是什么hcv8jop4ns0r.cn 舌头肥厚是什么原因hcv7jop5ns3r.cn 男头发稀少适合什么发型hcv9jop2ns4r.cn 违和感是什么意思hcv9jop6ns7r.cn 血糖高早餐吃什么最好hlguo.com
左手有痣代表什么hcv8jop2ns7r.cn 狗狗体内驱虫用什么药最好hcv9jop4ns7r.cn 小孩为什么会细菌感染hcv9jop0ns5r.cn 吃什么养肝hcv8jop3ns5r.cn 寻麻疹看什么科hcv8jop7ns6r.cn
口吐白沫是什么原因bysq.com 盐水洗脸有什么好处与坏处hcv9jop4ns5r.cn 反清复明的组织叫什么hcv9jop3ns7r.cn 什么节日吃饺子zhiyanzhang.com 吃什么不便秘可以通便gysmod.com
破关是什么意思hcv7jop9ns0r.cn bcc是什么意思hcv8jop6ns1r.cn 重字五行属什么hcv9jop8ns1r.cn 梦见大黑蛇是什么预兆sscsqa.com 怀孕初期吃什么菜ff14chat.com
百度