انتقل إلى المحتوى

وحدة:بطاقة/قالب/قناة

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

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

local function geopointWD(params)
	if type(params) ~= 'table' then params = {} end
	return {
            wikimod = "Wikidata.Ca",
            property = params.property or "P159",
            formatting = "table",
            listrank = "bestrank",
            qualifier = "P625",
            rowformat = "$0$R0$1",
            colformat1 = "<br /><small>[[file:GNOME Maps.svg|20x20px|link=]]"
            	.." {{Map draw| class = no-icon| type=maplink|$lat,$lon|zoom=6|text=على الخريطة}}</small>"
        }
end

return 	{
 maincolor = '#CEDEFF' -- اللون المستعمل لعنوان البطاقة
 ,wikimod = 'Wikidata.Ca'
 ,parts = { -- محتويات البطاقة
	  generic.title(),
	  {type = 'subtitle', value = {'الاسم_الاصلي','native_name'}
                , wikidata = {
                	property='P1705',conjunction = "<br />",
                	formatting = '$text {{Language icon|NoCat=y|$language}}'}},
	  generic.logo(),
	  generic.mainimage(),
	  generic.geoloc(),
	  {type = 'table', title = 'معلومات عامة', rows = {
        {type = 'row' 
                , label = 'المكان'
                , value ={'location','مكان'}
                , wikidata = {property='P131'}
		},
        {type = 'row' 
                , label = 'البلد'
                , value ={'country'}
                , wikidata = {property='P17'}
		},
        generic.coordinates(),
        {type = 'row' 
                , label = 'الإدارة'
                , value ={'إدارة','direction'}
                --, wikidata = {property='P'}
		},
       {type = 'row' 
                , label = 'السلطة المختصة'
                , value ={'سلطة_مختصة','navigation_authority','nav'}
                , wikidata = {property='P137'}
		},
	}},
	{type = 'table' , title ='الخصائص' ,rows = {
        {type = 'row' 
                , label = 'الطول'
                , value ={'طول','length_km','canal_length'}
                , wikidata = {property='P2043',formatting= 'unit'}
		},
        {type = 'row' 
                , label = 'طول الغلق'
                , value ={'طول الغلق','lock_length_km','lock_length'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'عرض الغلق'
                , value ={'عرض الغلق','lock_width_ft','lock_width'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'أقصى طول للسفينة'
                , value ={'أقصى_طول_للسفينة','len_ft','len_m','max_boat_length'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = '[[شعاع (بحري)|عرض السفينة]]'
                , value ={'أقصى_عرض_السفينة','beam_ft','beam_m','max_boat_beam'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = '[[الغاطس (بدن)|أكبر غاطس مسموح به]]'
                , value ={'أكبر غاطس','max_boat_draft'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'أصغر غاطس مسموح به'
                , value ={'أصغر غاطس','min_boat_draft'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'Minimum boat air draft'
                , value ={'min_boat_air_draft'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'Locks'
                , value ={'locks','current_num_locks'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'Original number of locks'
                , value ={'original_num_locks'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'أقصى ارتفاع فوق سطح البحر'
                , value ={'أقصى ارتفاع','elev_ft','elev_m','max_elev'}
                , wikidata = {property='P2044',formatting= 'unit'}
		},
        {type = 'row' 
                , label = 'أدنى ارتفاع فوق سطح البحر'
                , value ={'أدنى ارتفاع','min_elev_ft','min_elev_m','min_elev'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'Total rise'
                , value ={'total_rise'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'الحالة'
                , value ={'حالة','status'}
                --, wikidata = {property='P'}
		},
         {type = 'row' 
                , label = {'xfield1'} 
                , value ={'xvalue1'}
                --, wikidata = {property='P'}
		},
	}},
	{type = 'table' , title ='التاريخ' ,rows = {
        {type = 'row' 
                , label = 'الاسم السابق'
                , value ={'اسم_سابق','former_names','o_name'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'الاسم الحديث'
                , value ={'اسم_حديث','modern_name','m_name'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'المالك الحالي'
                , value ={'مالك_حالي','present_owner' }
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'المالك الأصلي'
                , value ={'مالك_أصلي','original_owner'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'المهندس المعماري'
                , value ={'مهندس','architect'}
                , wikidata = {property='P84'}
		},
        {type = 'row' 
                , label = 'المهندس الرئيسي'
                , value ={'engineer','مهندس'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'مهندسون آخرون'
                , value ={'other_engineer','a_engineer','مهندس_آخر'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'Date approved'
                , value ={'date_approved'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'Date of act'
                , value ={'date_act'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'تاريخ البناء'
                , value ={'date_began','date_const','تاريخ_البناء'}
                , wikidata = {property='P793',whitelist0='Q3875186',qualifier='P580'}
		},
        {type = 'row' 
                , label = 'تاريخ أول استخدام'
                , value ={'date_use','أول_استخدام'}
                , wikidata = {property='P1619'}
		},
        {type = 'row' 
                , label = 'تاريخ الانتهاء'
                , value ={'date_completed','تاريخ_الانتهاء'}
                --, wikidata = {property='P793',whitelist0='Q3875186',qualifier='P582'}
		},
        {type = 'row' 
                , label = 'تاريخ المد'
                , value ={'تاريخ_المد','date_extended','date_ext'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'تاريخ الغلق'
                , value ={ 'تاريخ_الغلق','date_closed'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'تاريخ الترميم'
                , value ={'تاريخ_الترميم','date_restored','date_rest'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = {'xfield2'}
                , value ={'xvalue2'}
                --, wikidata = {property='P'}
		},
	}},
	{type = 'table' , title ='الجغرافيا' ,rows = {
        {type = 'row' 
                , label = 'نقطة البداية'
                , value ={'نقطة البداية','start_point','original_start'}
                , wikidata = geopointWD{property='P1427'}
		},
        {type = 'row' 
                , label = 'نقطة النهاية'
                , value ={'نقطة النهاية','end_point','original_end'}
                , wikidata = geopointWD{property='P1444'}
		},
        {type = 'row' 
                , label = 'الفروع'
                , value ={'فروع','branch'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'فرع من'
                , value ={'فرع من','branch_of'}
                --, wikidata = {property='P'}
		},
        {type = 'row' 
                , label = 'مرتبط بـ'
                , value ={'مرتبط بـ','connects_to'}
                , wikidata = {property='P2789'}
        },
        {type = 'row' 
                , label = {'xfield3'}
                , value ={'xvalue3'}
                --, wikidata = {property='P'}
		},
	}}

	}
}