وحدة:بطاقة/قالب/حدث

من ويكيبيديا، الموسوعة الحرة

local generic = require( 'وحدة:بطاقة/أدوات' )
local xmath = require("Module:Math")

local function convert_deg2HMS(D)
	local H= math.floor(D / 15)
	local M = math.floor( ((D/15 - H) % 14 )*60) 
	local S= xmath.round({precision = 3, value = (((D/15-H)*60) - M)*60 })

	return string.format("%02d:%02d:%05.3d",H,M,S)
end
--[[
    FROM: module:Coordinates 
   -- 
   Helper function, convert decimal to degrees, minutes, and seconds 
]]
local function convert_dec2dms_dms(coordinate)
	coordinate = xmath._round( coordinate * 60 * 60, 0 );
	local s = coordinate % 60
	coordinate = math.floor( (coordinate - s) / 60 );
	local m = coordinate % 60
	coordinate = math.floor( (coordinate - m) / 60 );
	local d = coordinate % 360 .."°"

	return d .. string.format( "%02d′", m ) .. string.format( "%02d″", s )
end

local d1 = "Q18650988,Q63106470,Q63106482,Q63170811,Q3157041,Q63106520,"
		.."Q63170831,Q63171248,Q63100559,Q63108234,Q16172167, Q63183653,"
		.."Q63100584,Q63100595,Q63183392,Q63182478,Q63183687,Q63100601,"
		.." Q63100611,Q15941028,Q63183538,Q63182937,Q63183721,Q11069306,"
		.."Q63106574,Q11069306,Q63183636,Q140588"

