منځپانگې ته ورتلل

چلنوال:ب.ص.م/بطاقة/فيلم

د ويکيپېډيا، وړیا پوهنغونډ له خوا

لاسوند لپاره ددې موډيول کېدای شي په چلنوال:ب.ص.م/بطاقة/فيلم/لاسوند کې وي

local general =  require( 'Module:ب.ص.م/أدوات' )
local localdata = require 'Module:ب.ص.م/بيانات'

local function getSerieInfo(item)
	
    return require("Module:Wikidata.Ca").claim(  { item=item.id ,property='P179' , formatting='table'
      , qualifier='P155'  , qualifier2 = 'P156', qualifier3 = 'P1545'
      , rowformat = "<center>$3 $0 $1 $2</center>"
      , rowsubformat1 = "<br/>سبقه : $1" 
      , rowsubformat2 = "<br/>تلاه : $2"
      , rowsubformat3 = "رقم $3 في سلسلة: <br/>"
      , shownovalue = "false"
      , separator ="<hr>"
      , query='num'
    }) 
end

return 
	{
	maincolor = "#ABD2D0",
	parts =
    	{
			general.title( "cinema"),
			{type = 'subtitle', value = {'عنوان أصلي','العنوان الأصلي','title_orig','film_name'		}, 
				wikidata= {property = 'P1476',numval = 2, conjtype = 'new line', showlang = true}},
			general.logo(),
			general.mainimage{ 
				--cat = "Article à illustrer Arts et culture",
				--defaultimage = "Defaut 2.svg", 
				--wikidata = {property = {"P3383", "P2716", "P18", "P10"}, numval = 1}
				},
		{type = "table", title = "معلومات عامة", rows = {
			{type = "row", label = "التصنيف"
				, value = "تصنيف" 
                , wikidata = {property = 'P31' , excludevalues = "Q11424,Q24869"}},
			{type = "row", label = "الصنف الفني"
				, value = {'الصنف','النوع','نوع'}
				, property = 'P136'},
			{type = "row", label = "الموضوع",
				value = "موضوع" 
				, plurallabel = 'المواضيع'
				, property = 'P921'},
			{type = "row", label = "تاريخ الانتاج"
				, value = {'تاريخ الانتاج','released'}
				, wikidata = {property = 'P571' , sorttype = 'chronological' , numval = 1 }},
			{type = "row", label = "تاريخ الصدور"
				, value = {'تاريخ الصدور','الإصدار'}
				, wikidata = {property = 'P577' , conjtype = '<br>' , sorttype = 'chronological' , showqualifiers = {'P291'} }}, -- +P276
			{type = "row", label = "مدة العرض"
				, value = {'مدة الفيلم','مدة العرض','runtime'}
                , wikidata = {property = 'P2047' , showunit = 'long' }},
			{type = "row", label = "اللغة الأصلية"
				, value = {'لغة الفيلم','اللغة','language'}
				, property = 'P364'},
			{type = "row", label = "العرض"
				, value = "عرض" 
                , wikidata = {property = 'P462' , excludevalues = "Q22006653"}},
			{type = "row", label = "مأخوذ عن"
				, value ={ "العمل الأصلي" ,'based_on'}
				, property = 'P144'},
			{type = "row", label = "البلد"
				, value = {'البلد','بلد الأصل','الدولة','country'} 
                , wikidata = { property = 'P495', conjtype = '<br>' } }, 
			{type = "row", label = "موقع التصوير"
				, value = "مواقع التصوير"
				, plurallabel = 'مواقع التصوير'
				, property = 'P915'},
			{type = "row", label = "صيغة الفيلم"
				, value = "صيغة الفيلم"
				, property = 'P3803'}, --تجربة
			{type = "row", label = "الجوائز"
				, value = "جوائز" 
				, wikidata = {property = 'P166', showqualifiers='P1686', sorttype = 'chronological',conjtype = '<br>' , rank='all',['value-module']='Wikidata2/otheruse', ['value-function']='awards'}},
			--person.awards(),
			},
			general.website(),
		},
		{type = "table", title = "الطاقم", rows = {
			{type = "row", label = "المخرج"
				, value = {'مخرج',"إخراج",'director'}
				, property = 'P57'},
			{type = "row", label = "المخرج المساعد"
				, value = {'مخرج مساعد',"المخرج المساعد",'assistant_director'}
				, property = 'P5126'},
			{type = "row", label = "الكاتب"
				, value = {"كاتب",'writer'}},
			{type = "row", label = "القصة"
				, value = {"قصة",'story'}},
			{type = "row", label = "الحوار"
				, value = "حوار"},
			{type = "row", label = "السيناريو والحوار"
				, value = "سيناريو وحوار"},
			{type = "row", label = "السيناريو"
				, value = {"سيناريو",'screenplay'}
				, property = 'P58'},
			{type = "row", label = "القصة المصورة "
				, value = "قصة مصورة"
				, property = 'P3275'},
			{type = "row", label = "الراوي"
				, value = {"راوي","الراوي",'narrator'}
				, property = 'P2438'},
			{type = "row", label = "البطولة"
				, value ={ "بطولة",'starring'}
                , wikidata = {property = 'P161' , conjtype = '<br>', numval = 10}},
			{type = "row", label = "الأصوات"
				, value ={ "أصوات",'voice actor'}
                , wikidata = {property = 'P725' , conjtype = '*' }},
			{type = "row", label = "الديكور"
				, value = {'مصمم الإنتاج','production designer',"ديكور"}
				, property = 'P2554'},
			{type = "row", label = "تصميم الأزياء"
				, value = {'أزياء','ملابس'}
				, property = 'P2515'},
			{type = "row", label = "التصوير"
				, value = {'سينماتوغرافيا','الإخراج السينمائي','سينماتوغرافيا','تصوير','cinematography'}
				, property = 'P344'},
			{type = "row", label = "الموسيقى"
				, value = {'موسيقي','موسيقى','music'}
				, property = 'P86'},
			{type = "row", label = "التركيب"
				, value = {'مونتاج','تركيب','editing'}
				, property = 'P1040'},
		}
		},
		{type = "table", title = "صناعة سينمائية", rows = {
			{type = "row", label = "الشركة المنتجة"
				, plurallabel = "الشركات المنتجة"
				, value = {"استوديو",'studio','production_companies'}
				, wikidata = {property = 'P272' , conjtype = '*'}},
			{type = "row", label = "المنتج"
				, plurallabel = "المنتجون"
				, value ={'الإنتاج','منتج','producer'}, property = "P162"},
			{type = "row", label = "المنتج المنفذ",  value = "منتج منفذ"
				, property = 'P1431'},
			{type = "row", label = "التوزيع"
				, value = {'موزع','توزيع','distributor'}
				, property = 'P750'},
			{type = "row", label = "شبكة البث"
				, value = "شبكة البث"
				, property = 'P449'},
			{type = "row", label = "الميزانية"
				, value = {"ميزانية" ,'budget'}
				, wikidata = {property = 'P2130', formatcharacters='formatnum'}},
			{type = "row", label = "الإيرادات"
				, value = {'gross','إيرادات','الإيرادات','ايرادات' }
				, wikidata = {property = 'P2142' , showunit = 'short', formatcharacters='formatnum'}
			},			
		}
		},
		{type = "table", title = "التسلسل", rows = {
			{type = "row", label = "السلسلة", value = "سلسلة"
                             , wikidata= function ( item ) return getSerieInfo(item)  end},
			{type = 'succession'
				, previousparameter = "سبقه", previousproperty = "P155"
				, nextparameter = "تبعه",	nextproperty = "P156"}
			},
	    },
	}
}