وحدة:بطاقة/أدوات/منظمة

من ويكيبيديا، الموسوعة الحرة
-- Credits:
-- Original from fr:Module:Infobox/Fonctions/Organisation
-- forked an developed by وهراني @arwiki (ar:وحدة:بطاقة/أدوات/منظمة)
-- Version: 20240325

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

local FormatNumVal = generic.FormatNumVal

local org = {}

org.motto = generic.motto

function org.dates()
    return {
        type = "multi",
        description = "تواريخ مهمة",
        rows = {
            {
                type = "row",
                label = "التأسيس",
                value = {"تاريخ_التأسيس", "founded", "تأسيس"},
                wikidata = {wikimod = "Wikidata.Ca", property = "P571"},
                metadata = {
					description = "تاريخ التأسيس",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "الاختفاء",
                value = {"تاريخ_الاختفاء", "defunct", "المصير", "fate"},
                wikidata = {wikimod = "Wikidata.Ca", property = "P576"},
                metadata = {
					description = "تاريخ الاختفاء",
					option = "", 
					type = "", 
                }
            }
        }
    }
end

function org.headquarters()
    return {
        type = "row",
        label = "المقر الرئيسي",
        value = {"المقر_الرئيسي", "مقر", "hq_location"},
        wikidata = {
            wikimod = "Wikidata.Ca",
            property = "P159",
            formatting = "table",
            listrank = "bestrank",
            qualifier = "P17",
            qualifier2 = "P625",
            rowformat = "$0$R0$1$2",
            colformat1 = "<br /><small>{{Flag|$1}}</small>",
            colformat2 = "<br /><small>[[file:GNOME Maps.svg|20x20px|link=]] {{Map draw| class = no-icon| type=maplink|$lat,$lon|zoom=6|text=على الخريطة}}</small>"
        },
        metadata = {
            description = "المقر الرئيسي",
            option = "", 
            type = "", 
        }
    }
end

function org.parent_organization()
    return {
        type = "row",
        label = "الشركة الأم",
        value = {"الشركة الأم", "الشركة_الأم", "parent"},
        wikidata = {
            wikimod = "Wikidata.Ca",
            property = "P749",
            listrank = "bestrank",
            showDate = "true",
            conjunction = "<br />"
        },
        metadata = {
            description = "",
            option = "", 
            type = "", 
        }
    }
end

function org.subsidiary()
    return {
        type = "row",
        label = "[[شركة تابعة|الشركات التابعة]]",
        value = {"الشركات_التابعة", "subsidiary"},
        wikidata = {
            wikimod = "Wikidata.Ca",
            property = "P355",
            qualifier = "P1107",
            listrank = "bestrank",
            formatting = "table",
            rowformat = "* $0$R0$1",
            colformat1 = "raw",
            rowsubformat1 = "<small><br />($1)</small>",
            colformat1 = "unit"
        },
        metadata = {
            description = "الشركات التابعة",
            option = "", 
            type = "", 
        }
    }
end

function org.key_people()
    return {
        type = "multi",
        description = "شخصيات مهمة",
        rows = {
            {
                type = "row",
                label = "المالك",
                plurallabel = "الملاك",
                value = {"المالك", "owners", "owner"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P127",
                    showDate = "true",
                    qualifier = "P1107",
                    listrank = "bestrank",
                    formatting = "table",
                    rowformat = "* $0$R0$1",
                    colformat1 = "raw",
                    rowsubformat1 = "<small><br />($1)</small>",
                    colformat1 = "unit"
                },
                metadata = {
                    description = "الهيئات أو الأشخاص المالكة",
                    option = "suggested", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "المؤسس",
                plurallabel = "المؤسسون",
                value = {"المؤسس", "مؤسس", "founder"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P112",
                    listrank = "bestrank",
                    conjunction = "<br>"
                },
                metadata = {
                    description = "الأشخاص المؤسسون",
                    option = "suggested", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "المدير التنفيذي",
                plurallabel = "المدراء التنفيذيون",
                value = {"مدير تنفيذي", "رئيس تنفيذي","المدير التنفيذي", "الرئيس التنفيذي", "chief_executive", "ceo"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P169",
                    showDate = "true",
                    listrank = "bestrank",
                    conjunction = "<br>"
                },
                metadata = {
                    description = "المدير التنفيذي",
                    option = "", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "الرئيس",
                plurallabel = "الرؤساء",
                value = {"رئيس", "chairperson"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P488", 
                    qualifier1="P39", blacklist1="Q61061",
                    showDate = "true", sorttype= "chronological",
                    listrank = "bestrank",
                    conjunction = "<br>"
                },
                metadata = {
                    description = "",
                    option = "", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "المدير",
                plurallabel = "المدراء",
                value = {"مدير", "director"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P1037",
                    showDate = "true",
                    listrank = "bestrank",
                    conjunction = "<br>"
                },
                metadata = {
                    description = "",
                    option = "", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "الأمين العام",
                value = {"أمين عام", "secretary general"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P3975",
                    list = "firstrank",
                    separator = "<br/>",
                    showDate = "true"
                },
                metadata = {
                    description = "",
                    option = "", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "العميد",
                value = {"عميد", "rector"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P1075",
                    list = "bestrank",
                    formatting = "table",
                    tablesort = "1",
                    showDate = "true"
                },
                metadata = {
                    description = "",
                    option = "", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "أهم الشخصيات",
                value = {"أهم_الشخصيات", "قادة_الشركة", "key_people"},
                metadata = {
                    description = "",
                    option = "", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "الموظفون",
                value = "عدد_الموظفين",
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P1128",
                    showDate = "true",
                    listrank = "bestrank",
                    conjunction = "<br>"
                },
                metadata = {
                    description = "عدد الموظفين",
                    option = "suggested", 
                    type = "number", 
                }
            }
        }
    }
end

function org.ecosys()
    return {
        type = "multi",
        description = "بيانات اقتصادية",
        rows = {
            {
                type = "row",
                label = "البورصة",
                value = {"الرمز_في_البورصة", "متداولة_كـ", "traded_as"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P414",
                    qualifier = "P249",
                    formatting = "table",
                    rowformat = "* $0$R0$1",
                    rowsubformat1 = "<small>&nbsp;($1)</small>"
                },
                metadata = {
                    description = "الرمز في البورصة",
                    option = "suggested", 
                    type = "string", 
                }
            },
            {
                type = "row",
                label = "[[إيراد|العائدات]]",
                value = {"العائدات", "إيرادات", "دخل", "revenue"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    showDate = "true",
                    listrank = "bestrank",
                    conjunction = "<br>",
                    property = "P2139",
                    colformat0 = "unitlinked",
                    case = FormatNumVal
                },
                metadata = {
                    description = "العائدات المالية السنوية",
                    option = "suggested", 
                    type = "number", 
                }
            },
            {
                type = "row",
                label = "[[صافي الدخل|الربح الصافي]]",
                value = {"الربح الصافي", "صافي_الأرباح"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P2295",
                    showDate = "true",
                    listrank = "bestrank",
                    conjunction = "<br>",
                    colformat0 = "unitlinked",
                    case = FormatNumVal
                },
                metadata = {
                    description = "الربح الصافي السنوي",
                    option = "", 
                    type = "", 
                }
            },
            {
                type = "row",
                label = "رسملة السوق",
                value = {"رسملة", "capitalization"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P2226",
                    showDate = "true",
                    listrank = "bestrank",
                    conjunction = "<br>",
                    colformat0 = "unitlinked",
                    case = FormatNumVal
                },
                metadata = {
                    description = "",
                    option = "", 
                    type = "", 
                }
            },
            {
                type = "row",
                label = "الدخل التشغيلي",
                value = {"الدخل_التشغيلي", "operating_income", "operating income"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P3362",
                    showDate = "true",
                    listrank = "bestrank",
                    conjunction = "<br>",
                    colformat0 = "unitlinked",
                    case = FormatNumVal
                },
                metadata = {
                    description = "",
                    option = "", 
                    type = "", 
                }
            },
            {
                type = "row",
                label = "[[دين (اقتصاد)|إجمالي الدَيْن]]",
                value = {"دين", "debt"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P2133",
                    showDate = "true",
                    listrank = "bestrank",
                    conjunction = "<br>",
                    colformat0 = "unitlinked",
                    case = FormatNumVal
                },
                metadata = {
                    description = "",
                    option = "", 
                    type = "", 
                }
            }
        }
    }
end

function org.operating_area()
    return {
        type = "row",
        label = "مناطق الخدمة",
        value = {"منطقة_الخدمة", "مناطق_الخدمة", "area_served", "region_served", "region"},
        wikidata = {property = "P2541"},
        metadata = {
            description = "المنطقة الجغرافية أو الولاية القضائية التي تعمل فيها منظمة أو شركة ما أو تخدمها أو تتحمل مسؤوليتها",
            option = "suggested", 
            type = "string", 
        }
    }
end

function org.brands()
    return {
        type = "row",
        label = "العلامة التجارية", plurallabel = "العلامات التجارية",
        value = {"علامة تجارية", "ماركة", "brand", "brands"},
        wikidata = {property = "P1716"},
        metadata = {
            description = "العلامة التجارية التي تمتلكها",
            option = "suggested", 
            type = "string", 
        }
    }
end

function org.products()
    return {
        type = "multi",
        description = "الإنتاج الصناعي",
        rows = {
        	{
		        type = "row",
		        label = 'الصناعة' ,
		        value = {'صناعة','الصناعة','industry' }, 
		        wikidata= {property = "P452"},
		        metadata = {
		            description = "",
		            option = "suggested", 
		            type = "", 
		        }
		    },
        	{
		        type = "row",
		        label = "المنتجات",
		        value = {"المنتجات", "منتجات", "products"},
		        wikidata= {property = "P1056"},
		        metadata = {
		            description = "",
		            option = "suggested", 
		            type = "", 
		        }
		    },
        	{
		        type = "row",
		        label = 'الإنتاج' , 
		        value = {'إنتاج','production'} ,
		        wikidata= {
		        	wikimod = "Wikidata.Ca",
		        	property = 'P2746', 
		        	colformat0='unitcode', 
		        	showDate='true',
		        	conjunction='<br />'
		        },
		        metadata = {
		            description = "كمية الإنتاج السنوي",
		            option = "suggested", 
		            type = "", 
		        }
		    },
		 }
	}
end

function org.politics()
    return {
        type = "multi",
        description = "توجهات سياسية ",
        rows = {
        	{
		        type = "row",
		        label = "[[إيديولوجيات سياسية|الأيديولوجيا]]", 
		        value = {"الأيديولوجيا", "أيديولوجيا", "الإيديولوجية", "ideology"},
		        wikidata= {property = "P1142"},
		        metadata = {
		            description = "",
		            option = "", 
		            type = "", 
		        }
		    },
        	{
		        type = "row",
		        label = "الانحياز السياسي",
		        value = {'تموقع', 'تموقع سياسي','انحياز سياسي'},
		        wikidata= {property = "P1387"},
		        metadata = {
		            description = "",
		            option = "suggested", 
		            type = "", 
		        }
		    },
		 }
	}
end

return org