وحدة:بطاقة/قالب/تجمع سكاني

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

-- Credits:
-- وهراني @arwiki (ar:وحدة:بطاقة/قالب/تجمع سكاني)
-- Version: 20240413

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

return  {
    maincolor = '#FFE4B5', -- اللون المستعمل لعنوان البطاقة
    wikimod = 'Wikidata.Ca',
    parts = { -- محتويات البطاقة
        generic.title({icon='map'}),-- Title
		{type = 'subtitle',
			value = {'اسم_أصلي','native_name'},
			wikidata= {
				property = 'P1476', 
				conjunction = "<br />", separator = "<br />", 
				formatting = '$text {{لغة وصلة|$language}}', 
				list='notlang',listrank='bestrank'
			}},
        generic.logo(),
        generic.mainimage({wikidata= {property = 'P2716 OR P18'}}),

        {type = 'table' , title ='معلومات عامة' ,rows = {            
            {type = 'row', 
                label = 'نوع المستوطنة', 
                value = {'نوع_مستوطنة','settlement_type','type'}, 
                --wikidata ={property = 'P'}
            },
        }},
		{type='table', title = 'انتساخ(ج)', rows = {

-- ***Transliteration language 1*** -->

            {type = 'row',
                label = {'translit_lang1_type'}, 
                value = {'translit_lang1_info'}, 
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang1_type1'}, 
                value = {'translit_lang1_info1'}, 
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang1_type2'},
                value = {'translit_lang1_info2'}, 
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang1_type3'}, 
                value = {'translit_lang1_info3'}, 
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang1_type4'}, 
                value = {'translit_lang1_info4'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang1_type5'}, 
                value = {'translit_lang1_info5'}, 
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang1_type6'}, 
                value = {'translit_lang1_info6'}, 
                --wikidata ={property = 'P'}
            },
        }},
		{type='table', title = 'transcription(s)', rows = {
-- ***Transliteration language 2*** -->
            {type = 'row',
                label = {'translit_lang2_type'},
                value = {'translit_lang2_info'},
                --wikidata ={property = 'P'}
            },

            {type = 'row',
                label = {'translit_lang2_type1'},
                value = {'translit_lang2_info1'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang2_type2'},
                value = {'translit_lang2_info2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang2_type3'},
                value = {'translit_lang2_info3'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang2_type4'},
                value = {'translit_lang2_info4'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang2_type5'},
                value = {'translit_lang2_info5'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'translit_lang2_type6'},
                value = {'translit_lang2_info6'},
                --wikidata ={property = 'P'}
            },
        }},
        
        generic.flag({upright=0.6}),
        generic.blason({upright=0.3}),
        --generic.shield(),
        --generic.emblem(),
        generic.locationmap(),
        generic.geoloc(),

-- نهاية الأسماء **، والنوع، والترجمات الحرفية ** -->

-- ***صورة خط أفق مدينة *** -->
-- ***العلم، والختم، والدرع والشعار*** -->
		{type='table', title = 'التسمية', rows = {
            {type = 'row',
                label = '[[مسماة|سبب التسمية]]',
                value = {'سبب التسمية','named_for'},
                wikidata ={property = 'P138'}
            },
-- ***اللقب*** -->
            {type = 'row',
                label = 'الاسم الرسمي',
                value = {'اسم رسمي','official_name'},
                wikidata ={property = 'P1448'
				, conjunction = "<br />", separator = "<br />"
				, formatting = '$text {{لغة وصلة|$language}}'
				, list='notlang',listrank='bestrank'}
            },
            {type = 'row',
                label = 'اللقب',
                value = {'لقب','اللقب','nickname'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'أسماء أخرى',
                value = {'أسماء أخرى','other_name'},
                --wikidata ={property = 'P'}
            },
            generic.motto(),

            generic.awards(),
            generic.website(),        
		}},
        generic.selectSound({property = "P85",valueparameter = {"نشيد وطني", "anthem"}}),

		{type='table', title = 'التقديم', rows = {
        
--***تأسست*** -->
            {type = 'row',
                label = '[[تاريخ التأسيس]]',
                value = {'تاريخ التأسيس'},
                wikidata ={property = 'P571'}
            },
            {type = 'row',
                label = {'established_title'},
                value = {'established_date'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'established_title1'},
                value = {'established_date1'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'established_title2'},
                value = {'established_date2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'established_title3'},
                value = {'established_date3'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'established_title4'},
                value = {'established_date4'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'extinct_title'},
                value = {'extinct_date'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'المؤسس',
                value = {'المؤسس','founder'},
                wikidata ={property = 'P112'}
            },
        }},
-- ***التقسيمات الفرعية*** -->
		{type='table', title = '[[تقسيم إداري]]', rows = {
            {type = 'row',
                label = 'البلد',
                value = {'بلد','country'},
                wikidata ={property = 'P17', listrank='bestrank', showDate='true'}
            },
            {type = 'row',
                label = {'subdivision_type'},
                value = {'subdivision_name'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'subdivision_type1'},
                value = {'subdivision_name1'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'subdivision_type2'},
                value = {'subdivision_name2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'subdivision_type3'},
                value = {'subdivision_name3'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'subdivision_type4'},
                value = {'subdivision_name4'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'subdivision_type5'},
                value = {'subdivision_name5'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'subdivision_type6'},
                value = {'subdivision_name6'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'التقسيم الأعلى',
                value = {'التقسيم الأعلى'},
                wikidata ={property = 'P131',listrank='bestrank'}
            },

-- ***مقر الحكومة والتقسيمات داخل مستوطنة*** -->
            {type = 'row',
                label = '[[عاصمة|العاصمة]]',
                value = {'عاصمة','العاصمة','capital'},
                wikidata ={property = 'P36',listrank='bestrank'}
            },
            {type = 'row',
                label = '[[قوائم عواصم|عاصمة لـ]]',
                value = {'عاصمة لـ','capital of'},
                wikidata ={property = 'P1376',listrank='bestrank', showDate='true', conjunction='<br />'}
            },
            {type = 'row',
                label = {'seat_type'} , defaultlabel ='مقر',
                value = {'مقر','seat'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'seat1_type'} , defaultlabel = 'مقر سابق',
                value = {'مقر سابق','seat1'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'seat2_type'} , defaultlabel = 'مقر سابق 2',
                value = {'مقر سابق 2','seat2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'تاريخ الإلغاء',
                value = {'تاريخ الإلغاء','disestablished_date1','disestablished_date'},
                wikidata ={property = 'P576'}
            },
            {type = 'row',
                label = 'التقسيمات الإدارية',
                value = {'تقسيمات إدارية','التقسيمات الإدارية','administrative divisions'},
                wikidata ={property = 'P150',listrank='bestrank'}
            },
            {type = 'row',
                label = 'جزء من',
                value = {'جزء من','part of'},
                wikidata ={property = 'P361',listrank='bestrank'}
            },
        }},
-- ***نوع الحكومة والقائد*** -->
-- ***الحكومة *** -->
        {type='table', title = '[[حكومة|الحكومة]]', rows = {
            {type = 'row',
                label = '[[نظام الحكم|النوع]]',
                value = {'government_type'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'هيئة',
                value = {'governing_body'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'leader_title'},
                value = {'leader_name'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'leader_title1'},
                value = {'leader_name1'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'leader_title2'},
                value = {'leader_name2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'leader_title3'},
                value = {'leader_name3'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'leader_title4'},
                value = {'leader_name4'},
                --wikidata ={property = 'P'}
            },
        }},
-- ***الخصائص الجغرافية*** -->
        {type='table', title = 'خصائص جغرافية', rows = {
-- ***المساحة*** -->
            {type = 'row',
                label = 'المساحة',
                value = {'مساحة','area_total','area_total_km2'},
                wikidata ={property = 'P2046', conjunction='<br />',
                	colformat0='unitcode' , listrank='bestrank',showDate='true'}
            },
            {type = 'row',
                label = 'اليابسة',
                value = {'مساحة يابسة','area_land','area_land_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[مسطح مائي|مسطحات مائية]]',
                value = {'مساحة مسطح مائي','area_water','area_water_km2'},
                wikidata ={property = 'P8887', formatting='unitcode', showDate='true'}
            },
            {type = 'row',
                label = '[[منطقة حضرية|مناطق حضرية]]',
                value = {'مساحة حضرية','area_urban','area_urban_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[ريف|مناطق ريفية]]',
                value = {'مساحة ريفية','area_rural','area_rural_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[مدينة كبرى|التجمع الحضري]]',
                value = {'مساحة مدينة كبرى','area_metro','area_metro_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'area_blank1_title'},
                value = {'area_blank1','area_blank1_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'area_blank2_title'},
                value = {'area_blank2','area_blank2_km2'},
                --wikidata ={property = 'P'}
            },
-- ***الابعاد*** -->
            {type = 'row',
                label = 'الطول',
                value = { 'طول','length','length_km'},
                wikidata ={property = 'P2043', formatting='unitcode'}
            },
            {type = 'row',
                label = 'العرض',
                value = {'عرض','width','width_km'},
                wikidata ={property = 'P2049', formatting='unitcode'}
            },

-- ***الارتفاع*** -->
            {type = 'row',
                label = '[[ارتفاع (مصطلح)|الارتفاع]]',
                value = {'ارتفاع','elevation_m'},
                wikidata ={property = 'P2044', formatting='unitcode'}
            },
            {type = 'row',
                label = 'أعلى&nbsp;ارتفاع',
                value = {'أعلى ارتفاع','elevation_max_m'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'أقل&nbsp;ارتفاع',
                value = {'أقل ارتفاع','elevation_min_m'},
                --wikidata ={property = 'P'}
            },
        }},
-- ***السكان*** -->
        {type='table', title = 'السكان', rows = {
            {type = 'row',
                label = '[[إحصاء السكان|عدد السكان]]',
                value = {'عدد السكان','population'},
                wikidata ={
                	property = 'P1082',conjunction='<br />',listrank='bestrank', 
                	formatting='table', rowformat='$0$R0 $1',
                	qualifier1='P459', rowsubformat1='<small><br />وفق $1 </small>',
                	showDate='true'}
            },
            {type = 'row',
                label = 'المجموع',
                value = {'مجموع السكان','population_total'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[إسقاط سكاني|تقدير]]',
                value = {'تقدير سكاني','population_est'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[كثافة سكانية|الكثافة السكانية]]',
                value = {'كثافة سكانية', 'population_density', 'population_density_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'عدد الذكور',
                value = {'الذكور'},
                wikidata ={property = 'P1540'}
            },
            {type = 'row',
                label = 'عدد الإناث',
                value = {'الإناث'},
                wikidata ={property = 'P1539',conjunction='<br />',listrank='bestrank', 
                	formatting='table', rowformat='$0$R0 $1',
                	qualifier1='P459', rowsubformat1='<small><br />وفق $1 </small>',
                	showDate='true'}
            },
            {type = 'row',
                label = 'عدد الأسر',
                value = {'عدد الأسر'},
                wikidata ={property = 'P1538',conjunction='<br />',listrank='bestrank', 
                	formatting='table', rowformat='$0$R0 $1',
                	qualifier1='P459', rowsubformat1='<small><br />وفق $1 </small>',
                	showDate='true'}
            },
            {type = 'row',
                label = 'عدد المساكن',
                value = {'عدد المساكن'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'رتبة الكثافة السكانية',
                value = {'رتبة الكثافة','population_density_rank'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[منطقة حضرية|حضر]]',
                value = {'عدد سكان الحضر','population_urban'},
                wikidata ={property = 'P6343', conjunction='<br />',listrank='bestrank', 
                	formatting='table', rowformat='$0$R0 $1',
                	qualifier1='P459', rowsubformat1='<small><br />وفق $1 </small>',
                	showDate='true'}
            },
            {type = 'row',
                label = '[[كثافة عمرانية|الكثافة العمرانية]]',
                value = {'كثافة عمرانية','population_density_urban','population_density_urban_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[ريف]]',
                value = {'عدد سكان الريف','population_rural'},
                wikidata ={property = 'P6344',conjunction='<br />',listrank='bestrank', 
                	formatting='table', rowformat='$0$R0 $1',
                	qualifier1='P459', rowsubformat1='<small><br />وفق $1 </small>',
                	showDate='true'}
            },
            {type = 'row',
                label = 'كثافة سكان الريف',
                value = {'كثافة سكان الريف','population_density_rural','population_density_rural_km2'},
                --wikidata ={property = 'P'}
            },

            {type = 'row',
                label = 'سكان [[مدينة كبرى|المدينة الكبرى]]',
                value = {'سكان مدينة كبرى','population_metro'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = 'كثافة سكان المدن الكبرى',
                value = {'كثافة سكان المدن الكبرى','population_density_metro','population_density_metro_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'population_blank1_title'},
                value = {'population_density_blank1','population_density_blank1_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'population_blank2_title'},
                value = {'population_density_blank2','population_density_blank2_km2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[نسبة (وصف)|تسمية السكان]]',
                value = {'تسمية السكان','population_demonym'},
                wikidata ={  
                	formatting='table', rowformat='* $1 $0$R0',
                	property = 'P1549', list='lang',
                	qualifier1='P518', rowsubformat1='$1: '},
                wikidata2 ={property = 'P1549', 
                	formatting='table', rowformat='* $1 {{$0}} $R0',
                	colformat0='Text with Language icon|Text=$text|Lang=$language|NoCat=y',
                	qualifier1='P518', rowsubformat1='$1: '}
            },

        }},
        {type='table', title = {'demographics_type1'}, rows = {
            {type = 'row',
                label = {'demographics1_title1'},
                value = {'demographics1_info1'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'demographics1_title2'},
                value = {'demographics1_info2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'demographics1_title3'},
                value = {'demographics1_info3'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'demographics1_title4'},
                value = {'demographics1_info4'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'demographics1_title5'},
                value = {'demographics1_info5'},
                --wikidata ={property = 'P'}
            },
        }},
        {type='table', title = {'demographics_type2'}, rows = {
            {type = 'row',
                label = {'demographics2_title1'},
                value = {'demographics2_info1'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'demographics2_title2'},
                value = {'demographics2_info2'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'demographics2_title3'},
                value = {'demographics2_info3'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'demographics2_title4'},
                value = {'demographics2_info4'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'demographics2_title5'},
                value = {'demographics2_info5'},
                --wikidata ={property = 'P'}
            },


        }},
-- ***المناطق الزمنية*** -->
        {type='table', title = 'معلومات أخرى', rows = {
            {type = 'row',
                label = '[[منطقة زمنية]]',
                value = {'منطقة زمنية','utc_offset'},
                wikidata ={property = 'P421',qualifier='P1264', listrank='bestrank', formatting='table', rowformat='$0$R0', blacklist1='Q36669', conjunction='<br />'}
            },

            {type = 'row',
                label = '[[توقيت صيفي]]',
                value = {'توقيت صيفي','timezone2_DST'},
                wikidata ={property = 'P421',qualifier='P1264', listrank='bestrank', formatting='table', rowformat='$0$R0', whitelist1='Q36669', conjunction='<br />'}
            },
            {type = 'row',
                label = '[[لغة رسمية|اللغة الرسمية]]',
                value = {'لغة','اللغة','language'},
                wikidata ={property = 'P37'}
            },
-- ***الرمز البريدي*** -->
            {type = 'row',
                label = {'postal_code_type'}, defaultlabel ='[[رمز بريد|الرمز البريدي]]',
                value = {'رمز بريدي','postal_code'},
                wikidata ={property = 'P281'}
            },
            {type = 'row',
                label = {'postal2_code_type'}, 
                value = {'postal2_code'},
                --wikidata ={property = 'P'}
            },
-- ***رمز المنطقة*** -->
            {type = 'row',
                label = {'area_code_type'}, defaultlabel ='رمز الهاتف',
                value = {'رمز الهاتف','area_code'},
                wikidata ={property = 'P473'}
            },
-- الرمز الجغرافي-->
            {type = 'row',
                label = '[[جيونيمز|رمز جيونيمز]]',
                value = {'جيونيمز','geocode'},
                wikidata ={property = 'P1566'}
            },
            {type = 'row',
                label = '[[أيزو 3166]]',
                value = {'أيزو','iso_code'},
                wikidata ={property = 'P300'}
            },
--  لوحة تسجيل المركبة-->
            {type = 'row',
                label = '[[لوحة مركبات]]',
                value = {'لوحة مركبات','registration_plate'},
                wikidata ={property = 'P395'}
            },

        }},
        {type='table', title = '[[توأمة مدن|المدن الشقيقة]]', rows = {
            {type = 'row',
                label = {'توأم1','twin1'},
                value = {'دولة توأم','twin1_country'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = '[[توأمة مدن|المدينة التوأم]]',
                value = {'توأم','twin_cities'},
                wikidata ={property = 'P190', showDate='true'}
            },
        }},
        {type='table', title = 'بيانات أخرى', rows = {
            -- ***الحقول فارغة (قسمين)*** -->
            {type = 'row',
                label = {'blank_name_sec1','blank_name'},
                value = {'blank_info_sec1','blank_info'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'blank1_name_sec1','blank1_name'},
                value = {'blank1_info_sec1','blank1_info'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'blank2_name_sec1','blank2_name'},
                value = {'blank2_info_sec1','blank2_info'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'blank3_name_sec1','blank3_name'},
                value = {'blank3_info_sec1','blank3_info'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'blank4_name_sec1','blank4_name'},
                value = {'blank4_info_sec1','blank4_info'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'blank5_name_sec1','blank5_name'},
                value = {'blank5_info_sec1','blank5_info'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'blank6_name_sec1','blank6_name'},
                value = {'blank6_info_sec1','blank6_info'},
                --wikidata ={property = 'P'}
            },
            {type = 'row',
                label = {'blank7_name_sec1','blank7_name'},
                value = {'blank7_info_sec1','blank7_info'},
            },
            {type = 'row',
                label = {'blank_name_sec2'},
                value = {'blank_info_sec2'},
            },
            {type = 'row',
                label = {'blank1_name_sec2'},
                value = {'blank1_info_sec2'},
            },
            {type = 'row',
                label = {'blank2_name_sec2'},
                value = {'blank2_info_sec2'},
            },
            {type = 'row',
                label = {'blank3_name_sec2'},
                value = {'blank3_info_sec2'},
            },
            {type = 'row',
                label = {'blank4_name_sec2'},
                value = {'blank4_info_sec2'},
            },
            {type = 'row',
                label = {'blank5_name_sec2'},
                value = {'blank5_info_sec2'},
            },
            {type = 'row',
                label = {'blank6_name_sec2'},
                value = {'blank6_info_sec2'},
            },
            {type = 'row',
                label = {'blank7_name_sec2'},
                value = {'blank7_info_sec2'},
            },
        }},
        {type='table', title = 'ملاحظات', rows = {
            {type = 'row1col',value = {'ملاحظات','footnotes'}},
        }}
}}