وحدة:External links/conf/Settlement

الاستخدام

مش ممكن تستخد الوحده دى مباشر راجع ازاى تستخدمها وحدة:External links.

ويكي بيانات

خطأ: الوظيفة "usestable" غير موجودة.

{{#ifeq:Settlement|ملعب| |


local configured_claims = {}

local function commons_formatter(id)
	return "https://commons.wikimedia.org/wiki/Category:" .. id:gsub(" ", "_")
end

configured_claims['arz'] = {
	{ prop='P373', message="[$2 $1] – صور وتسجيلات صوتيه و مرئيه على [[ويكيميديا كومونز]]$3", short="[$2 Wikimedia Commons]", langcode='en', url_f=commons_formatter },
    { prop='P3417', message='[$2 $1] على موقع كيورا - Quora$3', short='[$2 Quora.com]', langcode='en' },

	{ prop='P214', message='[$2 $1] معرف قاعده بيانات الملف للسلطه الافتراضيه الدوليه$3', short='[$2 VIAF ID ]', langcode='en' },
	{ prop='P646', message='[$2 $1] معرف مخطط فريبيس للمعارف الحره$3', short='[$2 Freebase ID]', langcode='en' },
	{ prop='P1566', message='[$2 $1] معرف قاعده البيانات الجغرافيه لموقع جيونيمز$3', short='[$2 GeoNames ID]', langcode='en' },
	{ prop='P1281', message='[$2 $1] معرف فين على الأرض$3', short='[$2 WOEID]', langcode='en' },
	{ prop='P244', message='[$2 $1] معرف مكتبه الكونجرس$3', short='[$2 LCAuth]', langcode='en' },
	{ prop='P6766', message='[$2 $1] معرف مين الاول$3', short='[$2 WOFID]', langcode='en' },
	{ prop='P782', message='[$2 $1] الوحدة الإداريه المحليه$3', short='[$2 LAU]', langcode='en' },
	{ prop='P402', message='[$2 $1] معرف خريطه الشارع المفتوحه$3', short='[$2 OSM relation ID]', langcode='en' },
	{ prop='P1116', message='[$2 $1] الرمز الجغرافى فى ايلستات$3', short='[$2 ELSTAT geographical code]', langcode='en' },
	{ prop='P227', message='[$2 $1] معرف ملف استنادى متكامل$3', short='[$2 GND ID]', langcode='en' },
	{ prop='P2671', message='[$2 $1] معرف جوجل لرسوم المعرفه$3', short='[$2 GKG]', langcode='en' }, -- HitomiAkane -4-2-2021
	{ prop='P3256', message='[$2 $1] معرف المسح العقاري للكهوف$3', short='', langcode='en' }, -- HitomiAkane -4-2-2021
	{ prop='P2792', message='[$2 $1] رقم الاتحاد الكهفى الاوسترالى$3', short='', langcode='en' }, -- HitomiAkane -4-2-2021

}
local messages_conf = {}
messages_conf['arz'] = {
	['short-list-separator'] = ', ',
	['with-data-cat']       = '[[تصنيف:مقالات تستعمل روابط ببيانات من ويكى داتا]]',
--[[Articles using sports links with data from Wikidata]]

	['no-data-text']        = "المقال ده مالوش وصلات على ويكى بيانات حاليا",
--"''This article has no properties for sports databases in Wikidata''",
	['no-data-cat']        = '[[تصنيف:مقالات تستعمل روابط بلا بيانات من ويكى داتا]]',
--'[[Category:Articles using sports links with no data in Wikidata]]',
	['no-wikilink']        = "''هذا المقال غير مرتبط بويكى داتا''",
--"''This article has no link in Wikidata''",
	['no-wikilink-cat']      = "[[تصنيف:مقالات تستعمل روابط بلا صله مع ويكى داتا]]",
--"[[Category:Articles using sports links with no link in Wikidata]]",

	['with-local-cat']       = "[[تصنيف:مقالات تستعمل روابط بناءا على بيانات محليه ]]",
--'[[Category:Articles using sports links with local values]]',

	['track-cat-wd-wd']      = '[[تصنيف:صفحات تستخدم خاصيه $1]]',
--'[[Category:Articles using sports links with $1 from Wikidata]]',

	['track-cat-local-local']   = '[[تصنيف:مقالات تستعمل روابط رياضيه ب $1 من بيانات محليه ]]',
--'[[Category:Articles using sports links with $1 from local value]]',

	['track-cat-wd-local']     = '[[تصنيف:مقالات تستعمل روابط ب $1 من ويكى داتا مع وجود بيانات محليه ]]',
--'[[Category:Articles using sports links with $1 from Wikidata but has local value]]',

	['track-cat-local-wd']     = '[[تصنيف:مقالات تستعمل روابط ب $1 من بيانات محليه مع وجود ويكى داتا]]',
--'[[Category:Articles using sports links with $1 from local value but has Wikidata]]',

	['track-cat-local-wd-equal']  = '[[تصنيف:مقالات تستعمل روابط ب $1 من بيانات محليه مطابقه لويكى داتا]]',
--"[[Category:Articles using sports links with $1 from local value same as Wikidata]]",

	['track-cat-local-wd-unequal'] = '[[تصنيف:مقالات تستعمل روابط ب $1 من بيانات محليه مختلفه عن ويكى داتا]]',
--"[[Category:Articles using sports links with $1 from local value different from Wikidata]]",
}
local limits = {
	['links-shown'] = 16,		-- maximum number of links shown in the article.
}

local p = {}

function p.getConfiguredClaims (self, lang)
	return configured_claims[lang]
end

function p.getLimits (self)
	return limits
end

function p.getMessage (self, lang, msg)
	return messages_conf[lang][msg] 
end

-- metatable for the export
local mt = {
	-- adjust the installation of the module
	['__call'] = function (self, lang)
		self.configured_claims = configured_claims[lang]
		self.messages_conf = messages_conf[lang]
		return self
	end
}

-- install the metatable
setmetatable(p, mt)

return p