وحدة:بطاقة/قالب/مؤسسة عقابية

-- Credits:
-- Developer : وهراني @arwiki (وحدة:بطاقة/قالب/مؤسسة عقابية)
-- Version: 20240413

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

return  {
    maincolor = '#A7D4E7',
    wikimod = 'Wikidata.Ca',
    parts = {
        generic.title(),
        generic.native_name(),
        generic.logo(),
        generic.mainimage(),

        {type = 'table' , title ='المنشأة', rows = {
            {type = 'row' , label = 'النوع', 
            	value = {'نوع','type'}, 
            	wikidata = {property = 'P31'}, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },

            building.archistyle(),
            building.creator(),
            building.part_of(),

            {type = 'row' , label = 'سميت باسم' , 
            	value = {'سميت'} , 
            	wikidata = {property = 'P138'}, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },

            building.dimensions(),
            building.creator(),
            {type = 'row' , label = 'طاقة الاستيعابية' , 
                value = {'سعة','capacity'}, 
                wikidata = {property = 'P1083' , qualifier="P585"
                        , formatting="table", list='bestrank'
                        , rowformat = "$0$R0 $1"
                        , rowsubformat1 = "<small>($1)</small>"
                        }, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
            {type = 'row' , label = 'عدد النزلاء' , 
                value = {'نزلاء','population'}, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
        }},
        {type = 'table' , title ='الموقع', rows = {
            {type = 'row' , label = 'المكان' , 
                value = {'مكان'}, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
            {type = 'row' , label = 'الناحية' , 
                value = {'ناحية','nahiyah'}, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
            building.adminlocation(),
        }},

		generic.geoloc({default_zoom=6}),
        {type = 'table' , title ='الاستغلال', rows = {
            building.operator(),
            {type = 'row' , label = 'الافتتاح' , 
                value = {'افتتاح','opened'}, wikidata = {property = 'P1619'}, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
            building.significantEvent(),
            building.replaces(),
            building.replacedby(),

            {type = 'row' , label = 'الغلق' , 
                value = {'غلق','closed'}, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
            {type = 'row' , label = 'تحول إلى' , 
                value = {'تحويل'}, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
            generic.website(),
        }},
       }  -- for parts
} -- for return