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

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

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}}'}},
		generic.logo({
              imageparameters =  {'علامة_الشركة','شعار','الشعار','logo'}
			, captionparameter = {'تعليق_الشعار','logo_caption'}
			}),
		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'}},
			{type = 'row' 
				, label = 'اللقب',  value = {'لقب'}
				, wikidata = {property = 'P1449', conjunction="<br />"
					,formatting = "$text <small>{{Language icon|NoCat=y|$language}}}</small>", 
					list = 'bestrank'}},
			{type = 'row' 
				, label = 'الاسم التجاري'
				, value ={'اسم_تجاري','trading_name'}
				, wikidata = {property = 'P6427',list = 'bestrank'}},
			{type = 'row' 
				, label = 'سميت باسم'
				, value ={'سميت_باسم','named_after'}
				, wikidata = {property = 'P138'}},
            {type = 'row'
            	, label = 'الشعار النصي'
				, value = {'شعار_الشركة','شعار_نصي', 'slogan', 'motto'}
				, wikidata= {property = 'P1451', conjunction = "<br />"
					,formatting = '$text {{Language icon|NoCat=y|$language}}'}},
			{type = 'row'
				, label = 'الجنسية'
				, value = {'جنسية','الجنسية'}
				, property = 'P17'},

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

			org.subsidiary(),

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

			{type = 'row'
				, label = 'النشاط'
				, plurallabel = 'النشاطات'
				, value ={'النشاط','نشاط'}},
			{type = 'row'
				, label = 'الخدمات'
				, value ={'الخدمات','خدمات','services'}},

			org.products(),

			{type = 'row'
				, label = 'التسجيلات الموسيقية'
				, value ={'تسجيلات','discography'}
				, wikidata={property = 'P358', conjunction='<br />'}},
			{type = 'row'
				, label = 'النوع الفني'
				, value = {'نوع_فني','النوع_الفني','genre'}
				, wikidata={property = 'P136', conjunction='<br />'}},

			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'
			         }} ,

			{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 = 'رأس المال'},
			{type = 'row'
				, label ='[[أصول|الأصول]]'
				, value = {'الأصول','assets'}},
		}},
	}
}