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

-- Credits:
-- Original from ar:وحدة:بطاقة/قالب/سيارة
-- developed by وهراني @arwiki
-- Version: 20240308

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

return 	{
	maincolor = '#80B0E0',
	thirdcolor = '#FFFFFF',
	secondcolor = '#B4B9C3',
	wikimod = 'Wikidata.Ca',
 	parts = {
		generic.title({icon='automobile'}),
		{type = 'subtitle', value = {'الاسم_الأصلي'}, 
			wikidata= {
				property = 'P1559',
				list = 2,listrank='bestrank', 
				conjunction = "<br />", 
				formatting = '$text {{Language icon|NoCat=y|$language}}'
			},
	        metadata = {
				description = "",
				option = "",  -- required / suggested
				type = "string", -- number/boolean/date/url/wiki-file-name/line/content
				example = "", 
				suggestedvalues = {},
				autovalue = "",
				default = ""
			}
		},
		generic.logo(),
		generic.mainimage(),
		{type = 'table', title = 'معلومات عامة', rows = {
			{type = 'row', label = 'النوع', 
				value = {'نوع','type'}, 
				wikidata= {property = 'P31',list = 2, conjunction = "<br />"},
		        metadata = {
					description = "النوع",
					option = "", 
					type = "string",
					example = "سيارة | حافلة | شاحنة", 
				}
			},
            {type = 'row', label = 'الاسم الشائع', 
            	value = {'الاسم_الشائع'},
		        metadata = {
					description = "الأسماء الشائعة للسيارة",
					option = "", 
					type = "string",
				}
            },
            {type = 'row', label = 'أسماء أخرى', 
            	value = {'أسماء_أخرى','aka'},
				wikidata= {property = 'P4970', list = 4, conjunction = "<br />"},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
				}
            },
            {type = 'row', label = 'رمز الطراز', 
            	value = {'رمز','model_code'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "{{ubl | SP2 (كويا الجنوبية) | SP2i (الهند) | SP2c (الصين)}}", 
				}
            },
            {type = 'row', label = '[[تصنيف السيارات|الفئة]]', 
            	value = {'فئة','الفئة','class'}, 
            	wikidata = {property = 'P279  OR P179',list = 2,  conjunction = "<br />",},
		        metadata = {
					description = "(راجع: [[تصنيف السيارات]])",
					option = "", 
					type = "string",
					example = "سيارة طرق وعرة", 
				}
            },
            {type = 'row', label = 'سنوات الطراز', 
            	value = {'سنوات_الطراز','model_years'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "2010–الآن", 
				}
            },
            {type = 'row', label = 'الشركة الأم', 
            	value = {'شركة أم', 'الشركة_الأم','factory'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'العلامة التجارية', 
            	value = {'علامة','brand'}, 
            	wikidata = {property = 'P1716'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
			{type = 'row', label = '[[قائمة مصنعي السيارات|المصنع]]'
				, value = {'مصنع','manufacturer','المصنع'}
				, wikidata = {property = 'P176'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
			},
			{type = 'row', label = 'البلد', 
				value = {'البلد','بلد','country'}, 
				wikidata = {property = 'P495 OR P17'},
		        metadata = {
					description = "بلد منشأ السيارة",
					option = "", 
					type = "string",
					example = "", 
				}
			},
            {type = 'row', label = 'الإنتاج', 
            	value = {'إنتاج','الإنتاج','production'}, 
            	wikidata = {property = 'P1092'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'التجميع', 
            	value = {'تجميع','التجميع','assembly'}, 
            	wikidata = {property = 'P1071'},
		        metadata = {
					description = "مكان تجميع السيارة",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'المصمم', 
            	value = {'مصمم','المصمم','designer'}, 
            	wikidata = {property = 'P287'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'التصميم', 
            	value = {'تصميم', 'التصميم','layout'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            generic.website(),
		}},
		{type = 'table', title = 'المحرك وناقل الحركة', rows = {

            {type = 'row', label = 'الطاقة', 
            	value = {'الطاقة'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'المحرك', 
            	value = {'محرك','المحرك','engine'}, 
            	wikidata = {
            		property = 'P516', formatting='table', 
            		qualifier= 'P1114', rowformat = "$0 $1", 
            		rowsubformat1 = "<small><br/>(عدد: $1)<small>"},
		        metadata = {
					description = "نوع المحرك المركب على السيارة",
					option = "", 
					type = "string",
					example = "{{convert|350|cuin|0|abbr=on|order=flip}} ''Gamma'' [[V8 engine|V8]] (gasoline)", 
				}
            },
            {type = 'row', label = 'الموتور', 
            	value = {'موتور','الموتور','motor'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "Three-phase [[AC induction motor]]", 
				}
            },
            {type = 'row', label = 'وضع المحرك', 
            	value = {'وضع_المحرك'},
		        metadata = {
					description = "موقع المحرك في السيارة",
					option = "", 
					type = "string",
					suggestedvalues = {"أمامي","خلفي"}, 
				}
            },
            {type = 'row', label = '[[سعة المحرك]]', 
            	value = {'سعة_المحرك'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "2 996 cm3", 
				}
            },
            {type = 'row', label = '[[قدرة (فيزياء)|القوة]]', 
            	value = {'قوة','القوة','power'},
            	wikidata = { property = 'P2109', formatting='unit',  conjunction = "<br />" },
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "200 ch", 
				}
            },
            {type = 'row', label = '[[عزم الدوران|العزم]]', 
            	value = {'عزم','العزم'},
            	wikidata={property = 'P2230', formatting='unit',  conjunction = "<br />"},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "280 Nm", 
				}
            },
            {type = 'row', label = 'الحركة', 
            	value = {'حركة','الحركة','transmission'},
		        metadata = {
					description = "نظام الدفع (أمامي أو خلفي)",
					option = "", 
					type = "string",
					suggestedvalues = {"دفع أمامي","دفع خلفي",}, 
				}
            },
            {type = 'row', label = '[[علبة سرعة|ناقل الحركة]]', 
            	value = {'ناقل_الحركة'},
		        metadata = {
					description = "صنف ناقل الحركة",
					option = "", 
					type = "string",
					suggestedvalues = {"يدوية","ألية","نصف-ألية"},
				}
            },
            {type = 'row', label = '[[منظومة حركة]]', 
            	value = {'منظومة_حركة'}
            },
            {type = 'row', label = 'الدفع', 
            	value = {'دفع','الدفع', 'propulsion'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'مجموعة نقل القدرة', 
            	value = {'مجموعة نقل القدرة','drivetrain'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'البطارية', 
            	value = {'بطارية','البطارية','battery'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'المدى', 
            	value = {'مدى','المدى','range'},
            	wikidata={property = 'P2073', formatting='unit'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'المدى الكهربائي', 
            	value = {'مدى كهربائي','المدى الكهربائي', 'electric_range'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'الشحن', 
            	value = {'شحن','الشحن','charging'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'الوحدة', 
            	value = {'وحدة','الوحدة','module'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
		}},
		{type = 'table', title = 'الوزن والأداء', rows = {
            {type = 'row', label = 'الوزن', 
            	value = {'وزن','الوزن','weight'},
            	wikidata={property = 'P2067', formatting='unit'},
		        metadata = {
					description = "وزن السيارة (فارغة)",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'السرعة القصوى', 
            	value = {'سرعة_قصوى','السرعة القصوى'},
            	wikidata= {property = 'P2052', formatting='unit'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = '[[التسارع]] <br /><small>من 0 إلى 100 كم/س</small>'
            	, value = {'تسارع','التسارع'},
		        metadata = {
					description = "مدة بلوغ من 0 إلى 100 كم/س",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'استهلاك الوقود', 
            	value = {'استهلاك','الاستهلاك'},
            	wikidata = {property = 'P2292', formatting='unit'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'انبعاث [[ثاني اكسيد الكربون]]', 
            	value = {'انبعاث_ثاني_اكسيد_الكربون'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'خزان الوقود', 
            	value = {'خزان','خزان_الوقود'},
		        metadata = {
					description = "سعة خزان الوقود",
					option = "", 
					type = "string",
					example = "", 
				}
            },
		}},
		{type = 'table', title = 'الهيكل والجسم', rows = {
            {type = 'row', label = '[[تصنيف السيارات|الشكل]]', 
            	value = {'شكل','الشكل','body_style'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = '[[هيكل قاعدي|الهيكل]]', 
            	value = {'هيكل','شكل_الهيكل','chassis'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'عدد الأبواب', 
            	value = {'أبواب','عدد الأبواب','doors'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "4 أبواب (sedan)", 
				}
            },
            {type = 'row', label = 'عدد المقاعد', 
            	value = {'مقاعد','عدد المقاعد','seats'}, 
            	wikidata = {
            		property = 'P2670', formatting='table', 
            		qualifier= 'P1114', rowformat = "$1", 
            		whitelist0="Q2207370"},
		        metadata = {
					description = "عدد المقاعد القانونية",
					option = "", 
					type = "string",
					example = "5 مقاعد (sedan)", 
				}
            },
            {type = 'row', label = '[[معامل السحب]]', 
            	value = {'معامل_السحب'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = '[[تعليق (مركبات)|نظام التعليق]]', 
            	value = {'نظام_التعليق'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = '[[المقود]]', 
            	value = {'مقود','المقود'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'الفرامل', 
            	value = {'فرامل','الفرامل'},
		        metadata = {
					description = "آلية الفرملة",
					option = "", 
					type = "string",
					suggestedvalues = {"هيدرولكية","هوائية","ميكانيكية ","كهربائية"} 
				}
            },
            {type = 'row', label = 'المنصة', 
            	value = {'منصة','المنصة','platform'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'نوع الأرضية', 
            	value = {'نوع الأرضية','floortype'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'مرتبط ', 
            	value = {'مرتبط','related'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
		}},
		{type = 'table', title = 'نظام التعليق', rows = {
            {type = 'row', label = 'التعليق الخلفي', 
            	value = {'التعليق الخلفي','front_suspension'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'التعليق الأمامي', 
            	value = {'التعليق الأمامي','rear_suspension'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
		}},
		{type = 'table', title = 'الأبعاد', rows = {
            {type = 'row', label = 'قاعدة الإطارات', 
            	value = {'قاعدة','قاعدة_الإطارات','wheelbase'}, 
            	wikidata={property = 'P3039', formatting='unit'},
		        metadata = {
					description = "المسافة بين محوري الإطار الأمامي والخلفي",
					option = "", 
					type = "string",
					example = "{{ubl | {{convert|2766|mm|in|1|abbr=on}} (صغيرة) | {{convert|2766|mm|in|1|abbr=on}} (عائلية) }}", 
				}
            },
            {type = 'row', label = 'مقاس الإطارات', 
            	value = {'إطارات','مقاس_الإطارات'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}
            },
            {type = 'row', label = 'الطول', 
            	value = {'طول','الطول','length'}, 
            	wikidata={property = 'P2043', formatting='unit'},
		        metadata = {
					description = "الطول بالمليمتر",
					option = "", 
					type = "string",
					example = "{{convert|4643|mm|in|1|abbr=on}}", 
				}
            },
            {type = 'row', label = 'العرض', 
            	value = {'عرض','العرض','width'}, 
            	wikidata={property = 'P2049', formatting='unit'},
		        metadata = {
					description = "العرض بالمليمتر",
					option = "", 
					type = "string",
					example = "{{convert|1806|mm|in|1|abbr=on}}", 
				}
            },
            {type = 'row', label = 'الارتفاع', 
            	value = {'ارتفاع','الارتفاع','height'}, 
            	wikidata={property = 'P2048', formatting='unit'},
		        metadata = {
					description = "الارتفاع بالمليمتر",
					option = "", 
					type = "string",
					example = "{{convert|1410|mm|in|1|abbr=on}}", 
				}
            },
		}},
		{type = 'navbox', 
			previousparameter = {"سبقها","سابقا","predecessor"}, previousproperty = "P155",
			nextparameter = {"يليها","لاحقا","successor"},	nextproperty = "P156"
		}
	}
}