وحدة:بطاقة/قالب/فيلم

من ويكيبيديا، الموسوعة الحرة

-- Credits:
-- Original from fr:Module:Infobox/Film
-- forked by وهراني @arwiki
-- Version: 20240407

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

local FormatNumVal= generic.FormatNumVal

return 
	{
    description = "بطاقة تعريفية للأفلام السينمائية والتلفزيونية وما شابهها",
	maincolor = "#ABD2D0",
	wikimod = 'Wikidata.Ca',
	parts = {
		generic.title({icon= "cinema"}),
		{type = 'subtitle', 
			value = {'اسم أصلي','عنوان أصلي','العنوان الأصلي','title_orig','film_name'	}, 
			wikidata= {property = 'P1476', 
				list="notlang",listrank='bestrank',
				conjunction = "<br />", 
				formatting = '$text {{Language icon|NoCat=y|$language}}'},
	        metadata = {
				description = "العنوان الأصلي للفيلم (يفضل إضافة اللغة كذلك)",
				option = "", 
				type = "string",  
				example = "Underworld 2 : Evolution {{لغة وصلة|en}}",
			}
        },
		generic.logo({upright= 0.6}),
		generic.mainimage{ wikidata = {property = {"P3383", "P2716", "P18", "P10"}} },

		{type = "table", title = "معلومات عامة", rows = {
			{type = "row", label = "التصنيف", 
				value = "تصنيف" , 
                wikidata = {
                	property = 'P31' , 
                	formatting='table', rowformat="$0",
                	blacklist0=  "Q11424/Q24869" -- استثناء فيلم وفيلم طويل
				},
		        metadata = {
					description = "تصنيف الفيلم تقنيا : ثلاثي الأبعاد / أنمي / أبيض وأسود ...",
					option = "", 
					type = "string", 
				}
			}, 
			{type = "row", label = "الصنف الفني", 
				value = {'نوع','الصنف','النوع'}, 
				wikidata = { property = 'P136'},
		        metadata = {
					description = "الصنف الفني: غنائي / درامي / وثائقي ..",
					option = "", 
					type = "string", 
					example = "دراما تاريخية"
				}},
			{type = "row", label = "الموضوع", plurallabel = 'المواضيع',
				value = "موضوع" , 
				wikidata = { property = 'P921'},
		        metadata = {
					description = "المواضيع التي يتناولها الفيلم",
					option = "", 
					type = "string",  
					example = "صراع الأجيال"
				}},
			{type = "row", label = "تاريخ الإنتاج",
				value = {'تاريخ الإنتاج','released'},
				wikidata = { property = 'P571' },
		        metadata = {
					description = "سنة إنتاج الفيلم",
					option = "", 
					type = "string",
					example = "2012", 
				}},
			{type = "row", label = "تاريخ الصدور", 
				value = {'تاريخ الصدور','الإصدار'}, 
				wikidata = {
					property = 'P577' , 
					qualifier='P291', qualifier2='P276',
					tablesort='0' , listrank='bestrank',
					formatting = 'table', rowformat='* $0$R0 $1$2',
					rowsubformat1='<br/><small>($1)</small>',
					rowsubformat2='<br/><small>($2)</small>'
				},
		        metadata = {
					description = "تاريخ صدور فيلم",
					option = "", 
					type = "string",
					example = "{{تاريخ صدور فيلم|1959|07}}", 
				}
			}, 
			{type = "row", label = "مدة العرض",
				value = {'مدة الفيلم','مدة العرض','runtime'},
                wikidata = {
                	property = 'P2047' , 
                	formatting = 'table', 
                	rowformat='* $0$R0 $1$2$3', colformat0 = 'unit',
                	qualifier2='P1480', rowsubformat2='<br/><small>($2)</small>',
					qualifier3='P518', rowsubformat3='<br/><small>($3)</small>',
                	qualifier='P291', rowsubformat1='<br/><small>($1)</small>',
				},
		        metadata = {
					description = "مدة عرض الفيلم",
					option = "", 
					type = "string",
					example = "{{وحدة|100|دقيقة}}", 
				}
			}, 
			{type = "row", label = "اللغة الأصلية",
				value = {'لغة الفيلم','اللغة','language'},
				wikidata = {property = 'P364'},
		        metadata = {
					description = "اللغة الأصلية للفيلم",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "العرض",
				value = "عرض" ,
                wikidata = {
                	property = 'P462', formatting='table', rowformat="$0",
                	blacklist0 = "Q22006653" -- عدا الملون
                },
                metadata = {
					description = "استعمال الألوان (ملون أو أبيض وأسود)",
					option = "", 
					type = "string",
					example = "", 
				}
			},
			{type = "row", label = "مأخوذ عن",
				value ={ "عمل أصلي" , "العمل الأصلي" ,'based_on'},
				wikidata = {property = 'P144'},
		        metadata = {
					description = "العمل الذي أخذت منه قصة الفيلم",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "مستوحاة من",
				value ={ "مستوحاة من" ,'inspired by'},
				wikidata ={property = 'P941'},
		        metadata = {
					description = "العمل الذي استوحيت منه قصة الفيلم",
					option = "", 
					type = "string",
					example = "", 
				}},
			
			generic.country({value = {'البلد','بلد الأصل','الدولة','country'}, 
property ='P495 OR P17'}), 
				
			{type = "row", label = "موقع التصوير",
				value = "مواقع التصوير",
				plurallabel = 'مواقع التصوير',
				wikidata = { property = 'P915'},
		        metadata = {
					description = "أماكن تصوير الفيلم",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "صيغة الفيلم",
				value = "صيغة الفيلم",
				wikidata = { property = 'P3803'}, --تجربة
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "فيلم 16 ملم", 
				}},
			generic.awards(),
			generic.website(),
		}},
		{type = "table", title = "الطاقم", rows = {
			{type = "row", label = "المخرج",
				value = {'مخرج',"إخراج",'director'},
				wikidata = { property = 'P57'},
		        metadata = {
					description = "قائمة مخرجي الفيلم",
					option = "", 
					type = "string",
					example = "[[مصطفى العقاد]]", 
				}},
			{type = "row", label = "المخرج المساعد",
				value = {'مخرج مساعد',"المخرج المساعد",'assistant_director'},
				wikidata = { property = 'P5126'},
		        metadata = {
					description = "قائمة المخرجون المساعدون في الفيلم",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "المخرج الفني",
				value = {'مخرج فني',"إخراج فني",'art_director'},
				wikidata = { property = 'P3174'},
		        metadata = {
					description = "قائمة المخرجون الفنيون في الفيلم",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "الكاتب", value = {"كاتب",'writer'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "القصة", value = {"قصة",'story'},
		        metadata = {
					description = "قائمة كتاب قصة الفيلم",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "الحوار",
				value = "حوار", 
				blockers = {"سيناريو وحوار"},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "السيناريو والحوار",	value = "سيناريو وحوار",
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "السيناريو",
				value = {"سيناريو",'screenplay'}, blockers = {"سيناريو وحوار"},
				wikidata = { property = 'P58'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "[[توفيق الحكيم]]", 
				}},
			{type = "row", label = "القصة المصورة ",
				value = "قصة مصورة",
				wikidata = { property = 'P3275'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "الراوي",
				value = {"راوي","الراوي",'narrator'},
				wikidata = { property = 'P2438'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "البطولة",
				value ={ "بطولة",'starring'},
                wikidata = {
                	property = 'P161' , 
                	qualifier = 'P453',
                	formatting='table' , rowformat = '* $0$R0 $1',
                	rowsubformat1='<small><br>في دور: $1</small>'},
		        metadata = {
					description = "قائمة الممثلين البارزين",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "الأصوات",
				value ={ "أصوات",'voice actor'},
                wikidata = {
                	property = 'P725', 
                	formatting='table' , rowformat = '* $0$R0 $1',
                	qualifier2 = 'P407', whitelist2 = 'Q13955', -- فقط العربية  ..
                    qualifier = 'P453 OR P3831', rowsubformat1='<small><br>في دور: $1</small>',
                    blacklist1='Q24037904'  -- استثناء : أصوات أخرى 
				},
                wikidata2 = {
                	property = 'P725', 
                	formatting='table' , rowformat = '* $0$R0 $1',
                	qualifier2 = 'P407', blacklist2 = 'Q150/Q188', --استثناء الفرنسية والألمانية و ..
                    qualifier = 'P453 OR P3831', rowsubformat1='<small><br>في دور: $1</small>',
                    blacklist1='Q24037904'
				},
                wikidata3 = { --لا استثناءات 
                	property = 'P725', 
                	formatting='table' , rowformat = '* $0$R0 $1',
                	qualifier2 = 'P407', 
                    qualifier = 'P453 OR P3831', rowsubformat1='<small><br>في دور: $1</small>' 
				},
		        metadata = {
					description = "قائمة الأصوات البارزين (الأولية للغة العربية )",
					option = "", 
					type = "string",
					example = "", 
				}
			}, 
			{type = "row", label = "الديكور",
				value = {'ديكور','مصمم الإنتاج','production designer'},
				wikidata = { property = 'P2554'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "تصميم الأزياء",
				value = {'أزياء','ملابس'},
				wikidata = { property = 'P2515'},
		        metadata = {
					description = "أسماء مصممي أزياء الفيلم",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "التصوير",
				value = {'سينماتوغرافيا','الإخراج السينمائي','سينماتوغرافيا','تصوير','cinematography'},
				wikidata = { property = 'P344'},
		        metadata = {
					description = "المشرفون على التصوير",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "الموسيقى",
				value = {'موسيقى','music'},
				wikidata = { property = 'P86'},
		        metadata = {
					description = "المشرفون على الموسيقى",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "التركيب",
				value = {'تركيب','مونتاج','editing'},
				wikidata = { property = 'P1040'},
		        metadata = {
					description = "المشرفون على عملية تركيب الفيلم",
					option = "", 
					type = "string",
					example = "", 
				}}
		}},
		{type = "table", title = "صناعة سينمائية", rows = {
			{type = "row", label = "الشركة المنتجة",
				plurallabel = "الشركات المنتجة",
				value = {"استوديو",'studio','production_companies'},
				wikidata = {property = 'P272' , conjunction = '<br />'},
		        metadata = {
					description = "الشركات المنتجة",
					option = "", 
					type = "string",
					example = "[[يونيفرسال بيكشرز]]", 
				}},
			{type = "row", label = "المنتج",
				plurallabel = "المنتجون",
				value ={'منتج','الإنتاج','producer'}, 
				wikidata = { property = "P162"},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "المنتج المنفذ",  
				value = "منتج منفذ",
				wikidata={
					property = 'P1431',qualifier = 'P3831', 
					formatting = 'table',rowformat = '$0$R0 $1',
					rowsubformat1 = '<small>($1)</small>', 
					conjunction ='<br/>'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "التوزيع",
				value = {'موزع','توزيع','distributor'},
				wikidata = { property = 'P750'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "نسق التوزيع",
				value = {'نسق','نسق التوزيع','distribution format'},
				wikidata = { property = 'P437'},
		        metadata = {
					description = "شكل التوزيع (قاعات السينما / دي في دي/انترنت)",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "شبكة البث الأصلية",
				value = "شبكة البث",
				wikidata = { property = 'P449'},
		        metadata = {
					description = "",
					option = "", 
					type = "string",
					example = "", 
				}},
			{type = "row", label = "الميزانية",
				value = {"ميزانية" ,'budget'},
				wikidata = {
					property = 'P2130 or P2769', 
					formatting='unit', case=FormatNumVal},
		        metadata = {
					description = "المبالغ المخصصة للإنتاج (بشكل إجمالي)",
					option = "", 
					type = "string",
					example = "23 مليون دولار أمريكي", 
				}},
			{type = "row", label = "الإيرادات",
				value = {'إيرادات','الإيرادات' , 'gross'},
				wikidata = {
					formatting = 'table',
					property = 'P2142', 
					colformat0 = 'unit', colformat1 = 'Y' , case0=FormatNumVal,
					rowformat = '$0$R0 $1$2$3',
					qualifier = 'P585',
					rowsubformat1 = '<br><small>←($1)</small>}}',
					qualifier2 = 'P3005',
					rowsubformat2 = '<br><small>← $2</small>',
					qualifier3 = 'P1352',
					rowsubformat3 = '<br>{{small|←المرتبة: $3}}',
                    conjunction ="<hr style=\"clear:both;  margin: 4px 30px 4px 30px;\"/>"
				},
		        metadata = {
					description = "حجم الإيرادات المالية بشكل إجمالي",
					option = "", 
					type = "string",
					example = "222 مليون دولار أمريكي", 
				}
			},			
		}
		},
		{type = "table", title = "التسلسل", rows = {
			{type = "row", label = "السلسلة", 
				value = "سلسلة",
				wikidata= { 
					property='P179', formatting='table',
					qualifier='P155', qualifier2 = 'P156', qualifier3 = 'P1545', 
					rowformat = "<div style=\"text-align:center\">$3 $0 $1$2</div>", 
					rowsubformat1 = "<br /><small style=\"float:right\">&rarr; $1</small>" ,
					rowsubformat2 = "<br /><small style=\"float:left\">$2 &larr;</small>",
					rowsubformat3 = "رقم $3 في سلسلة: <br/>",
					shownovalue = "false",
					conjunction ="<hr style=\"clear:both; margin: 10px 30px 10px 30px;\"/>"
	                 },
		        metadata = {
					description = "اسم السلسلة التي ينتمي إليها الفيلم",
					option = "", 
					type = "string",
					example = "[[إكس مان (سلسلة أفلام)|X-Men]] (رقم 2)", 
				}},
			{type = 'navbox' , inner='y',
				previousparameter = "سبقه", previousproperty = "P155",
				nextparameter = "تبعه",	nextproperty = "P156"}
			},
	    },
	}
}