وحدة:بطاقة/قالب/موسم رياضة

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

return {
 maincolor = '#F0B020',
 wikimod = 'Wikidata.Ca',
 parts = {
	general.title(),
	general.logo(),
    general.mainimage({wikidata={property='P18 OR P1846'}}),

	{type='table', title = 'معلومات عامة',rows = {
		{type = 'mixed'
			, label = 'الرياضة'
			, value = {'الرياضة','sport'}
			, wikidata= {property = 'P641'}
		},

		{type = 'mixed'
			, label = 'الاتحاد'
			, value = {'الاتحاد','association'}
			, wikidata= {property = 'P664', conjunction='<br />'}
		},

		{type = 'mixed'
			, label = 'البطولة'
			, value = {'البطولة','league'}
			, wikidata= {property = 'P3450'}
		},

		{type = 'mixed'
			, label = 'الفئة'
			, value = {'الفئة','class'}
			, wikidata= {property = 'P2094'}
		},

		{type = 'mixed'
			, label = 'جزء من'
			, value = {'جزء من','part of'}
			, wikidata= {property = 'P361', conjunction ='<br />'}
		},

		{type = 'mixed'
			, label = 'النسخة'
			, value = {'النسخة','edition'}
			, wikidata= {property = 'P393'}
		},
		{type = 'mixed'
			, label = 'الفترة'
			, value = {'الفترة','سنة','period','year'}
			, wikidata= {property = 'P585 OR P2348 OR P2257', formatting='unitlink'}
		},

		{type = 'mixed'
			, label = 'البداية'
			, value = {'البداية','starts'}
			, wikidata= {property = 'P580'}
		},
		{type = 'mixed'
			, label = 'النهاية'
			, value = {'النهاية','ends'}
			, wikidata= {property = 'P582'}
		},

		{type = 'mixed'
			, label = 'البلد'
			, value = {'البلد','بلد','country'}
			, wikidata= {property = 'P17'}
		},

		{type = 'mixed'
			, label = 'المكان'
			, value = {'المكان','location'}
			, wikidata= {property = 'P276', conjunction='<br />'}
		},

		{type = 'mixed'
			, label = 'عدد الجولات'
			, value = {'عدد المباريات','no_of_matches','no_of_games','matches'}
			, wikidata= {property = 'P1350'}
		},

		{type = 'mixed'
			, label = 'الفرق المشاركة'
			, value = {'عدد الفرق','عدد_الفرق','no_of_teams','num_teams'}
			, wikidata= {property = 'P1923 or P1132', conjunction='<br />'}
		},
		{type = 'mixed'
			, label = 'عدد الأهداف'
			, value = {'عدد الأهداف','أهداف','no_of_goals','goals'}
			, wikidata= {property = 'P1351'}
		},
		{type = 'mixed'
			, label = 'الهداف'
			, value = {'الهداف','أفضل هداف','league topscorer','top_scorer'}
			, wikidata= {property = 'P3279', formatting='table',  
						rowformat='$0$R0 $2$3',
						qualifier1='P1013', whitelist1='Q18530',
						qualifier2='P1351', rowsubformat2="<small><br />سجل $2</small>",
						qualifier3='P54', rowsubformat3="<small><br />في صفوف $3</small>"}
		},
		{type = 'mixed'
			, label = 'مجموع الحضور'
			, value = {'مجموع الحضور','حضور','attendance'}
			, wikidata= {property = 'P1110'}
		},

		{type = 'mixed'
			, label = 'متوسط الحضور'
			, value = {'متوسط الحضور','average_attendance'}
			--, wikidata= {property = 'P'}
		},

		{type = 'mixed'
			, label = 'الراعي الإعلامي'
			, value = {'الراعي الإعلامي','TV'}
			--, wikidata= {property = 'P'}
		},
		{type = 'mixed'
			, label = 'الدوري الأدنى'
			, value = {'الدوري الأدنى','level below'}
			, wikidata= {property = 'P2500'}
		},
        general.website(),
	}},		
	{type='table', title = 'النهائي', rows = {

		{type = 'mixed'
			, label = {'top_pick_name'}
            , defaultlabel='Top draft pick'
			, value = {'top_pick'}
			--, wikidata= {property = 'P'}
		},

		{type = 'mixed'
			, label = {'picked_by_team'}
            , defaultlabel='Picked by'
			, value = {'picked_by'}
			--, wikidata= {property = 'P'}
		},

	}},		
	{type='table', title = 'الموسم', rows = {
		{type = 'mixed'
			, label = {'season_champ_name'}
            , defaultlabel='موسم البطولة'
			, value = {'season_champs'}
			--, wikidata= {property = 'P'}
		},

		{type = 'mixed'
			, label = {'league_champ_name'}
            , defaultlabel='البطل'
			, value = {'البطل','بطل','league_champs','champion_other'}
			, wikidata= {property = 'P1346', formatting='table', conjunction="<br />" ,
						rowformat='$0$R0 $1',
						qualifier1='P642', rowsubformat1="<small><br />$1</small>"}
		},

		{type = 'mixed'
			, label = '&nbsp;&nbsp;الوصيف'
			, value = {'الوصيف','وصيف','second_other'}
			--, wikidata= {property = 'P'}
		},
		{type = 'mixed'
			, label = '&nbsp;&nbsp;الثالث'
			, value = {'الثالث','ثالث','third_other'}
			--, wikidata= {property = 'P'}
		},
		{type = 'mixed'
			, label = '&nbsp;&nbsp;الرابع'
			, value = {'الرابع','رابع','fourth_other'}
			--, wikidata= {property = 'P'}
		},

		{type = 'mixed'
			, label = 'Top seed'
			, value = {'top_seed'}
			--, wikidata= {property = 'P'}
		},

		{type = 'mixed'
			, label = 'Season MVP'
			, value = {'MVP'}
			--, wikidata= {property = 'P'}
		},

		{type = 'mixed'
			, label = 'Cup MVP'
			, value = {'Cup_MVP'}
			--, wikidata= {property = 'P'}
		},
		{type = 'mixed'
			, label = 'ارتقى'
			, value = {'promote'}
			, wikidata= {property = 'P2881', conjunction='<br />'}
		},

		{type = 'mixed'
			, label = 'نزل'
			, value = {'الهابط','relegate'}
			, wikidata= {property = 'P2882', conjunction='<br />'}
		},

	}},		
	{type='table', title = 'النهائي', rows = {
		{type = 'mixed'
			, label = 'الملعب'
			, value = {'finals_venue'}
			--, wikidata= {property = 'P'}
		},

		{type = 'mixed'
			, label = 'البطل'
			, value = {'finals_champ'}
			--, wikidata= {property = 'P'}
		},

		{type = 'mixed'
			, label = 'النائب'
			, value = {'finals_runner-up'}
			--, wikidata= {property = 'P'}
		},
	}},		
	{type='table', title = 'المواسم', rows = {
		{type = 'navbox', inner=true
			, previousparameter = {"سبقه",'موسم سابق','prevseason_year'}
			, previouswikidata = {property = "P3450 or P156" ,qualifier="P155 or /P155", formatting='table',rowformat = '$1'}
			, nextparameter = {"تبعه",'موسم مقبل','nextseason_year'}
			, nextwikidata={property = "P3450 or P156", qualifier="P156 or /P156", formatting='table',rowformat = '$1'}},

	}},		
 }
}