وحدة:بطاقة/قالب/حاجز مائي

من أرابيكا، الموسوعة الحرة
اذهب إلى التنقل اذهب إلى البحث

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

return {
	maincolor = '#FFDF80',
    wikimod = "Wikidata.Ca",

	parts = {
		general.title({icon='map'}),
		general.mainimage(),
        general.geoloc({marker = 'dam', default_zoom=11, pointtype=point}),
		{type = 'table', title = 'معلومات عامة', rows = {			
            {type = 'row', label = 'الاسم الرسمي'
            	, value = {'اسم رسمي','name_official'}
		        , wikidata= {
		        	property = 'P1448', list="notlang", 
		        	listmax = 2, conjunction = "<br />",
		        	formatting = '$text {{Language icon|NoCat=y|$language}}'
			    }
			},
            building.adminlocation(),
            general.coordinates(),
            building.usage(),
            {type = "row", label = "الهدف",
                value = {'هدف',"purpose"},
                wikidata = {property='P3712'}
            },
            building.status(),
            building.creator(),
            building.owner(),
            building.operator(),
            building.construction(),
            building.material(),
            building.opening(),
            {type = 'row' , label = 'دخول الخدمة'
                	, value = {'دخول الخدمة','بداية الخدمة','introduced'}
                	, wikidata = {property = 'P729'}
            },
            {
                type = "row",
                label = "التكلفة",
                value = {"تكلفة", "cost"},
                wikidata = {property = "P2130", formatting = "unitlinked"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = {"تسمية مقاول"},
                defaultlabel = "المقاول الرئيسي",
                value = {"مقاول_رئيسي", "المقاول_الرئيسي","main_contractor","builder", "main_contractors"},
                wikidata = {
                    property = "P193", 
                    conjunction = "<br />"
                },
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.demolition(),
            general.website(),
        }},
        {
            type = "table",
            title = "Dam and spillways",
            rows = {
                    {type = "row", label = "[[سد|النوع]]",
                                value = {"نوع","dam_type"},
                                wikidata = {property = "P31"},
                    },
                    {type = "row", label = "Impounds",
                        value = {"dam_crosses"},
                        --wikidata = {}
                    },
                    building.onshoreof(),

            {-- DEPRECIATED. If possible, please use one or more specific height fields below
                type = "row",
                label = "الارتفاع",
                value = {"ارتفاع", "height","dam_height"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P2048",
                    qualifier = "P1013",
                    colformat0 = "unitlinked",
                    formatting = "table",
                    conjunction = "<br />",
                    rowformat = "$0$R0 $1",
                    rowsubformat1 = "<small><br />($1)</small>",
                    blacklist1 = "Q31271474,Q24192182,Q131214,Q852590"
                }, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
                    {type = "row", label = "Height (foundation)",
                        value = {"dam_height_foundation"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Height ([[خط القعر]])",
                        value = {"dam_height_thalweg"},
                        --wikidata = {}
                    },
            {
                type = "row",
                label = "الطول",
                value = {"طول","dam_length"},
                wikidata = {
                    wikimod = "Wikidata.Ca",
                    property = "P2043",
                    formatting = "unit"
                }, 
		        metadata = {
					description = "",
					option = "", 
					type = "", 
		        }
            },
                    {type = "row", label = "Elevation at crest",
                        value = {"dam_elevation_crest"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Width (crest)",
                        value = {"dam_width_crest"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Width (base)",
                        value = {"dam_width_base"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Dam volume",
                        value = {"dam_volume"},
                        --wikidata = {}
                    },
                    {type = "row", label = "[[مفيض]]s",
                        value = {"spillway_count"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway type",
                        value = {"spillway_type"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway length",
                        value = {"spillway_length"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway capacity",
                        value = {"spillway_capacity"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway [[تدفق حجمي]]",
                        value = {"spillway_volumetric_flow_rate"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway type",
                        value = {"spillway_type2"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway length",
                        value = {"spillway_length2"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway capacity",
                        value = {"spillway_capacity2"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway [[تدفق حجمي]]",
                        value = {"spillway_volumetric_flow_rate2"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway type",
                        value = {"spillway_type3"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway length",
                        value = {"spillway_length3"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway capacity",
                        value = {"spillway_capacity3"},
                        --wikidata = {}
                    },
                    {type = "row", label = "Spillway [[تدفق حجمي]]",
                        value = {"spillway_volumetric_flow_rate3"},
                        --wikidata = {}
                    },
        }},
        {
            type = "table",
            title = "Reservoir",
            rows = {
                {type = "row", label = "Creates",
                    value = {"res_name"},
                    wikidata = {property='P4661'}
                },
                {type = "row", label = "Total capacity",
                    value = {"res_capacity_total"},
                    --wikidata = {}
                },
                {type = "row", label = "Active capacity",
                    value = {"res_capacity_active"},
                    --wikidata = {}
                },
                {type = "row", label = "Inactive capacity",
                    value = {"res_capacity_inactive"},
                    --wikidata = {}
                },
                {type = "row", label = "[[مستجمع مائي|Catchment area]]",
                    value = {"res_catchment"},
                    --wikidata = {}
                },
                {type = "row", label = "Surface area",
                    value = {"res_surface"},
                    --wikidata = {}
                },
                {type = "row", label = "Maximum length",
                    value = {"res_max_length"},
                    --wikidata = {}
                },
                {type = "row", label = "Maximum width",
                    value = {"res_max_width"},
                    --wikidata = {}
                },
                {type = "row", label = "Maximum water depth",
                    value = {"res_max_depth"},
                    --wikidata = {}
                },
                {type = "row", label = "Normal elevation",
                    value = {"res_elevation"},
                    --wikidata = {}
                },
                {type = "row", label = "[[Tidal range|Tidal range]]",
                    value = {"res_tidal_range"},
                    --wikidata = {}
                },
        }},
        {
            type = "table",
            title = "Lower dam and spillways",
            rows = {
                {type = "row", label = "[[سد|Type of dam]]",
                    value = {"lower_dam_type"},
                    --wikidata = {}
                },
                {type = "row", label = "Impounds",
                    value = {"lower_dam_crosses"},
                    --wikidata = {}
                },
                {type = "row", label = "Height",
                    -- DEPRECIATED. If possible, please use one or more specific height fields below 
                    value = {"lower_dam_height"},
                    --wikidata = {}
                },
                {type = "row", label = "Height (foundation)",
                    value = {"lower_dam_height_foundation"},
                    --wikidata = {}
                },
                {type = "row", label = "Height ([[خط‌ القعر]])",
                    value = {"lower_dam_height_thalweg"},
                    --wikidata = {}
                },
                {type = "row", label = "Length",
                    value = {"lower_dam_length"},
                    --wikidata = {}
                },
                {type = "row", label = "Elevation at crest",
                    value = {"lower_dam_elevation_crest"},
                    --wikidata = {}
                },
                {type = "row", label = "Width (crest)",
                    value = {"lower_dam_width_crest"},
                    --wikidata = {}
                },
                {type = "row", label = "Width (base)",
                    value = {"lower_dam_width_base"},
                    --wikidata = {}
                },

                {type = "row", label = "Dam volume",
                    value = {"lower_dam_volume"},
                    --wikidata = {}
                },

                {type = "row", label = "[[مفيض]]s",
                    value = {"lower_spillway_count"},
                    --wikidata = {}
                },


                {type = "row", label = "Spillway type",
                    value = {"lower_spillway_type"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway length",
                    value = {"lower_spillway_length"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway capacity",
                    value = {"lower_spillway_capacity"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway [[تدفق حجمي]]",
                    value = {"lower_spillway_volumetric_flow_rate"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway type",
                    value = {"lower_spillway_type2"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway length",
                    value = {"lower_spillway_length2"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway capacity",
                    value = {"lower_spillway_capacity2"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway [[تدفق حجمي]]",
                    value = {"lower_spillway_volumetric_flow_rate2"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway type",
                    value = {"lower_spillway_type3"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway length",
                    value = {"lower_spillway_length3"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway capacity",
                    value = {"lower_spillway_capacity3"},
                    --wikidata = {}
                },

                {type = "row", label = "Spillway [[تدفق حجمي]]",
                    value = {"lower_spillway_volumetric_flow_rate3"},
                    --wikidata = {}
                },
        }},
        {
            type = "table",
            title = "Lower reservoir",
            rows = {
                {type = "row", label = "Creates",
                    value = {"lower_res_name"},
                    --wikidata = {}
                },
                {type = "row", label = "Total capacity",
                    value = {"lower_res_capacity_total"},
                    --wikidata = {}
                },
                {type = "row", label = "Active capacity",
                    value = {"lower_res_capacity_active"},
                    --wikidata = {}
                },
                {type = "row", label = "Inactive capacity",
                    value = {"lower_res_capacity_inactive"},
                    --wikidata = {}
                },
                {type = "row", label = "[[مستجمع مائي|Catchment area]]",
                    value = {"lower_res_catchment"},
                    --wikidata = {}
                },
                {type = "row", label = "Surface area",
                    value = {"lower_res_surface"},
                    --wikidata = {}
                },
                {type = "row", label = "Maximum length",
                    value = {"lower_res_max_length"},
                    --wikidata = {}
                },
                {type = "row", label = "Maximum width",
                    value = {"lower_res_max_width"},
                    --wikidata = {}
                },
                {type = "row", label = "Maximum water depth",
                    value = {"lower_res_max_depth"},
                    --wikidata = {}
                },
                {type = "row", label = "Normal elevation",
                    value = {"lower_res_elevation"},
                    --wikidata = {}
                },
                {type = "row", label = "[[Tidal range|Tidal range]]",
                    value = {"lower_res_tidal_range"},
                    --wikidata = {}
                },
        }},
        {
            type = "table",
            title = "Power Station",
            rows = {
                {type = "row", label = "Coordinates",
                                value = {"plant_coordinates"},
                                --wikidata = {}
                },
                {type = "row", label = "Operator(s)",
                    value = {"plant_operator"},
                    --wikidata = {}
                },
                {type = "row", label = "Commission date",
                    value = {"plant_commission"},
                    --wikidata = {}
                },
                {type = "row", label = "Decommission date",
                    value = {"plant_decommission"},
                    --wikidata = {}
                },
                {type = "row", label = "[[طاقة كهرمائية|Type]]",
                    value = {"plant_type"},
                    --wikidata = {}
                },
                {type = "row", label = "[[Hydraulic head]]",
                    value = {"plant_hydraulic_head"},
                    --wikidata = {}
                },
                {type = "row", label = "[[عنفة مائية|Turbines]]",
                    value = {"plant_turbines"},
                    --wikidata = {}
                },
                {type = "row", label = "Pump-generators",
                    value = {"plant_pumpgenerators"},
                    --wikidata = {}
                },
                {type = "row", label = "Pumps",
                    value = {"plant_pumps"},
                    --wikidata = {}
                },
                {type = "row", label = "[[طاقة اسمية|Installed capacity]]",
                    value = {"plant_capacity"},
                    --wikidata = {}
                },
                {type = "row", label = "[[معامل الحمل|Capacity factor]]",
                    value = {"plant_capacity_factor"},
                    --wikidata = {}
                },
                {type = "row", label = "[[كفاءة|Overall efficiency]]",
                    value = {"plant_efficiency"},
                    --wikidata = {}
                },
                {type = "row", label = "[[تخزين الطاقة|Storage capacity]]",
                    value = {"plant_storage_hours"},
                    --wikidata = {}
                },
                {type = "row", label = "[[محطة توليد طاقة كهربائية|Annual generation]]",
                    value = {"plant_annual_gen"},
                    --wikidata = {}
                },
        }},
        {
            type = "table",
            title = "متفرقات",
            rows = {
                {type = "row1col", value = {"extra"}},
            },
        },
}}