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

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


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

return 	{
 -- شرح مختصر عن وظيفة البطاقة
 description = "بطاقة تعريفية عن معالج حاسوبي",
 -- اللون المستعمل لعنوان البطاقة
 maincolor = '#ccf', 
 -- محتويات البطاقة
 parts = { 
	generic.title({icon="electro"}),
	generic.logo(),
	generic.mainimage(),

	{type = "table", title = "معلومات عامة ", rows = {
		{type = "row", label = "النوع",
				value = {'نوع','الصنف','النوع','type'},
				wikidata = {property = 'P279'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
		{type = "row", label = "الترويج",
			value = {"ترويج","launching"},
			wikidata = {property = 'P6949'},
			metadata = {description = ""},
		},
		{type = "row", label = "إنطلاق الإنتاج",
			value = {"إنطلاق","produced-start","created"},
			wikidata = {
					property = 'P577 OR P571',
					qualifier1='P291', 
					conjunction = "<br />", formatting='table',
					rowformat="$0$R0 $1", 
					rowsubformat1 = "<small><br>&nbsp;&nbsp;في $1</small>"},

			metadata = {description = ""},
		},
		{type = "row", label = "التوقف ",
			value = { "توقف ","produced-end"},
			wikidata = {property = 'P2669'},
			metadata = {description = ""},
		},
		{type = "row", label = "المروج التجاري",
			value = {"مروج","soldby"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "المصمم",
			value = {"مصمم",'designer',"designfirm"},
			wikidata = {property = 'P287'},
			metadata = {description = ""},
		},
		{type = "row", label = "المطور",
			value = {"مطور","developer"},
			wikidata = {property = 'P178'},
			metadata = {description = ""},
		},
		{type = "row", label = "الصانع",
			value = {'صانع','الصانع','manufacturer',"manuf1"},
			wikidata = {property = 'P176'},
			metadata = {description = ""},
		},
		{type = "row", label = "[[معرف وحدة المعالجة المركزية]] code",
			value = {"cpuid"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "Product code",
			value = {"code"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "الاستعمالات",
			value = {"استعمال","used by"},
			wikidata = {property = 'P1535'},
			metadata = {description = ""},
		}
	}},
	{type = "table", title = "الأداء والقوة", rows = {
		{type = "row", label = "[[تردد الساعة (حاسوب)|تردد الساعة]]",
			value = {'تردد الساعة','clock frequency'},
			wikidata={
				property = 'P2149', qualifier="P518",
				formatting = "table", rowformat = "$1 $0$R0 $2",
				qualifier2 = "P459", rowsubformat2  = "<small><br />&nbsp;(حسب $2)</small>",
				colformat0 = "unitcode", conjunction = "<br />"
			},
			metadata = {
				description = "",
				option = "", 
				type = "string", 
			}
		},
		{type = "row", label = "سرعة الناقل الأمامي",
			value = {'FSB_speed',"fsb"},
			wikidata={property = 'P2150',  qualifier="P518",
				formatting = "table", rowformat = "$1 $0$R0 $2",
				qualifier2 = "P459", rowsubformat2  = "<small><br />&nbsp;(حسب $2)</small>",
				colformat0 = "unitcode", conjunction = "<br />"
			},
			metadata = {
				description = "",
				option = "", 
				type = "string", 
			}
		},

		{type = "row", label = "سرعات [[تقنية الربط الفائق|الربط الفائق]]",
			value = {"hypertransport-slowest"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "سرعات [[Intel QuickPath Interconnect|QPI]]",
			value = {"qpi"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "سرعات [[Direct Media Interface|DMI]]",
			value = {"dmi"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "Data width",
			value = {"data-width"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "Address width",
			value = {"address-width"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "Virtual address width",
			value = {"virtual-width"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		generic.dimensions(),
	}},
	{type = "table", title = "Cache ", rows = {
		{type = "row", label = "L1 [[ذاكرة وحدة المعالجة المركزية|ذاكرة]]",
			value = {"l1cache"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "ذاكرة L2",
			value = {"l2cache"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "ذاكرة L3",
			value = {"l3cache"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "ذاكرة L4",
			value = {"l4cache"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "آخر مستويات الذاكرة",
			value = {"llcache"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		}
	}},
	{type = "table", title = "البنية والتصنيف", rows = {
		{type = "row", label = "التطبيقات",
			value = {"application"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "[[تصنيع مكونات من أشباه الموصلات|تقنية التصنيع]]",
			value = { "تقنية التصنيع","fabrication","size"},
			wikidata = {property = 'P2079'},
			metadata = {description = "التكنولوجيا المستعملة في التصنيع"},
		},
		{type = "row", label = "[[البنية الدقيقة (علم الحاسوب)|العمارة الدقيقة ]]",
			value = {"عمارة دقيقة","بنية دقيقة","microarch"},
			wikidata = {property = 'P6889'},
			metadata = {description = ""},
		},
		{type = "row", label = "[[مجموعة تعليمات]]",
			value = {"مجموعة التعليمات","arch"},
			wikidata = {property = 'P1068'},
			metadata = {description = ""},
		},
		{type = "row", label = "التعليمات",
			value = {"تعليمات","instructions"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "الإضافات",
			value = {"الإضافات","extensions"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "عدد التعليمات",
			value = {"عدد التعليمات","numinstructions"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
	}},
	{type = "table", title = "المواصفات التقنية", rows = {
		{type = "row", label = "عدد ترانزستورات",
			value = {'ترانزستورات',"transistors"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
	
		{type = "row", label = "المكونات",
			value = {"مكونات","parts"},
			wikidata = {
				property = 'P527',
				formatting="table",
				rowformat="* $0$R0$1$2$3",
				qualifier1="P1141", 
				rowsubformat1 = "<small><br />عدد الأنوية: $1</small>",
				qualifier2="P2149", colformat2='unitcode',
				rowsubformat2 = "<small><br />تردد الساعة: $2</small>",
				qualifier3 = 'P1068', 
				rowsubformat3 = "<small><br />حزمة التعليمات: $3</small>",
			},
			metadata = {description = ""},
		},
		{type = "row", label = "[[معالج متعدد النوى|الأنوية]]",
			value = {"cores"},
			wikidata={
					property = 'P527', qualifier='P1141' , 
					whitelist0='Q591707', formatting='table', rowformat='$1' 
				},
				wikidata2={
					property = 'P1141'
				},

			metadata = {description = ""},
		},
		{type = "row", label = "[[ذاكرة الوصول العشوائي]]",
			value = {"ذاكرة","memory"},
			wikidata = {property = 'P2928', formatting='unitlinked'},
			metadata = {description = ""},
		},
		{type = "row", label = "[[وحدة معالجة الرسوميات|معالج رسوميات]] ",
			value = {"معالج رسوميات","gpu"},
			wikidata = {property = 'P2560'},
			metadata = {description = ""},
		},
		{type = "row", label = "[[Co-processor|مساعد المعالج]]",
			value = {"مساعد","co-processor"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "Package",
			value = {"pack"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "المقبس",
			value = {"مقبس","socket"},
			wikidata = {property = 'P1041'},
			metadata = {description = "المقبس المدعوم"},
		},
	}},
	{type = "table", title = "الإنتاج - الموديلات", rows = {
		{type = "row", label = "Core&nbsp;name",
			value = {"core1"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "Product code name",
			value = {"pcode"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "الموديلات",
			value = {"موديل","model"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
		{type = "row", label = "العلامة التجارية",
			value = {"علامة",'ماركة',"brand"},
			wikidata = {property = 'P1716'},
			metadata = {description = ""},
		},
		{type = "row", label = "Variant",
			value = {"variant"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
	}},
	{type = "table", title = "تاريخ السلسلة", rows = {
		{type = "row", label = "جزء من",
			value = {"جزء من","part of"},
			wikidata = {
				property = 'P361',
				formatting='table',
				rowformat = "$0$R0$1$2",
				qualifier1 = "P155", rowsubformat1="<small><br />سبقه : $1</small>",
				qualifier2 = "P156", rowsubformat2="<small><br />لحقه : $2</small>"
			},
			metadata = {description = ""},
		},
		{type = 'navbox', 
            previousparameter = {"سبقه","سابق","سابقه",'predecessor'}, 
            previousproperty = "P155",
            nextparameter = {"تبعه","لاحق","تاليه",'successor'},	
            nextproperty = "P156"
		},
	}},
	{type = "table", title = "حالة الدعم", rows = {
		{type = "row1col", 
			value = {"حالة الدعم","support_status"},
			--wikidata = {property = 'P'},
			metadata = {description = ""},
		},
	}}
}
}