وحدة:بطاقة/قالب/جهاز معلوماتي

local general =  require( 'وحدة:بطاقة/أدوات' )
return 
	{
	maincolor = "D5D9ED",
	wikimod = 'Wikidata.Ca',
	parts =
    	{
			general.title( {icon="communication"}),
			{type = 'subtitle'
				, value = {'codename'} , wikidata= {property = 'P1638'}},
			general.logo(),
			general.mainimage{ 
				imageparameters = {'صورة','الصورة','صورة1' } , 
				captionparameter = {'تعليق','تعليق1'} },
		{type = "table", title = "معلومات عامة", rows = {
			{type = "row", label = "الماركة"
				, value = {'الماركة','ماركة','brand'}
				, property = 'P1716'},
			{type = "row", label = "النوع"
				, value = {'الصنف','النوع','نوع','type'}
				, property = 'P279'},
			{type = "row", label = "الصانع"
				, value = {'manufacturer','الصانع','صانع'}
				, property = 'P176'},
			{type = "row", label = "الشعار"
				, value = {'شعار نصي','الشعار النصي','slogan'}
				, wikidata= {property = 'P1451' ,formatting = '$text {{Language icon|NoCat=y|$language}}'}},
			{type = "row", label = "المصمم"
				, value = {'المصمم','مصمم','designer'}
				, wikidata= {property = 'P287'}},
			{type = "row", label = "المطور"
				, value = {'المطور'}
				, wikidata= {property = 'P178'}},
			{type = "row", label = "عائلة المنتج"
				, value = {'العائلة','عائلة المنتج'}
				, property = 'P179'},
			{type = "row", label = "الجيل"
				, value = {'الجيل','generation'}
				, wikidata= {property = 'P361'}},
			{type = "row", label = "التوفر في السوق"				
				, value = {'التوفر في السوق','available','retail availability'}},
			{type = "row", label = "الانتاج"
				, value = {'انتاج','الانتاج','unitsshipped'}
				, property = 'P2197'},
            {type = 'row' , label = 'السعر المبدئي'  
                , value = {'السعر المبدئي','price'}
				, wikidata={property = 'P2284', formatting='unitlinked'}
            },
			{type = "row", label = "المبيعات"				
				, value = {'المبيعات','الأعداد المباعة','unitssold'} 
				, property = 'P2664'},
			general.website(),
		}},
		{type = "table", title = "أهم التواريخ", rows = {
			{type = "row", label = "تاريخ الإعلان"
				, value = {'تاريخ الإعلان','announcement'}
				, property = 'P6949'},
			{type = "row", label = "تاريخ الإصدار"				
				, value = {'تاريخ الإصدار','released','موعد الإصدار','الصدور','تاريخ الصدور','release date'}
				, wikidata= {property = 'P577 OR P571',qualifier1='P291', conjunction = "<br />", formatting='table'
                ,  rowformat="$0$R0 $1", rowsubformat1 = "<small><br>:: في $1</small>"}
            },
			{type = "row", label = "توقف الإصدار"				
				, value = {'توقف الإصدار','discontinued','التوقف'} 
				, property = 'P2669'},

		}},

		{type = "table", title = "الوظائف", rows = {
			{type = "row", label = "الشاشة"
				, value = {'الشاشة','display'}
				, wikidata= {property = 'P5307',formatting='table'
						,qualifier1='P2061',qualifier2='P2048',qualifier3='P2049',qualifier4='P2043',qualifier5='P2054'
                        ,colformat1='unitlinked',colformat2='unitlinked',colformat3='unitlinked',colformat4='unitlinked'
                        ,colformat5='unitlinked'
                        , rowformat= "$0$R0 $1$2$3$4$5"
                        , rowsubformat1 = "<small><br>:: نسبة الارتفاع : $1</small>"
                        , rowsubformat2 = "<small><br>:: الارتفاع : $2</small>"
                        , rowsubformat3 = "<small><br>:: العرض : $3</small>"
                        , rowsubformat4 = "<small><br>:: الطول : $4</small>"
                        , rowsubformat5 = "<small><br>:: الكثافة : $5</small>"
			    }},
			{type = "row", label = "الشاشة الخارجية"
				, value = {'شاشة خارجية','ext_display'}},
			{type = "row", label = "لوحة اللمس"
				, value = {'لوحة اللمس','touchpad'}},
			{type = "row", label = "الكاميرا"
				, value = {'الكاميرا','rear_camera','كاميرا','camera'}},
			{type = "row", label = "الكاميرا الأمامية"
				, value = {'الكاميرا الأمامية','front_camera'}},
			{type = "row", label = "نوع النغمات"
				, value = {'نغمات'}},
			{type = "row", label = "وسائط متعددة"
				, value = {'الوسائط','وسائط متعددة','media'}},
			{type = "row", label = "تموضع جغرافي"
				, value = {'تموضع جغرافي'}},
			{type = "row", label = "الإدخال"
				, value = {'الإدخال','إدخال',
					'المدخل','مدخل','input'}
				, wikidata = {property = 'P479', conjunction='<br />'},
			},
            {type = 'row' , label = 'المستشعرات' 
				, value = {'مستشعرات','sensors'} 
            	, wikidata = {property = 'P9192', conjunction='<br />'},
            },
		}
		},
		{type = "table", title = "الخصائص", rows = {
			{type = "row", label = "المنصة"
				, value = {'منصة','platform','المنصة'}
				, wikidata= {property = 'P400', conjunction='<br />'}},
			{type = "row", label = '[[وحدة معالجة مركزية|المعالج الرئيسي]]'
				, value = {'معالج','المعالج','المعالج الرئيسي','cpu'}
				, wikidata= {property = 'P880', conjunction='<br />'}},
			{type = "row", label = "معالج رسومي"
				, value = {'معالج رسومي','معالج الرسومات','gpu'}
				,  wikidata= {property = 'P2560', conjunction='<br />'}},
			{type = "row", label ='[[ذاكرة الوصول العشوائي|الذاكرة]]'
				, value = {'الذاكرة','ذاكرة','memory'}
				, wikidata= {property = 'P2928', formatting='unitlinked'}},
			{type = "row", label = "سعة التخزين"
				, value = {'التخزين','سعة التخزين'}
				, wikidata= {property = 'P3559', conjunction='<br />', formatting='unitlinked'}},
			{type = "row", label = "شريحة ذاكرة"
				, value = {'شريحة ذاكرة','memory_card'}
				, wikidata={property = 'P4788', formatting='unitlinked'}},
			{type = "row", label = '[[نظام تشغيل|نظام التشغيل]]'
				, value = {'نظام التشغيل','os'}
				, wikidata= {property = 'P306', conjunction='<br />'}},
			{type = "row", label = "البطارية"
				, value = {'الطاقة','بطارية','battery','البطارية'}, wikidata= {property = 'P618', formatting='unitlinked'}},
			{type = "row", label = "سعة البطارية"
				, value = {'سعة البطارية'}, wikidata={property = 'P4140', formatting='unitlinked'}},
			{type = "row", label = "الاستقلالية"
				, value = {'استقلالية'}},
			{type = "row", label = "الاتصال"
				, value = {'الاتصال','وسائل الإتصالات','وسائل الاتصال'}
				, wikidata= {property = 'P2935',  conjunction='<br />'}},
			{type = "row", label = "اتصالات أخرى"
				, value = {'اتصالات','connectivity'}},
			{type = "row", label = "الشبكات"
				, value = {'شبكات','networks'}},
			{type = "row", label = "الخدمة عبر الإنترنت"
				, value = {'خدمة الإنترنت','خدمات الإنترنت','service'}},
			{type = "row", label = "معدل الامتصاص النوعي"
				, value = {'الامتصاص','absorption'}
				, wikidata={property = 'P7080', formatting='unitlinked'}},
			{type = "row", label = "البصمة الكربونية"
				, value = {'بصمة','footprint'}, wikidata={property = 'P5991'
                            , formatting='table', rowformat='* $0R0 $1', colformat0='unitlinked'
                           , qualifier1='P2928', rowsubformat1='<small><br />$1</small>', colformat1='unitlinked'
                }},
		}
		},
		{type = "table", title = "القياسات", rows = {
			general.dimensions(),			
			{type = "row", label = "الوزن"
				, value = {'الوزن','وزن','weight'}
				, wikidata={property = 'P2067', formatting='unitlinked'}}
		}
		},
		{type = "table", title = "الإصدارات", rows = {
			{type = "row", label = "السلسلة"
				, value = {"السلسلة","سلسلة",'series'}
				, wikidata = { property = 'P179', conjunction='<br />' , showlang = true }},

			{type = "row", label = "[[توافقية مع إصدارات أقدم|التوافق مع إصدارات أقدم]]"
				, value = {'التوافق','compatibility'},
		    },
			{type = 'navbox', inner=true
                    , previousparameter = {"سبقه","سابق","سابقه",'predecessor'}, previousproperty = "P155"
                    , nextparameter = {"تبعه","لاحق","تاليه",'successor'},	nextproperty = "P156"}
			},
	    },
	}
}