return 	{
    maincolor = '#CEDEFF', -- اللون المستعمل لعنوان البطاقة
    wikimod = 'Wikidata.Ca',
    parts = { -- محتويات البطاقة
		generic.title(),
        generic.logo(),

        generic.mainimage({wikidata={property = 'P18 OR P2716 OR P6802 OR P3451'}}),
		generic.coat_of_arms(),
        generic.geoloc(),
        generic.locationmap(),

		{type = 'subtitle', value = {'اختصار','acronym','short name'},
			wikidata= {property = 'P1813',formatting = '$text {{Language icon|NoCat=y|$language}}'}
		},
		
		{type = 'subtitle', value = {"v_hurricane_level"},
			wikidata= {
				property = 'P31' , qualifier = 'P31' , qualifier2 = 'P459' , qualifier3 = 'P518',
                list = 'bestrank', formatting = 'table' , conjunction="<br />",
                whitelist0= d1 , 
                rowformat = "$1",
                rowsubformat1="$1$3 ($2)",
                colformat0 = "raw" , colformat1 = "ucfirst" , 
				case2 = "infoboxdata", rowsubformat3=", ''{{small|$3}}''"}
		},

	{type = 'table' , title ='معلومات عامة', rows = {
		{type = 'row' , label = 'الاسم الأصلي',
			value = {'الاسم الأصلي'},
			wikidata= {
				property = 'P1559 OR P1705',
				formatting = '$text {{Language icon|NoCat=y|$language}}'}
        },
		{type = 'row' , label = 'المعرّف القانوني',
			value = {'معرف قانوني',"law identifier"},
			wikidata = {property='P8550'},
		},
		{type = 'row' , label = 'اللقب',
			value = {'لقب',"nickname","v_p1449"},
			wikidata = {property='P1449'},
		},
		generic.motto(),
		{type = 'row' , label = 'النشيد',
			value = {'النشيد',"anthem"},
			wikidata = {property = 'P85', list = false, showDate="true" },
		},
			
		{type = 'row' , label = 'النوع',
			value = {'نوع',"type"},
			wikidata = {property='P31', list='bestrank' , formatting='table' ,
				blacklist0= "Q15221623", -- skip when hurricane, et al. 
				qualifier='P642' , rowsubformat1= ' $1' , rowformat = '$0$R0 $1'}
		},
		{type = 'row' , label = 'مبرر الجائزة',
			value = {'مبرر الجائزة',"description"},
			wikidata = {property='P6208',list='lang'},
		},

		{type = 'row' , label = 'سمي باسم',
			value = {'سمي باسم',"named after"},
			wikidata = {property='P138'},
		},
		{type = 'row' , label = 'احتفالاً بـ',
			value = {'احتفالا بـ',"commemorates"},
			wikidata = {property='P547'},
		},
		{type = 'row' , label = 'الموقع الجغرافي',
			value = {'موقع جغرافي',"geographical region"},
			wikidata = {property='P706'},
		},
		{type = 'row' , label = 'جزء من',
			value = {'جزء من',"part of"},
			wikidata = {property='P361'},
		},

		{type = 'row' , label = 'الصلاحية القانونية',
			value = {"v_validity","vigencia"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'فترة المراقبة',
			value = {"v_p837_per"},
			wikidata = {property = 'P837' , formatting = 'table' , list = false,
                       qualifier = 'P3027' , qualifier2 = 'P3028' ,
                       rowsubformat2="&nbsp;- $2" , rowformat = "$1$2"},
		},
		{type = 'row' , 
			label='يوم',
			value = {'يوم',"day"},
			wikidata = {
				property = 'P837' , qualifier = 'P518' , 
				formatting = 'table' , list = 'bestrank', 
				rowsubformat1="&nbsp;($1)" , rowformat = "$0$R0$1"},
		},
		{type = 'row' , label = 'يوم الأسبوع ',
			value = {'يوم الأسبوع '},
			wikidata = {property = 'P2894' , list = 'bestrank'},
		},
		{type = 'row' , label = 'فترة زمنية',
			value = {"v_p580_raw"},
			-- wikidata = {property=''},
		},              
   
		{type = 'row' , label = 'التاريخ',
			value = {"v_p585","data"},
			wikidata = {property='P585'},
		},

		{type = 'row' , label = 'الوقت',
			value = {"v_point_time","hora"},
			-- wikidata = {property=''},
		},

		{type = 'row' , label = 'المُؤَلِّف',
			value = {"autor"},
			wikidata = {property='P50'},
		},
		{type = 'row' , label = 'تعميم',
			value = {"data_promulgada","v_p7589"},
			wikidata = {property='P7589 OR P467'},
		},
		{type = 'row' , label = 'صادق عليه',
			value = {"صادق عليه","voted on by"},
			wikidata = { 
				property = 'P9681', 
				qualifier = 'P585'  , rowsubformat1="&nbsp;<small>($1)</small>", 
				qualifier2 = 'P8683' , 
				rowsubformat2="&nbsp;$2[[File:Dark_green_check.svg|13px|عدد الأصوات بـ نعم]]"   , 
				qualifier3 = 'P8682' , 
				rowsubformat3=", $3 [[File:Cancelled cross.svg|13px|عدد الأصوات بـ لا]]"  , 
				qualifier4 = 'P5043' , 
				rowsubformat4=", $4[[File:Neutral gray circle icon.png|16px|عدد الممتنعين]]" , 
				qualifier5 = 'P393', 
				rowsubformat5="&nbsp;<small>(الجلسة:$5)</small>" , 
				formatting = 'table' , rowformat = "$0$R0$5$1<br/>$2$3$4"
			},
           wikidata2 = { 
           	property = 'P9681'  , 
           	qualifier = 'P585'  , rowsubformat1="&nbsp;<small>($1)</small> ", 
           	qualifier2 = 'P5102' , rowsubformat2=",&nbsp;<small>($2)</small>" , 
           	qualifier3 = 'P393' , rowsubformat3="&nbsp;<small>(الجلسة:$3)</small>" , 
           	formatting = 'table' , rowformat = "$0$R0$3$1$2"
		   },
		},
		{type = 'row' , label = 'تاريخ التوقيع',
			value = {"v_date_signature","data_signatura"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'تصديق',
			value = {'تصديق',"ratification"},
			wikidata = {
				property = 'P6193' , qualifier = 'P585', 
				formatting = 'table' , 
				rowformat = "$0$R0 $1 ", rowsubformat1="($1)"},
		},

		{type = 'row' , label = 'تاريخ النشر',
			value = {'تاريخ النشر',"publicacio"},
			wikidata = {property='P577'},
		},

		{type = 'row' , label = 'دخول حيز التنفيذ',
			value = {"efectivitat"},
			wikidata = {property='P7588'},
		},

		{type = 'row' , label = 'يبطل',
			value = {"revoca"},
			wikidata = {property='P3148'},
		},

		{type = 'row' , label = 'ألغيت بموجب',
			value = {"revocat_per"},
			wikidata = {property='P2568'},
		},

-- Fi BLOC especial per dates____________________________________________________ -->
		{type = 'row' , label = 'المدة',
			value = {'مدة',"duration"},
			wikidata = {property='P2047',formatting='unit'},
		},

		{type = 'row' , label = 'تكرار الحدث',
			value = {'تكرار',"frequency"},
			wikidata = {
				property='P2257' ,formatting= 'table' ,tablesort=1,
				qualifier='P580' ,qualifier2='P582' ,
				colformat0='unit' ,colformat1='Y' ,colformat2='Y' ,
				rowsubformat1='($1–$2)'  ,rowformat = "$0$R0 $1"},
		},
		{type = 'row' , label = 'الفترة الزمنية',
			value = {'فترة',"period"},
			wikidata = {property='P2348'},
		},
		{type = 'row' , label = 'اشتق من',
			value = {"basat_en"},
			wikidata = {
				property='P144',qualifier='P50', 
				formatting='table' , 
				rowformat = "$0$R0 $1",rowsubformat1='($1)'},
		},
		{type = 'row' , label = 'الطبعة',
			value = {'طبعة',"edition"},
			wikidata = {property='P393'},
			wikidata2 = {property = 'P179' , qualifier = 'P1545' , list = false}
		},
		{type = 'row' , label = 'المؤسس',
			value = {'المؤسس',"founder"},
			wikidata = {property='P112'},
		},
		{type = 'row' , label = 'سوابق',
			value = {'سابقة',"antecedents"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'الموضوع الرئيسي',
			value = {'موضوع رئيسي',"theme"},
			wikidata = {
				property = 'P921' , qualifier = 'P642', 
				formatting = 'table' , list = 'bestrank', 
				rowformat = "$0$R0 $1 ", rowsubformat1="$1"},
		},
		{type = 'row' , label = 'تراتب اجتماعي',
			value = {"block_rank","rang"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'الثقافة',
			value = {'ثقافة',"culture"},
			wikidata = {property='P2596'},
		},
		{type = 'row' , label = 'المكان',
			value = {'مكان',"location"},
			wikidata = {property='P6375'},
			wikidata2 = { 
				sep=", ",
				wikidata = {
					property = 'P276' , formatting = 'table' 
					, list = 'bestrank'  , case0 = "location"
					, qualifier = 'P585'  , rowsubformat1= "$1:&nbsp;"
					, qualifier2 = 'P580' , rowsubformat2= "$2&nbsp;-&nbsp;" 
					, qualifier3 = 'P582' , rowsubformat3= "$3:&nbsp;"
					, rowformat = "$1$2$3$0$R0"},
				wikidata2 = {
					property = 'P31', qualifier ="/P706" , 
					list = 'bestrank', formatting = 'table', 
					blacklist0= d1, rowformat = "$1"},
				wikidata3 = {
					property = 'P131' , 
					formatting = 'table' , list = 'bestrank' , 
					case0 = "location" , rowformat = "$0$R0"},
			}
		},
		generic.country({property='P17 OR P495'}),             
		{type = 'row' , label = 'الحدود',
			value = {'حدود',"frontier"},
			wikidata = {
				property='P4777' ,qualifier='P4777/P2043',
				list = false ,formatting='table',
				rowformat = "'$0$R0 $1' ",rowsubformat1='<small>($1)</small>' ,
				colformat1='unitcode'},
		},
		{type = 'row' , label = 'القارة',
			value = {'قارة',"continent"},
			wikidata = {property='P30'},
		},
		{type = 'row' , label = 'المساحة',
			value = {'مساحة',"area"},
			wikidata = {property='P2046 ',formatting='unitcode'},
		},
		{type = 'row' , label = 'الاختصاص',
			value = {"اختصاص","jurisdiction"},
			wikidata = {property='P1001'},
		}, 
		{type = 'row' , label = 'القيادة',
			value = {'قيادة',"commandment"},
			wikidata = {property='P4791'},
		},
		{type = 'row' , label = 'المنظم',
			value = {'منظم',"organizer"},
			wikidata = {property='P664'},
		},          

		{type = 'row' , label = 'المقدم',
			value = {'مقدم',"presenter"},
			wikidata = {
				property = 'P371' , qualifier = 'P276' , 
				formatting = 'table',
				rowformat = "$0$R0$1 ", rowsubformat1="&nbsp;($1)"},
		},
		{type = 'row' , label = 'المخرج',
			value = {'مخرج',"director"},
			wikidata = {property='P57'},
		},
		{type = 'row' , label = 'المنتج',
			value = {"productor"},
			wikidata = {property='P162'},   
		},
		{type = 'row' , label = 'المكتشف / المخترع',
			value = {'مكتشف','مخترع',"inventor","discoverer"},
			wikidata = {property='P61'},
		},
		{type = 'row' , label = 'المتحدثون',
			value = {'متحدثون',"locators"},
			wikidata = {property='P823'},
		},
		{type = 'row' , label = 'عدد الموظفين',
			value = {"موظفون","employees"},
			wikidata = {
				property = 'P1128' , qualifier = 'P585' , 
				formatting = 'table' , rowformat = "$0$R0 $1", 
				colformat0 = "unit" , rowsubformat1= '<small>($1)</small>'
			},
		},
		{type = 'row' , label = 'عدد المتطوعين',
			value = {"متطوعون","volunteers"},
			wikidata = {
				property = 'P6125' , qualifier = 'P585' , 
				formatting = 'table' , rowformat = "$0$R0 $1", 
				colformat0 = "unit" , rowsubformat1= '<small>($1)</small>'
			},
		},

		{type = 'row' , label = 'شخصيات هامة',
			value = {'شخصيات هامة',"significant person"},
			wikidata = {
				property = 'P3342' , formatting = 'table' , 
				list = 'bestrank', tablesort = 5, 
				qualifier = 'P3831' , colformat1 = "ucfirst", 
				qualifier2 = 'P1534', rowsubformat2= ", &rarr; $2", 
				qualifier3 = 'P1365' , rowsubformat3= "«» $3", 
				qualifier4 = 'P4100/P1813 OR P102/P1813' , rowsubformat4="&nbsp;– $4" ,
				qualifier5 = 'P1545', 
				showDate='true', 
				rowformat = "<p>''' $1 '''<br />$0$R0$4 $3$2</p>"
			},
		},
		{type = 'row' , label = 'يمثله',
			value = {"يمثله","represented by"},
			wikidata = {property='P1875'},
		},
		{type = 'row' , label = 'المشاركون',
			value = {'مشاركون',"participants"},
			wikidata = {
				property = 'P710', 
				formatting = 'table' , rowformat = "* $0$R0$2$3$4 $1 ", 
				qualifier = 'P585'  , rowsubformat1= '<small><br />($1)</small>', 
				qualifier2 = 'P1268', rowsubformat2="<br>&nbsp;يمثل: $2" , 
				qualifier3 = 'P1875', rowsubformat3="<br>&nbsp;تمثله: $3", 
				qualifier4 = 'P3831', rowsubformat4="&nbsp;($4)"
			},
			wikidata2 = {
				property = 'P1132' , colformat0 = "unit" ,
				formatting = 'table', rowformat = "* $2 $0$R0 $1", 
				qualifier = 'P585',  rowsubformat1= '<small><br />($1)</small>',
				qualifier2 = 'P518', rowsubformat2="$2:" },
		}, 

		{type = 'row' , label = 'المُراجِع',
			value = {"مراجع","reviewer"},
			wikidata = {property='P4032'},
		},
		{type = 'row' , label = 'الموقعون',
			value = {"موقعون","signatories"},
			wikidata = {
				property = 'P1891' , 
				formatting = 'table' , list = 'bestrank', 
				qualifier = 'P585'  , rowsubformat1= '<small>($1)</small>', 
				qualifier2 = 'P1268', rowsubformat2="<br>&nbsp;يمثل: $2" , 
				qualifier3 = 'P1875', rowsubformat3="<br>&nbsp;تمثله: $3" , 
				rowformat = "$0$R0$2$3 $1 "},
		},        
		{type = 'row' , label = 'المودع',
			value = {"مودع","depositary"},
			wikidata = {property='P2058'},
		},
		{type = 'row' , label = 'ناقل',
			value = {"impulsors"},
			wikidata = {
				property = 'P859' , list = 'bestrank', 
				formatting = 'table' , rowformat = "$0$R0$2$3 $1 ", 
				qualifier = 'P585'  , rowsubformat1= '<small>($1)</small>', 
				qualifier2 = 'P1268', rowsubformat2="<br>&nbsp;يمثل: $2" , 
				qualifier3 = 'P1875', rowsubformat3="<br>&nbsp;تمثله: $3" },
		},
		{type = 'row' , label = 'المؤدي',
			value = {"interpret"},
			wikidata = {property='P175'},
		},

		{type = 'row' , label = 'وسيلة النقل',	
			value = {"وسيلة النقل","vehicle"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'المركبة',
			value = {"مركبة"},
			-- wikidata = {property='P1876'},
		},
		{type = 'row' , label = 'الخط الرابط',
			value = {"linia"},
			wikidata = {property='P81'},
		},
		{type = 'row' , label = 'نقطة البداية',
			value = {"origen"},
			wikidata = {
				property = 'P1427', formatting = 'table', list = 'bestrank' , 
				rowformat = "$0$R0$2$1" , case0 = "location", 
				qualifier = 'P426' , rowsubformat1="&nbsp;<small>($1)</small>", 
				qualifier2 = 'P2825' , rowsubformat2=", موقع التوقف $2"
			},
		},
		{type = 'row' , label = 'الوجهة',
			value = {'وجهة',"destination"},
			wikidata = {
				property = 'P1444'  , case0 = "location",
				formatting = 'table', list = 'bestrank' , 
				rowformat = "$0$R0$2$1", 
				qualifier = 'P426' , rowsubformat1="&nbsp;<small>($1)</small>", 
				qualifier2 = 'P2825' , rowsubformat2=", موقع التوقف $2"
			},
		},
		{type = 'row' , label = 'آخر توقف',
			value = {'آخر توقف',"waystation"},
			wikidata = {
				property = 'P2825'  , 
				qualifier = 'P3831' , whitelist1='Q67203981', 
				formatting = 'table', list = 'bestrank', 
				rowformat = "$0$R0-$1   "},
		},
		{type = 'row' , label = 'المشغل',
			value = {'مشغل',"operador"},
			wikidata = {property='P137'},
		},
		{type = 'row' , label = 'تسجيل الطائرة',
			value = {'تسجيل الطائرة',"registration"},
			wikidata = {property='P426'},
		},
		{type = 'row' , label = 'رقم الرحلة الجوية',
			value = {'رقم الرحلة',"vol"},
			wikidata = {property='P3090'},
		},
		{type = 'row' , label = 'الركاب',
			value = {'ركاب',"v_passenger","passatgers"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'الطاقم',
			value = {"v_crew","طاقم"},
			-- wikidata = {property=''},
		},

		{type = 'row' , label = 'تاريخ الاكتشاف',
			value = {"تاريخ الاكتشاف","discovery date"},
			wikidata = {property='P575'},
		},
		{type = 'row' , label = 'موقع الاكتشاف الفلكي',
			value = {"lloc_descobriment"},
			wikidata = {property='P65'},
		},
		{type = 'row' , label = 'الصنف الطيفي',
			value = {"tipus_espectral"},
			wikidata = {property='P215'},
		},
		{type = 'row' , label = 'الكوكبة',
			value = {"constellacio"},
			wikidata = {property='P59'},         
		},
		{type = 'row' , label = 'الحقبة',
			value = {"epoch"},
			wikidata = {property='P6259' ,formatting='$1'},
		},
		{type = 'row' , label = 'يتبع كوكب',
			value = {'يتبع كوكب',"pare"},
			wikidata = {property='P397'},
		},
		{type = 'row' , label = 'المسافة من الأرض',
			value = {'المسافة من الأرض',"distance",},
			wikidata = {
				property = 'P2583' , qualifier = 'P1013' , qualifier2 = 'P518' 
                      , list = 'bestrank' , formatting = 'table' , rowformat = "$0$R0 $2$1 "
                      , colformat0 = "unitcode" , rowsubformat2='($2)' , rowsubformat1= '↔$1'},
		},
		{type = 'row' , label = 'الانزياح الأحمر',
			value = {'الانزياح الأحمر',"desplaça_roig"},
			wikidata = {
				property = 'P1090' , list = 'bestrank' , formatting =  "unitcode" },
		},
		{type = 'row' , label = 'القدر الظاهري',
			value = {'القدر الظاهري',"mag_v"},
			wikidata = {
				property = 'P1215', 
				qualifier = 'P1227', rowsubformat1 = '<small>($1)</small>',
				formatting = 'table', list = 'bestrank' ,  
				rowformat = "$0$R0 $1 "
			},
		},
		{type = 'row' , label = 'المطلع المستقيم',
			value = {'المطلع المستقيم',"right ascension"},
			wikidata = {property = 'P6257' , formatting = 'table' , list = false, case=convert_deg2HMS },
		},
		{type = 'row' , label = 'الميل',
			value = {'الميل',"dec"},
			wikidata = {property = 'P6258' , list = false, case = convert_dec2dms_dms},
		},
		{type = 'row' , label = 'مؤشر اللون',
			value = {'مؤشر اللون',"b"},
			wikidata = {
				property = 'P1458' , qualifier = 'P1227' , formatting = 'table' , 
				list = 'bestrank' , conjunction='</br>'  , 
				rowformat = "$1 $0$R0 ", rowsubformat1='$1='},
		},
		{type = 'row' , label = 'السرعة',
			value = {'سرعة',"velocitat"},
			wikidata = {property = 'P2052'  , formatting = 'unitcode' },
		},
		{type = 'row' , label = 'رمز الفهرس',
			value = {'رمز الفهرس',"catalog code"},
			wikidata = {property='P528'},
		},
		{type = 'row' , label = 'لغة العمل',
			value = {'لغة',"language"},
			wikidata = {property='P407'},
		},
		{type = 'row' , label = 'الدِّين',
			value = {'دين',"religion"},
			wikidata = {property='P140'},
		},
		{type = 'row' , label = 'منطقة',
			value = {'منطقة',"operating area"},
			wikidata = {property='P2541'},
		},
		{type = 'row' , label = 'الطقوس',
			value = {'طقوس',"ritual"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'النوع الفني',
			value = {'النوع الفني',"genre"},
			wikidata = {property='P136'},
		},
		{type = 'row' , label = 'قيمة الجائزة',
			value = {'قيمة الجائزة',"prize value"},
			wikidata = {property='P2121' ,formatting='unitcode'},
		},
		{type = 'row' , label = 'جالب الحظ',
			value = {'جالب الحظ',"mascota"},
			wikidata = {property='P822'},
		},
		{type = 'row' , label = 'الرياضة',
			value = {'رياضة',"sport"},
			wikidata = {property='P641'},
		},
		{type = 'row' , label = 'تمنحها',
			value = {'تمنحها',"awarded by"},
			wikidata = {property='P1027'},
		},
		{type = 'row' , label = 'الثمن',
			value = {'ثمن',"price","v_p2284"},
			wikidata = {property = 'P2284'  , formatting = 'unitcode'},
		},
		{type = 'row' , label = 'الهدف',
			value = {'هدف',"target"},
			wikidata = {property='P533 OR P3712'}, --P533=militar/terrorist target; P3712=project/event goal 
		},
		{type = 'row' , label = 'السبب',
			value = {'سبب',"cause"},
			wikidata = {
				property = 'P1478 OR P828' , qualifier = 'P585' , qualifier2 = 'P642'   
                , formatting = 'table' , list = 'bestrank'   
                , rowformat = "* $0$R0 $2 $1 "   
                , rowsubformat1= '<small><br />($1)</small>' , rowsubformat2="$2"},
		},
		{type = 'row' , label = 'الصراعات',
			value = {'صراعات',"conflicts"},
			wikidata = {
				property = 'P607' , qualifier = 'P585' , qualifier2 = 'P1012'   
                , formatting = 'table' , list = 'bestrank'   
                , rowformat = "$0$R0$2 $1 ", rowsubformat1= '<small>($1)</small>' , rowsubformat2=", $2"},
		},
		{type = 'row' , label = 'الظروف',
			value = {'الظروف',"conditions"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'فعل',
			value = {'فعل',"action"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'العروض',
			value = {'عروض',"representations"},
			wikidata = {
				property = 'P5027' , qualifier = 'P585' , qualifier2 = 'P276'  
                , formatting = 'table' , list = 'bestrank'   
                , rowformat = "$0$R0 $2 $1 ",    
                rowsubformat1 = "<small><br />($1)</small>" , rowsubformat2 ="→ $2"},
		},
		{type = 'row' , label = 'النتائج',
			value = {'نتائج',"resultats"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'المخلفات',
			value = {'مخلفات',"consequences"},
			wikidata = {
				property = 'P1542 OR P1536'
                , qualifier = 'P585' , qualifier2 = 'P642'
                , formatting = 'table' , list = 'bestrank'  
                , rowformat = "$0$R0 $2 $1"
                , rowsubformat1= '<small><br />($1)</small>' , rowsubformat2="$2"},
		},
		{type = 'row' , label = 'الميزانية',
			value = {'ميزانية',"budget"},
			wikidata = {property='P2769',formatting='unitcode', case=generic.FormatNumVal},
		},
		{type = 'row' , label = 'مقياس درجة العزم',
			value = {'درجة العزم',"magnitude","v_p2527"},
			wikidata = {
				property = 'P2527'   
                , formatting = 'table' , qualifier = 'P585'
                , rowformat = "$0$R0 $1", rowsubformat1= '<small><br />($1)</small>' },
		},
		{type = 'row' , label = 'مقياس ريختر',
			value = {'ريختر',"richter"},
			wikidata = {
				property = 'P2528'  
                , formatting = 'table' , qualifier = 'P585'
                , rowformat = "$0$R0 $1", rowsubformat1= '<small><br />($1)</small>'},
		},
		{type = 'row' , label = 'مقياس ميركالي المعدل',
			value = {'ميركالي',"mercalli"},
			wikidata = {
				property = 'P2784' 
                , formatting = 'table' , qualifier = 'P585'
                , rowformat = "$0$R0 $1", rowsubformat1= '<small><br />($1)</small>' },
		},  

		{type = 'row' , label = 'العمق',
			value = {'عمق',"depth"},
			wikidata = {
				property = 'P4511' , 
				qualifier = 'P1013' , qualifier2 = 'P518 OR P642' , 
				rowformat = "$1 $0$R0 $2 ", 
				rowsubformat1= "$1:" , rowsubformat2="($2)" , colformat0 = "unitcode"},
		},

		{type = 'row' , label = 'سرعة الرياح القصوى',
			value = {'رياح',"winds"},
			wikidata = {
				property = 'P2895' , qualifier = 'P2047' , list = false , 
				formatting = 'table', rowformat = "$0$R0 $1 ", 
				colformat0 = "unitcode" , convert0='default2', 
				rowsubformat1=", $1" , colformat1 = "unit"
			},
		},
		{type = 'row' , label = 'أدنى ضغط جوي',
			value = {'ضغط جوي',"pression","v_p2532"},
			wikidata = {property = 'P2532' , formatting = 'unitcode' , convert='default'},
		}, 

		{type = 'row' , label = 'بيانات عن الحالات',
			value = {"v_p8204"},
			wikidata = {
				property = 'P8204'  , list = false , formatting = 'table' 
                               , rowformat = "[[c:$0$R0|قائمة]]"
                               , qualifier = 'P1433' },
		},
		{type = 'row' , label = 'أول حالة مسجلة',
			value = {"v_p1660"},
			wikidata = {property='P1660'},
		},
		{type = 'row' , label = 'عدد الاختبارات السريرية',
			value = {"v_p8011"},
			wikidata = {
				property = 'P8011' , qualifier = 'P585' , qualifier2 = 'P3005' , 
				formatting = 'table' , list = false , 
				tablesort=1 , sorting=-1  , 
				rowformat = "$2 $0$R0 $1 ", 
				rowsubformat1= '<small>($1)</small>' , 
				rowsubformat2="$2:"},
		},
		{type = 'row' , label = 'الحالات',
			value = {'حالات'},
			wikidata = {
				property = 'P1603' , 
				qualifier = 'P585' , qualifier2 = 'P3005' , 
				formatting = 'table' , list = 'bestrank' , tablesort=1 , 
				rowformat = "$2 $0$R0 $1 ", rowsubformat1= '<small>($1)</small>' , 
				rowsubformat2="$2:" },
		},
		{type = 'row' , label = 'الحالات في المستشفى',
			value = {'حالات في المستشفى'},
			wikidata = {
				property = 'P8049' , qualifier = 'P585', 
				formatting = 'table' , list = false , 
				tablesort=1 , sorting=-1 ,
                rowformat = "$0$R0 $1 ", rowsubformat1= '<small>($1)</small>'},
		},
		{type = 'row' , label = 'حالات الشفاء',
			value = {'حالات الشفاء'},
			wikidata = {
				property = 'P8010' , qualifier = 'P585' , qualifier2 = 'P3005', 
				formatting = 'table' , list = false , 
				tablesort=1 , sorting=-1,  
				rowformat = "$2 $0$R0 $1 ", rowsubformat1= '<small>($1)</small>' , 
				rowsubformat2="$2:"},
		},
		{type = 'row' , label = 'عدد التلقيحات الطبية',
			value = {"v_p9107"},
			wikidata = {
				property = 'P9107' , qualifier = 'P585' , 
				formatting = 'table' , list = 'bestrank' , tablesort=1 , 
				rowformat = "$0$R0 $1 ", rowsubformat1= '<small>($1)</small>' },
		},
		{type = 'row' , label = 'استجابة منظمة تتعلق بالحدث',
			value = {"v_p8045"},
			wikidata = {property='P8045'},
		},
		{type = 'row' , label = 'الهزة الارتدادية',
			value = {"repliques"},
			wikidata = {
				property = 'P2320' , 
				qualifier = 'P585' , qualifier2 = 'P276' , 
				formatting = 'table' , list = 'bestrank' , tablesort=1, 
				rowformat = "$2 $0$R0 $1 ", 
				rowsubformat1= '<small><br />($1)</small>' , rowsubformat2="$2:" },
		},
		{type = 'row' , label = 'ضحية',
			value = {"victimes"},
			wikidata = {
				property = 'P8032' , 
				qualifier = 'P518 or P3831' , qualifier2 = 'P276 OR P426'   , 
				formatting = 'table' , list = 'bestrank' , tablesort=2, 
				rowformat = "$2$4 $0$R0 $1 $3 ", 
				rowsubformat1="$1" , rowsubformat2="$2:" , 
				qualifier3 = 'P585' , rowsubformat3 = "<small><br />($3)</small>" , 
				qualifier4 = 'P1480/P487 or P1480', rowsubformat4 = "&nbsp;$4" },
		},
		{type = 'row' , label = 'الوفيات',
			value = {'وفيات',"deaths"},
			wikidata = { conjunction ='<br />',
				property = 'P1120' , qualifier = 'P518', qualifier2 = 'P276 OR P426 OR P17'  
                , formatting = 'table' , list = 'bestrank' , tablesort=2
                , rowformat = "$2$4 $0$R0 $1 $3 ", rowsubformat1="$1" , rowsubformat2="$2:" 
                , qualifier3 = 'P585' , rowsubformat3 = "<small><br />($3)</small>"  
                , qualifier4 = 'P1480/P487 or P1480', rowsubformat4 = "&nbsp;$4"},
		},
		{type = 'row' , label = 'الإصابات',
			value = {'إصابات',"injuries"},
			wikidata = {conjunction ='<br />',
				property = 'P1339' , qualifier = 'P518' , qualifier2 = 'P276 OR P426'   
                , formatting = 'table' , list = 'bestrank' , tablesort=2 
                , rowformat = "$2$4 $0$R0 $1 $3 ", rowsubformat1="$1" , rowsubformat2="$2:" 
                , qualifier3 = 'P585' , rowsubformat3 = "<small><br />($3)</small>"  
                , qualifier4 = 'P1480/P487 or P1480', rowsubformat4 = "&nbsp;$4" },
		},
		{type = 'row' , label = 'المفقودون',
			value = {'مفقودون',"missing"},
			wikidata = {conjunction ='<br />',
				property = 'P1446' , qualifier = 'P518' , qualifier2 = 'P276 OR P426'   
                , formatting = 'table' , list = 'bestrank' , tablesort=2
                , rowformat = "$2$4 $0$R0 $1 $3 ", rowsubformat1="$1" , rowsubformat2="$2:" 
                , qualifier3 = 'P585' , rowsubformat3 = "<small><br />($3)</small>"  
                , qualifier4 = 'P1480/P487 or P1480', rowsubformat4 = "&nbsp;$4" },
		},
		{type = 'row' , label = 'الناجون',
			value = {'ناجون',"survivors"},
			wikidata = {conjunction ='<br />',
				property = 'P1561' , qualifier = 'P518'  , qualifier2 = 'P276 OR P426'   
                , formatting = 'table' , list = 'bestrank' , tablesort=2
                , rowformat = "$2 $0$R0 $1 $3", rowsubformat1="$1" , rowsubformat2="$2:" 
                , qualifier3 = 'P585' , rowsubformat3 = "<small>(<br />$3)</small>"},
		},
		{type = 'row' , label = 'الخسائر',
			value = {'خسائر',"damaged"},
			wikidata = {conjunction ='<br />',
				property = 'P3081' , qualifier = 'P1114' , 
				formatting = 'table' , list = 'bestrank', 
				rowformat = "$1 $0$R0 $4 $2 $3 ", rowsubformat1="$1" , 
				tablesort="2/1", 
				qualifier2 = 'P585' , rowsubformat2 = "<small><br />($2)</small>" , 
				qualifier3 = 'P1107'  , rowsubformat3 = "($3)", 
				qualifier4 = 'P642'},
		},
		{type = 'row' , label = 'تكلفة الخسائر',
			value = {'تكلفة الخسائر',"cost of damage"},
			wikidata = {
				property = 'P2630' , qualifier = 'P518 OR P642' , 
				formatting = 'table' , list = 'bestrank' , tablesort="2/1", 
				rowformat = "* $1 $0$R0 $2 $3 ", 
				colformat0 = "unit" , case0=generic.FormatNumVal , 
				rowsubformat1="$1:", 
				qualifier2 = 'P585', rowsubformat2 = "<small><br />($2)</small>" , 
				qualifier3 = 'P459', rowsubformat3 = "($3)" },
		},
		{type = 'row' , label = 'الدمار',
			value = {'دمار',"destruction"},
			wikidata = {
				property = 'P3082' , qualifier = 'P1114'     
                , formatting = 'table' , list = 'bestrank'
                , rowformat = "* $1 $0$R0 $4 $2 $3 ", rowsubformat1="$1" , tablesort="2/1"
                , qualifier2 = 'P585' , rowsubformat2 = "<small>($2)</small>" 
                , qualifier3 = 'P1107'  , rowsubformat3 = "<small><br/>($3)</small>"
                , case3= function(v) return string.format("%5.0f&#37;",v*100) end
                , qualifier4 = 'P642'},
		},
		{type = 'row' , label = 'تسجيل',
			value = {"v_recording"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'الجمهور',
			value = {'جمهور',"spectators"},
			wikidata = {
				property = 'P5436' , qualifier = 'P585' , 
				formatting = 'table' , rowformat = "$0$R0 $1", 
				--colformat0 = "unit" , 
				rowsubformat1= '<small>($1)</small>'},
			wikidata2 = {
				property = 'P1110' , qualifier = 'P585' , 
				formatting = 'table' , 
				rowformat = "$0$R0 $1", colformat0 = "unit" , 
				rowsubformat1= '<small>($1)</small>'},
		}, 

		{type = 'row' , label = 'الفائز',
			value = {"winner"},
			wikidata = {
				property = 'P1346' , qualifier = 'P585' , 
				formatting = 'table' , tablesort="1", 
				rowformat = "$0$R0$3$2 $1 ", 
				rowsubformat1= '<small>($1)</small>' , 
				qualifier2 = 'P1686' , rowsubformat2 = ", عن عمل ''$2'' ", 
				qualifier3 = 'P1268 or P17', rowsubformat3 =" ↔ $3"},
		},
		{type = 'row' , label = 'إيرادات شباك التذاكر',
			value = {'إيرادات',"box office"},
			wikidata = {
				property = 'P2142' , qualifier = 'P585'  
                      , formatting = 'table' , rowformat = "$0$R0 $1", colformat0 = "unit", case0=generic.FormatNumVal , rowsubformat1= '<small>($1)</small>'},
		},

		{type = 'row' , label = 'المنصب المتنازع عليه',
			value = {'منصب',"office"},
			wikidata = {
				property = 'P541' , qualifier = 'P1114' , 
				rowformat = "$0$R0 $1 ", rowsubformat1="($1)"},
		},
		{type = 'row' , label = 'المرشحون',
			value = {'مرشحون',"candidats"},
			wikidata = {
				property = 'P726' ,
				formatting = 'table' ,  
				qualifier = 'P1111' , rowformat = "$0$R0 $1 ", rowsubformat1="($1)"},
		},
		{type = 'row' , label = 'المرشح الناجح',
			value = {"elegit"},
			wikidata = {formatting = 'table' , property = 'P991' , qualifier = 'P1111' 
                    , rowformat = "$0$R0 $1 ", rowsubformat1="($1)"},
		},

		{type = 'row' , label = 'التحقيق',
			value = {'التحقيق',"investigation"},
			wikidata = {property='P1840'},
		},
		{type = 'row' , label = 'التحريات القضائية',
			value = {'تحريات قضائية',"judicial_investigation"},
			-- wikidata = {property=''},
		}, 
		{type = 'row' , label = 'المدعي',
			value = {'مدعي',"instructor"},
			wikidata = {property='P1592'},
		},
		{type = 'row' , label = 'المشتبه به',
			value = {'مشتبه به',"suspect"},
			-- wikidata = {property=''},
		},

		{type = 'row' , label = 'المُجرِم',
			value = {'مجرم',"perpetrator"},
			wikidata = {property = 'P8031' , qualifier = 'P3831' , formatting = 'table' 
                                    , rowformat = "$0$R0 $1 ", rowsubformat1="($1)"},
		},
		{type = 'row' , label = 'السلاح',
			value = {'سلاح',"armament"},
			wikidata = {property = 'P520' , qualifier = 'P1114' , formatting = 'table' 
                                    , rowformat = "$1$0$R0 ", rowsubformat1='$1&nbsp;'},
		},
		{type = 'row' , label = 'الاعتقالات',
			value = {'اعتقالات',"arrests"},
			wikidata = {
				property = 'P5582' , qualifier = 'P518'  , qualifier2 = 'P276 OR P426'   , 
				formatting = 'table' , list = 'bestrank' , tablesort=2, 
				rowformat = "$2$4 $0$R0 $1 $3 ", rowsubformat1="$1" , rowsubformat2="$2:" , 
				qualifier3 = 'P585' , rowsubformat3 = "<small>($3)</small>"  , 
				qualifier4 = 'P1480/P487 or P1480', rowsubformat4 = '&nbsp;&nbsp;$4' },
		},
		{type = 'row' , label = 'المحاكمة',
			value = {'محاكمة',"trial"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'المدعي',
			value = {"مدعي","plaintiff"},
			wikidata = {property='P1620'}, 
		},
		{type = 'row' , label = 'المدعى عليه',
			value = {'مدعى عليه',"accused"},
			wikidata = {property='P1591'}, 
		},
		{type = 'row' , label = 'التهمة',
			value = {"carrecs"},
			wikidata = {property='P1595'},
		},
		{type = 'row' , label = 'الدفاع',
			value = {"defensor"},
			wikidata = {property='P1593'},
		},
		{type = 'row' , label = 'المحكمة',
			value = {'محكمة',"tribunal"},
			wikidata = {
				property = 'P4884' , qualifier = 'P1594 OR P488' , 
				formatting = 'table', rowformat = "$0$R0 $1 ", 
				rowsubformat1="(رئيس: $1)" },
		},
		{type = 'row' , label = 'القاضي',
			value = {'قاضي',"judge"},
			wikidata = {property='P1594'},
		},
		{type = 'row' , label = 'حكم (قانون)',
			value = {'حكم',"verdict","v_verdict"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'إدانة',
			value = {'إدانة',"condemnation","v_convict"},
			-- wikidata = {property=''},
		},
		{type = 'row' , label = 'العقوبة',
			value = {'عقوبة',"sentence"},
			wikidata = {
				property = 'P1596' , qualifier = 'P1591'  
                          , formatting = 'table' , list = 'bestrank'
                          , rowformat = "$1 $0$R0$3$4 ($2$5) ", rowsubformat1="$1:" , tablesort="2/1"
                          , qualifier2 = 'P585'   , rowsubformat2 = "<small>($2)</small>"
                          , qualifier3 = 'P2047'  , rowsubformat3 = ", $3." , colformat3 = "unit"
                          , qualifier4 = 'P2284'  , rowsubformat4 = ", $4." , colformat4 = "unitcode"
                          , qualifier5 = 'P4884'  , rowsubformat5 = ", $5" },
		},
	}},
	{type = 'table' , title ='وسائط', rows = {
		{type = 'row' , label = 'شبكة البث الأصلية',
			value = {'شبكة البث الأصلية',"original broadcaster"},
			wikidata = {property='P449'},
		},
		{type = 'row' , label = 'ملف صوتي',
			value = {"video"},
			wikidata = {property='P10'},
		},
		{type = 'row' , label = 'شبكة البث',
			value = {'شبكة البث',"broadcaster"},
			wikidata = {property='P3301'},

		},
		{type = 'row' , label = 'ملف مرئي',
			value = {'ملف مرئي',"audio"},
			wikidata = {property='P51'},
		},
	}},
	{type = 'table' , title ='كرونولوجيا', rows = {
		{type = 'row' , 
			value = {'كرونولوجيا',"chronology"},
			wikidata = {formatting = 'table', property = 'P793'  
                                      , qualifier = 'P585' , qualifier2 = 'P580'  
                                      , qualifier3 = 'P582' 
									  , rowsubformat2="$2-$3"
                                      , qualifier4 = 'P1591' -- P710 OR P1346 ....participant  
                                      , rowsubformat4="<br>مُدان:$4"
                                      , qualifier5 = 'P1399' -- condemned by 
                                      , rowsubformat5="<br>&rArr; $5"
                                      , qualifier6 = 'P828' -- has cause 
                                      , rowsubformat6="&nbsp;الأسباب $6"
                                      , qualifier7 = 'P1596' -- condemna 
									  , rowsubformat7="<br/>&rArr; $8 $7 "
                                      , qualifier8 = 'P1114 or P2047' -- quant./time 
									  , colformat8 = "unit"
                                      --,separator="</tr><tr>",conjunction="</tr><tr>"     
                                      , colformat0 = "ucfirst"     
                                      , rowformat = "* $1 $2 : $0$R0$5$4$7$6"},
		},
	}},
	{type = 'table' , title ='أخرى ',rows = {

		{type = 'row' , label = 'أجزاء من الصنف',
			value = {"elements"},
			wikidata = {property = 'P2670' , formatting = 'table' , list = 'bestrank' 
                                , colformat0 = "ucfirst" , case0 = "plural" 
                                , qualifier = 'P1114' , qualifier2 = 'P518' 
                                , rowsubformat1 = "<small><br/>العدد: $1</small>" , rowsubformat2 = "<small><br/>($2)</small>" 
                                , rowformat = "* $0$R0'''$1 $2"
			},
		},
		{type = 'row' , label = 'الأجزاء',
			value = {'الأجزاء',"has_part"},
			wikidata = {property = 'P527' , formatting = 'table' 
                                , rowformat = "* $5 '''$0$R0''' $4 $2", tablesort="1/9/3"
                                , qualifier = 'P1545' , rowsubformat1 = "ordre:$1," 
                                , qualifier2 = 'P580' -- OR P527/P580 --> 
								, rowsubformat2 = "($2&nbsp;–&nbsp;$3)"  
                                , qualifier3 = 'P582' -- OR P527/P582 --> 
								, rowsubformat3 = "$3" 
                                , qualifier4 = 'P585' -- OR P527/P585 --> 
								, rowsubformat4 = "($4)"
                                , qualifier5 = 'P527/P2425'  , rowsubformat5 = "[[File:$5|30px|link=]]"
                                , qualifier6 = 'P1346' , rowsubformat6 = "$6"
                                , qualifier7 = 'P1686' , rowsubformat7 = ", عن عمل ''$7''" 
                                , qualifier8 = 'P518'  , rowsubformat8 = "ينطبق على جزء:$8" 
                                , qualifier9 = 'P585 or P580 '},
		},
		{type = 'row' , label = 'مختصر القانون',
			value = {'مختصر القانون',"law digest"},
			wikidata = {property='P9376'},
		},
	  }},
	{type = 'table' , title ='التراث الثقافي', rows = {
		{type = 'row' , label = 'الوضع',
			value = {"وضع التراث"},
			wikidata = {property='P3259'},
		},			
	}},

	{type = 'table' , title ='الوثائق',rows = {

		{type = 'row' , label = 'العمل مُتاحٌ في',
			value = {'العمل متاح في',"text_complet"},
			wikidata = {property = 'P953' , list = false, formatting = 'weblink'},
		},
		generic.website(),
	}},
{type = 'navbox',
				previousparameter = {"سبقه",'preceded_by'}, 
				previouswikidata ={property = "P155", conjunction="<br>"},
				nextparameter = {"تبعه",'followed_by'},	
				nextwikidata={ property = "P156", conjunction="<br>"}
			}

}}