وحدة:بطاقة/قالب/حاسوب فائق

من أرابيكا، الموسوعة الحرة
اذهب إلى التنقل اذهب إلى البحث

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

local FormatNumVal = general.FormatNumVal

return {
    description = "بطاقة بيانات مختصرة حول حاسوب قائق",
    maincolor = "D5D9ED",
    secondcolor = "5CF8F0",
    wikimod = "Wikidata.Ca",
    parts = {
        general.title({icon = "electro"}),
        {
            type = "subtitle",
            --description = "",
            value = {"اسم_رمزي","codename"},
            wikidata = {property = "P1638"}
        },
        general.logo(),
        general.mainimage {},
        {
            type = "table",
            title = "معلومات عامة",
            rows = {
                {
                    type = "row",
                    description = "غالبا بلد المنشأ",
                    label = "المنشأ",
                    value = {"منشأ","origin"},
                    wikidata = {property = "P495"}
                },
                {
                    type = "row",
                    description = "الشركة أو الجهة المصنعة لهذا الحاسوب",
                    label = "الصانع",
                    value = { "صانع","الصانع","manufacturer"},
                    property = "P176"
                },
                {
                    type = "row",
                    description = "الشخص أو الجهة المصممة لهذا الحاسوب",
                    label = "المصمم",
                    value = {"المصمم", "مصمم", "designer"},
                    wikidata = {property = "P287"}
                },
                {
                    type = "row",
                    description = "الشخص أو الجهة المطورة لهذا الحاسوب",
                    label = "المطور",
                    value = {"المطور"},
                    wikidata = {property = "P178"}
                },
                {
                    type = "row",
                    description = "العائلة التي ينتمي لها الحاسوب",
                    label = "عائلة المنتج",
                    value = {"عائلة","العائلة"},
                    property = "P179"
                },
                {
                    type = "row",
                    description = "الجيل الحالي",
                    label = "الجيل",
                    value = {"جيل","الجيل"}
                    --, wikidata= {property = 'P'}
                },
                {
                    type = "row",
                    description = "تاريخ أول تشغيل",
                    label = "التشغيل",
                    value = {"تشغيل","dates", "تاريخ"},
                    wikidata = {property = "P729 OR P571"}
                },
                {
                    type = "row",
                    description = "المشغلون للحاسوب",
                    label = "المشغلون",
                    value = {"مشغل","operators",  "مشغلون"},
                    wikidata = {property = "P137"}
                },
                {
                    type = "row",
                    description = "مكان تواجد",
                    label = "متواجد في",
                    value = {"مكان","location"}, 
                    wikidata = {property = "P131 OR P276"}
                },
                {
                    type = "row",
                    description = "البلد متواجد فيه",
                    label = "البلد",
                    value = {"بلد","country" },
                    wikidata = {property = "P17"}
                },
                {
                    type = "row",
                    description = "جزء من سلسلة",
                    label = "جزء من",
                    value = {"جزء من", "part_of"},
                    wikidata = {property = "P361"}
                },
                {
                    type = "row",
                    description = "الجهات الراعية للمشروع",
                    label = "الرعاة",
                    value = {"راعي","sponsors", "رعاة" },
                    wikidata = {property = "P859"}
                },
                {
                    type = "row",
                    description = "السعر الوحدة",
                    label = "الثمن",
                    value = {"ثمن", "سعر", "كلفة","cost"},
                    wikidata = {property = "P2284", formatting = "unit", case = FormatNumVal}
                },
                {
                    type = "row",
                    description = "الترتيب العالمي / الجهوي",
                    label = "الترتيب",
                    value = {"ترتيب","ranking"},
                    wikidata = {
                        property = "P1352",
                        formatting = "table",
                        listrank = "bestrank",
                        qualifier = "P447",
                        qualifier2 = "P580",
                        qualifier3 = "P582",
                        rowformat = "* $0$R0 $1$2$3",
                        rowsubformat1 = "<br/><small>حسب :$1</small>",
                        rowsubformat2 = "<br/><small>منذ $2</small>",
                        rowsubformat3 = "<br/><small>حتى $3</small>"
                    }
                },
                {
                    type = "row",
                    description = "مجالات الاستعمال",
                    label = "الاستعمالات",
                    value = {"استعمال", "الهدف","purpose"},
                    wikidata = {property = "P366"}
                },
                general.website(),
                {
                    type = "navbox",
                    --description = "",
                    inner = "y",
                    previousparameter = "سبقه",
                    previousproperty = "P155",
                    nextparameter = "تبعه",
                    nextproperty = "P156"
                }
            }
        },
        {
            type = "table",
            title = "معلومات تقنية",
            rows = {
                {
                    type = "row",
                    description = "وحدة المعالجة المركزية",
                    label = "[[وحدة معالجة مركزية|المعالج]]",
                    value = {"معالج", "المعالج", "cpu"},
                    wikidata = {
                        property = "P880",
                        formatting = "table",
                        qualifier = "P1141",
                        qualifier2 = "P2144",
                        rowformat = "* $0$R0 $1$2",
                        rowsubformat1 = "<br/><small>العدد :$1</small>",
                        rowsubformat2 = "<br/><small>التردد: $2</small>"
                    }
                },
                {
                    type = "row",
                    description = "عدد المعالجات GPU المثبتة",
                    label = "[[وحدة معالجة الرسوميات|GPU]]",
                    value = {"المعالج الرسوميات", "gpu"},
                    wikidata = {
                        property = "P2560",
                        formatting = "table",
                        qualifier = "P1114",
                        qualifier2 = "P2144",
                        rowformat = "* $0$R0 $1$2",
                        rowsubformat1 = "<br/><small>العدد :$1</small>",
                        rowsubformat2 = "<br/><small>التردد: $2</small>"
                    }
                },
                {
                    type = "row",
                    description = "عدد المعالجات CPU المثبتة",
                    label = "عدد المعالجات",
                    value = {"عدد_المعالجات","number_processor"},
                    wikidata = {
                        property = "P1141",
                        formatting = "table",
                        listrank = "bestrank",
                        qualifier = "P518",
                        qualifier2 = "P585",
                        qualifier3 = "P580",
                        rowformat = "* $0$R0$1$2$3",
                        rowsubformat1 = "<br/><small>من $1</small>",
                        rowsubformat2 = "<br/><small>بتاريخ: $2</small>",
                        rowsubformat3 = "<br/><small>منذ $3</small>"
                    }
                },
                {
                    type = "row",
                    description = "الهندسة المعمارية الحاسوبية المعتمدة",
                    label = "المعمارية",
                    value = { "معمارية","architecture"}
                    --, wikidata={property = 'P'}
                },
                {
                    type = "row",
                    description = "كمية الطاقة المستهلكة في المتوسط",
                    label = "استهلاك الطاقة",
                    value = { "طاقة","طاقة كهربائية","power"},
                    wikidata = {
                        property = "P2791",
                        formatting = "table",
                        listrank = "bestrank",
                        qualifier = "P585",
                        rowformat = "* $0$R0$1",
                        colformat0 = "unit",
                        rowsubformat1 = "<br/><small>بتاريخ: $1</small>"
                    }
                },
                {
                    type = "row",
                    description = "نظام التشغيل الذي يدعم الحاسوب",
                    label = "[[نظام التشغيل]]",
                    value = {"نظام","operatingsystem", "os", "OS" },
                    wikidata = {property = "P306"}
                },
                {
                    type = "row",
                    --description = "",
                    label = "الفضاءات",
                    value = {"فضاء","space",  "مساحة"}
                    --, wikidata={property = 'P'}
                },
                {
                    type = "row",
                    description = "السعة الإجمالية للذاكرة",
                    label = "الذاكرة",
                    value = {"ذاكرة","memory"},
                    wikidata = {property = "P2928", formatting = "unit"}
                },
                {
                    type = "row",
                    description = "السعة الإجمالية للتخزين",
                    label = "التخزين",
                    value = {"تخزين","Storage" , "مساحة التخزين"}
                    --, wikidata={property = 'P'}
                },
                {
                    type = "row",
                    description = "السرعات القصوى المسجلة في الحسابات",
                    label = "السرعة",
                    value = {"سرعة","speed"},
                    wikidata = {
                        property = "P7256 or P2052",
                        formatting = "table",
                        listrank = "bestrank",
                        qualifier = "P1013 OR P459",
                        qualifier2 = "P585",
                        rowformat = "* $0$R0$1$2",
                        colformat0 = "unit",
                        rowsubformat1 = "<br/><small>حسب: $1</small>",
                        rowsubformat2 = "<br/><small>بتاريخ: $2</small>"
                    }
                },
                {
                    type = "row",
                    --description = "",
                    label = "الإرث",
                    value = {"إرث","legacy"}
                    --, wikidata={property = 'P'}
                },
                {
                    type = "row",
                    --description = "",
                    label = "المحاكيات",
                    value = {"محاكيات", "emulators"}
                    --, wikidata={property = 'P'}
                }
            }
        }
    }
}