انتقل إلى المحتوى

وحدة:بطاقة/قالب/سلالة حيوان

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

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

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

	{type = 'images',
		imageparameters =  {'خريطة الانتشار','range map'},
		defaultimages = nil,
		defaultupright = 1,
		uprightparameter = 'upright range map',
		captionparameter = 'تعليق خريطة الانتشار',
		defaultcaption = 'خريطة الانتشار',
		wikidata = { property = 'P181',},
		metadata = {
			description = "خريطة الانتشار لهذا الكائن",
		}
	},

	{type = 'table' , title ='معلومات عامة' ,rows = {
		{type = 'row', 
			label = 'المخاطر',
			value = {'مخاطر','extinct','status'},
			wikidata = {property='P2371', showDate="true"}
		},
        {type = "row", label = "نسبة الاسم إلى",
            value = {"سبب_تسمية", "namesake"},
            wikidata = {property = "P138"},
            metadata = {
				description = "",
				option = "", 
				type = "", 
            }
        },
		{type = 'row', 
			label = 'أسماء أخرى',
			value = {'أسماء أخرى','alt_name'},
			-- wikidata = {property='P'}
		},
		{type = 'row', 
			label = 'الكنية',
			value = {'كنية','nickname'},
			wikidata = {
				wikimod='Wikidata.Ca', 
				formatting='$text {{Language icon|NoCat=y|$language}}',
				conjunction = '<br />'
			},
		},
		{type = 'row', label = 'البلد الأصلي', 
			value = {'أصل','الأصل', "بلد أصلي","origin country",'country'}, 
            wikidata = {property = "P495 OR P17"},
            metadata = {
				description = "",
				option = "", 
				type = "", 
            }
		},
		{type = 'row', 
			label = 'منطقة التربية',
			value = {'منطقة التربية'},
			--wikidata = {property='P'}
		},
		{type = 'row', 
			label = 'الانتشار',
			value = {'انتشار','توزيع','distribution'},
			-- wikidata = {property='P'}
		},
		{type = 'row', 
			label = 'Standard',
			value = {'standard'},
			-- wikidata = {property='P'}
		},
		{type = 'row', 
			label = 'Type',
			value = {'type'},
			-- wikidata = {property='P'}
		},
		{type = 'row', 
			label = 'الاستعمال',
			value = {'استعمال','الاستعمال','use'},
			wikidata = {property='P366'}
		},
	}},
   {type = 'table' , title ='السمات' ,rows = {
	{type = 'row', 
		label = '[[علم التشكل (أحياء)|علم التشكل]]',
		value = {'علم التشكل'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = ' علم الأنساب',
		value = {'علم الأنساب'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = ' [[مثنوية الشكل الجنسية|ازدواج الشكل الجنسي]]',
		value = {'ازدواج الشكل الجنسي'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'الوزن',
		value = {'وزن','الوزن','weight'},
		wikidata = {
			wikimod='Wikidata.Ca', sep="<br />",
			wikidata = { 
				property= 'P2067', rowformat= "$0$R0$2",
				formatting="table", qualifier1='P21',
				blacklist1 = "Q44148,Q43445",
				qualifier2 = 'P3831', rowsubformat2="<small><br/>($2)</small>",
				colformat0 = 'unitcode'},
			wikidata2 = {
				value = localdata.getValue({'وزن الذكر','male_weight','maleweight'}), before = 'الذكر : ',
				formatting="table",
				property= 'P2067', rowformat= "$0$R0$2",
				qualifier1='P21', whitelist1 ='Q44148',
				colformat0 = 'unitcode',
				qualifier2 = 'P3831', rowsubformat2="<small><br/>($2)</small>"
			},
			wikidata3 = {
				value = localdata.getValue({'وزن الأنثى','female_weight','femaleweight'}) , before = 'الأنثى : ',
				property= 'P2067', rowformat= "$0$R0$2",formatting="table",
				qualifier1='P21', whitelist1 ='Q43445',
				colformat0 = 'unitcode',
				qualifier2 = 'P3831', rowsubformat2="<small><br/>($2)</small>"
			}
		},
	},
	{type = 'row', 
		label = ' الحجم',
		value = {'الحجم'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'الطول',
		value = {'طول','height'},
		wikidata = { wikimod='Wikidata.Ca', sep="<br />",
			wikidata = {	
				property= 'P2048', rowformat= "$0$R0$2",
				formatting="table", qualifier1='P21',
				blacklist1 = "Q44148,Q43445",
				qualifier2 = 'P3831', rowsubformat2="<small><br/>($2)</small>",
				colformat0 = 'unitcode'},
			wikidata2 = {
				value = localdata.getValue({'طول الذكر','male_height','maleheight'}),  before = 'الذكر : ',
				property= 'P2048', rowformat= "$0$R0$2",formatting="table",
				qualifier1='P21', whitelist1 ='Q44148',
				colformat0 = 'unitcode',
				qualifier2 = 'P3831', rowsubformat2="<small><br/>($2)</small>"
			},
			wikidata3 = {
				value = localdata.getValue({'طول الأنثى','female_height','femaleheight'}) ,  before = 'الأنثى : ',
				property= 'P2048', rowformat= "$0$R0$2",formatting="table",
				qualifier1='P21', whitelist1 ='Q43445',
				colformat0 = 'unitcode',
				qualifier2 = 'P3831', rowsubformat2="<small><br/>($2)</small>"
			}
		},
	},
	{type = 'row', 
		label = '[[الجلد]]',
		value = {'جلد','الجلد','skin_color','skin_colour'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'Comb type',
		value = {'comb'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'العرف',
		value = {'عرف','crest'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = '[[ريش (تشريح)|الريش]]',
		value = {'ريش','الريش','feather'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'Coat',
		value = {'coat'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'الصوف',
		value = {'الصوف','wool_color','wool_colour'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'لون الشعر',
		value = {'لون الشعر','hair_color','hair_colour'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'Face colour',
		value = {'face_color','face_colour'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = '[[قرن (أحياء)|القرون]]',
		value = {'قرون','القرون','horn','horns'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'اللون',
		value = {'لون','الألوان','color','colour'},
		wikidata = {
			formatting='table', rowformat='$1$0$R0', conjunction='<br />',
			property = 'P462', 
			qualifier='P642 OR P518',  rowsubformat1='$1 : ',
			blacklist1='Q93189'
		},
	},
	{type = 'row', 
		label = ' [[منقار|المنقار]]',
		value = {'منقار','المنقار','beak'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = 'معدل العمر',
		value = {'معدل العمر','life_span'},
		wikidata = {property='P2250', formatting='unit'}
	},
	{type = 'row', 
		label = 'الفرو',
		value = {'فرو','الفرو','fur_type'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = ' [[رأس (تشريح)|الرأس]]',
		value = {'الرأس'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = ' [[عين (تشريح)|الأعين]]',
		value = {'الأعين'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = ' [[أذن|الآذان]]',
		value = {'الآذان'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = ' [[ذيل|الذيل]]',
		value = {'الذيل'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = ' [[حافر الحصان|الحافر]]',
		value = {'الحافر'},
		--wikidata = {property='P'}
	},
	{type = 'row', 
		label = ' [[طرف سفلي|الساق]]',
		value = {'الساق'},
		--wikidata = {property='P'}
	},

	{type = 'row', 
		label = 'Distinguishing features',
		value = {'features'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'trait_label'},
		value = {'trait_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'trait1_label'},
		value = {'trait1_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'trait2_label'},
		value = {'trait2_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'trait3_label'},
		value = {'trait3_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'trait4_label'},
		value = {'trait4_data'},
		-- wikidata = {property='P'}
	},
   }},
	{type = 'table' , title ='التكاثر' ,rows = {
		{type = 'row', 
			label = ' عدد البيضات في الإباضة',
			value = {'عدد البيضات في الإباضة'},
			--wikidata = {property='P'}
		},
		{type = 'row', 
			label = 'لون البيضة',
			value = {'egg_color','egg_colour'},
			wikidata = {
			 formatting='table', rowformat='$1$0$R0',
			 property = 'P462', 
			 qualifier='P642 OR P518',  rowsubformat1='$1 : ',
			 whitelist1='Q93189'
			},
		},
		{type = 'row', 
			label = 'وزن البيضة',
			value = {'وزن البيضة','egg_weight'},
			--wikidata = {property='P'}
		},
		{type = 'row', 
			label = 'سعة الرحم',
			value = {'سعة الرحم','litter_size'},
			wikidata = {property='P7725'}
		},
		{type = 'row', 
			label = 'فترة الحمل',
			value = {'فترة الحمل','gestation period'},
			wikidata = {property='P3063', formatting='unitcode'}
		},
		{type = 'row', 
			label = 'فترة الرضاعة',
			value = {'فترة الرضاعة','lactation period'},
			wikidata = {property='P7862', formatting='unitcode'}
		},
		{type = 'row', 
			label = 'فترة حضانة البيض',
			value = {'فترة حضانة البيض','egg incubation period'},
			wikidata = {property='P7770', formatting='unitcode'}
		},
		{type = 'row', 
			label = 'سن البلوغ',
			value = {'بلوغ','maturity'},
			wikidata = {property='P12432', formatting='unitcode'}
		},
	}},   
   {type = 'table' , title ='التصنيف', rows = {
	{type = 'row', 
		label = {'classification_label'},
		value = {'classification_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'classification1_label'},
		value = {'classification1_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'classification2_label'},
		value = {'classification2_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'classification3_label'},
		value = {'classification3_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'classification4_label'},
		value = {'classification4_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'classification5_label'},
		value = {'classification5_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'classification6_label'},
		value = {'classification6_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'classification7_label'},
		value = {'classification7_data'},
		-- wikidata = {property='P'}
	},
	{type = 'row', 
		label = {'classification8_label'},
		value = {'classification8_data'},
		-- wikidata = {property='P'}
	},
   }},
   {type = 'table' , title =localdata.getValue({'breed_hdr'}) or 'breed_hdr' ,rows = {
	{type = 'row1col' ,
		value = {'breed_val'},
		-- wikidata = {property='P'}
	},
   }},
   {type = 'table' , title ='الهوامش' ,rows = {
	{type = 'row1col', value = {'notes'} },
	{type = 'row1col', class="vernacular", value = {'vernacular_name'} },
	{type = 'row1col', class="binominal", value = {'binominal_name'} },
	{type = 'row1col', class="trinominal", value = {'trinominal_name'} },

   }}
 }
}