وحدة:بطاقة/قالب/شركة

-- Credits:
-- Original from fr:Module:Infobox/Entreprise
-- forked by وهراني @arwiki (ar:وحدة:بطاقة/قالب/شركة)
-- Version: 20240207

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

local FormatNumVal= generic.FormatNumVal

return 	{
	maincolor = '#A7D4E7',
    wikimod = 'Wikidata.Ca',
 	parts = {
		generic.title({icon='factory'}),
		{type = 'subtitle' ,
			value = {'اسم_الشركة'},
			wikidata= {property = 'P1476 OR P1448 OR P1705',
				listmax = 2,conjunction = "<br />",
				formatting = '$text {{Language icon|NoCat=y|$language}}'},
			metadata = {
				description = "",
				option = "", 
				type = "string", 
			}},
		generic.logo({
            imageparameters =  {'علامة_الشركة','شعار','الشعار','logo'},
			}),
		generic.mainimage(),
		
		{type = 'table', title = 'معلومات عامة', rows = {
			{type = 'row'  ,
				label = 'الاختصار'  ,
				value = {'اختصار','abbreviation'} ,
				wikidata = {property = 'P1813', conjunction="<br />",
					formatting = "$text <small>{{Language icon|NoCat=y|$language}}</small>" ,
					list = 'bestrank'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row' ,
				label = 'اللقب',  value = {'لقب'},
				wikidata = {property = 'P1449', conjunction="<br />",
					formatting = "$text <small>{{Language icon|NoCat=y|$language}}}</small>", 
					list = 'bestrank'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row' ,
				label = 'الاسم التجاري',
				value ={'اسم_تجاري','trading_name'},
				wikidata = {property = 'P6427',list = 'bestrank'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row' ,
				label = 'سميت باسم',
				value ={'سميت_باسم','named_after'},
				wikidata = {property = 'P138'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},

			org.motto(),
			generic.country{
				value = {'جنسية','الجنسية','البلد','بلد'},
			},

			org.dates(),
			
			{type = 'row',
				label = 'النوع',
				value = {'نوع_الشركة','نوع','type'},
				wikidata = {property = 'P31'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = '[[:تصنيف:أنواع الشركات|الشكل القانوني]]',
				value = 'شكل قانوني',
				wikidata = {property = 'P1454', listrank='bestrank'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			org.headquarters(),
			{type = 'row',
				label = 'حلت محل',
				value = {'حلت_محل','عوضت','replaces'},
				wikidata = {property = 'P1365'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'حلت محلها',
				value = {'حلت_محلها','عوضتها','replaced_by'},
				wikidata = {property = 'P1366'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			generic.awards(),
			generic.website(),
		}},
		{type = 'table', title = 'المنظومة الاقتصادية', rows = {			
			org.parent_organization(),
			{type = 'row',
				label = 'الفروع',
				value = {'فرع','الفروع','division'},
				wikidata={property = 'P199'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},

			org.subsidiary(),

			{type = 'row', label = 'الشركاء',
				value = 'شركاء',
				wikidata= { property = 'P2652'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'الوسيط الإعلامي',
				value = 'وسيط إعلامي',
				wikidata={property = 'P2813'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},

			org.brands(),
			org.products(),
		
			{type = 'row',
				label = 'النشاطات',
				value = {'النشاط','نشاط'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'الخدمات',
				value = {'الخدمات','خدمات','services'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'التخصص',
				value = {'تخصص'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'المجموعات',
				value = {'مجموعات'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'عناوين مشهورة',
				value = {'عناوين مشهورة'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'نوع المنشورات',
				value = {'نوع المنشورات'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'لغات النشر',
				value = {'لغة النشر'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'المواضيع',
				value = {'مواضيع'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},

			{type = 'row',
				label = 'التسجيلات الموسيقية',
				value ={'تسجيلات','discography'},
				wikidata={property = 'P358', conjunction='<br />'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			},
			{type = 'row',
				label = 'النوع الفني',
				value = {'نوع_فني','النوع_الفني','genre'},
				wikidata={property = 'P136', conjunction='<br />'},
				metadata = {
					description = "النوع الفني للعمل الإبداعي أو المجال الفني للعمل",
					option = "", 
					type = "string", 
				}
			},

			org.operating_area(),

			{type = 'row' 
				, label = 'الموزعون'
				, value = {'موزع','موزعون','distributor','distributors'}
				, wikidata = { property = 'P750'
					, formatting = 'table'
					, qualifier = ' P17 OR P3005', qualifier2='P1011'
					, rowformat = '* $0$R0 $1',rowsubformat1 = '<small><br />$1</small>'
					, rowsubformat2 = '<small><br />ماعدا: $2</small>', showDate = 'true'
			         },
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
			} ,

			{type = 'succession', inner=1
				, previousparameter = {"سبقه","سابقا","predecessor"}, previousproperty = "P155"
				, nextparameter = {"تبعه","لاحقا","successor"},	nextproperty = "P156"}
		}},
		{type = 'table', title = 'أهم الشخصيات', rows = {
			org.key_people(),
		}},
		{type = 'table', title = 'الإيرادات والعائدات', rows = {
			org.ecosys(),
            {type = 'row',
				label = 'رأس المال',
				value = 'رأس المال',
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
            },
			{type = 'row',
				label ='[[أصول|الأصول]]',
				value = {'الأصول','assets'},
				metadata = {
					description = "",
					option = "", 
					type = "string", 
				}
		}
		}},
	}
}