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

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

-- Credits:
-- Adapted by وهراني @arwiki (ar:وحدة:بطاقة/قالب/مبنى)
-- Version: 20240328

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

local localdata = require  'وحدة:بطاقة/بيانات' 

local wd = require "Module:Wikidata.Ca"

local formats = {
	--{map icon, title icon, لون العنوان, لون العنوان الفرعي, لون النص)
	-- map icon from https://www.mediawiki.org/wiki/Help:Extension:Kartographer/Icons
	Q1144661 = {'circle-stroked', nil, '#B0C4DE', '#E1E1E1', '#000000', 'defaut'}, -- ألعاب الملاهي
	Q18761864 = {'bank', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مبنى بنكي
	Q655686 = {'shop', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مبنى تجاري
	Q856584 = {'library', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مكتبة
	Q622425 = {'music', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- ملهي ليلي
	Q274393 = {'bakery', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مخبزة
	Q3649129 = {'warehouse', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- كوخ مؤقت أو موسمي
	Q876852 = {'playground', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مركز عطلة واستجمام
	Q751876 = {'building', 'chateau', '#00507f', '#ccc', '#ffffff', 'defaut'}, -- قصر

	Q23413 = {'circle-stroked', 'chateau', '#00507f', '#ccc', '#ffffff', 'defaut'}, -- قلعة

	Q105731 = {'dam', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- هويس
	Q3914 = {'library', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مدرسة

	Q2977 = {'religious-christian', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- كاتدرائية
	Q16970 = {'religious-christian', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- كنيسة

	Q1777951 = {'ferry', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مستودع سفن
	Q1021645 = {'commercial', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مبنى مكاتب
	Q3947 = {'building', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- منزل
	Q37654 = {'shop', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- سوق

	Q32815 = {'religious-muslim', 'mosque', '#99CC99', '#E1E1E1', '#000000', 'defaut'}, -- منارة/مسجد


	Q4989906 = {'chateau', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- معلم
	Q33506 = {'museum', 'museum', '#d9b38c', '#E1E1E1', '#000000', 'defaut'}, --متحف

	Q170980 = {'monument', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مسلة
	Q3689421 = {'commercial', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- ترويج سياحي
	Q1137809 = {'museum', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- قصر العدالة
	Q509028 = {'circle-stroked', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مزرعة مواشي
	Q41253 = {'cinema', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- قاعة سينما

	Q839954 = {'circle-stroked', 'map', '#CCCCAA', '#CCCCAA', '#000000', 'defaut'}, -- موقع أثري
	Q96102071 = {'zoo', 'map', '#CCCCAA', '#CCCCAA', '#000000', 'defaut'}, -- موقع مراقبة الحيوانات
	Q36728566 = {'police', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- station de rangers
	Q205495 = {'fuel', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- محطة وقود

	Q34627 = {'religious-jewish', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- كنيس
	Q267596 = {'museum', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- معبد إغريقي
	Q849706 = {'airport', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مطار

	Q27108230 = {'campsite', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مخيم

	Q748998 = {'fire-station', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- قلعة مراقبة الحرائق
	Q870 = {'rail', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- أرض

	Q83405 = {'warehouse', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}, -- مصنع

	Q3024331 = {'religious-christian', 'chateau', '#E00000', '#E00000', '#FFFFFF', 'defaut'}, -- commanderie templière
	Q174981 = {'religious-christian', 'chateau', '#000000', '#000000', '#FFFFFF', 'defaut'}, -- commanderie hospitalière
	default = {'monument', nil, '#E1E1E1', '#E1E1E1', '#000000', 'defaut'}
}

local function wdformat() 
	local wtypes = wd.claim{  property = 'P31', formatting = 'raw', separator='/·/'	}
    if wtypes then	wtypes = mw.text.split(wtypes, '/·/')	end

	local default = formats.default
	--wtypes = wd.addVals(wtypes or {}, {property = 'P279'}, 1) 
	for i, item in pairs(wtypes or {}) do
		if formats[item] then
			return formats[item]
		end
	end
	return default
end
local function setcharte()
	local charte = localdata.getValue('charte')
	if charte then
		for i, j in pairs(formats) do
			if j[2] == charte then
				return j
			end
		end
	end
	return wdformat()
end


local displayformat = setcharte()

return 
	{
	-- الألوان المستعملة لعنوان البطاقة
    maincolor = displayformat[3],
	secondcolor = displayformat[4],
	thirdcolor = displayformat[5] ,
  
    wikimod = 'Wikidata.Ca',
    parts = { 
      -- محتويات البطاقة
    general.title({icon=displayformat[2]}),
    {type = 'subtitle', 
        value = function ( localdata )
            local val = localdata.getValue('الاسم الأصلي') 
							or localdata.getValue('اسم اصلي') 
							or localdata.getValue('native_name')
            if val and localdata.getValue('لغة_الاسم_الأصلي')  then
                return mw.ustring.format('%s <span class="nickname" lang="%s">%s</span>'
                    , val 
                    , localdata.getValue('الاسم_باللغة_الاصلية') or ''
                    , localdata.getValue('لغة_الاسم_الأصلي')
                )
            end
            return val
        end,
        wikidata= {
        	property = 'P1559 OR P1476 OR P1448 OR P1705', 
        	list = 'notlang', listmax = 3,
        	conjunction = "<br />",
        	listrank='bestrank' ,
        	formatting = '$text {{Language icon|NoCat=y|$language}}'
        },
        metadata = {
            description = "",
            option = "", 
            type = "", 
        }
    },
    general.logo(),
    building.mainimage(),
    general.locationmap(),

    {
        type = "table",
        title = "التسمية",
        rows = {
            {
                type = "row",
                label = "أسماء سابقة",
                value = {"أسماء_سابقة", "former_names", "former_name"},
                -- wikidata = {property='P'},
                metadata = {
                     description = "",
                     option = "", -- required / suggested / deprecated = true or false
                     type = "", -- number/boolean/date/url/wiki-file-name
               }
            },
            {
                type = "row", 
                label = "أسماء بديلة",
                value = {"أسماء_بديلة", "alternate_names", "alternate_name"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row", 
                label = "معنى الاسم",
                value = {"معنى_التسمية", "etymology"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row", 
                label = "نسبة الاسم إلى",
                value = {"سبب_تسمية", "namesake"},
                wikidata = {property = "P138"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row", 
                label = "لقب",
                value = {"لقب","الألقاب", "designations", "nickname"},
                wikidata = {
					property = "P1449", qualifier1='P17', formatting='table', 
					rowformat='* $0$R0 $1', rowsubformat1='($1)', showDate='true'
				},
                metadata = {
					description = "ألقاب وتسميات شعبية",
					option = "", 
					type = "", 
                }
            },
        }
    },
    {
        type = "table",
        title = "معلومات عامة",
        rows = {
            {
                type = "row",
                label = "الحالة",
                value = {"الوضع_الحالي", "status"},
                wikidata = {property = "P5816"},
                metadata = {
                    description = "للدلالة على حالة الإنشاء ويأخذ عادة أحد القيم التالية: مكتمل، مهدم، مدمر، عمليات البناء معلقة، قيد الإنشاء، لم يتم بناءه، مقترح، موافق على بناءه.",
                    option = "", 
                    type = "", 
                }
            },
            {
                type = "row",
                label = "نوع المبنى",
                value = {"نوع_المبنى", "نوع", "building_type"},
                wikidata = {property = "P31", showDate='true', conjunction="<br />"},
                metadata = {
					description = "عمارة سكنية - معلم - مقر ..إلخ",
					option = "suggested", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "التصنيف",
                value = {"التصنيف", "الحماية", "classification"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row", 
                label = "المكان",
                value = {"مكان", "location"},
                wikidata = {property = "P276"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.adminlocation(),
            {
                type = "row",
                label = "المدينة",
                value = {"مدينة", "المدينة", "location_town", "location_city"},
                -- wikidata = {property='P'},
                metadata = {
					description = "المدينة التي يتواجد بها المبنى",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = {"grid_name"},
                defaultlabel = "Grid&nbsp;position",
                value = {"grid_position"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "بني بطلب من",
                value = {"زبون", "client"},
                wikidata = {property = "P88"},
                metadata = {
					description = "الجهة التي طلبت تشييد المبنى",
					option = "", 
					type = "", 
                }
            },
            building.religion(),
            building.owner(),
            {
                type = "row",
                label = "الهيئة الإدارية",
                value = {"هيئة إدارية", "governing_body"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.operator(),
            {
                type = "row",
                label = "الانتماء",
                value = {"انتماء", "الانتماء", "affiliation"},
                wikidata = {property = "P708", conjunction = "<br />", showDate='true',listrank='bestrank'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.usage(),
            {
                type = "row",
                label = "الساكن",
                value = {"ساكن","الساكن_الحالي","المستأجر_الحالي", "current_tenants"},
                wikidata = {property = "P466", conjunction = "<br />", showDate='true',listrank='bestrank'},
                metadata = {
					description = "كل من سكن المبنى",
					option = "", 
					type = "", 
                }
            },
            building.replaces(),
            building.replacedby(),
            building.danger(),
            building.recordheld()
        }
    },
    {
        type = "table",
        title = "أبرز الأحداث",
        rows = {
            building.cornerstonelaying(),
            building.construction(),
            building.opening(),
            {
                type = "row",
                label = "النقل",
                value = {"تاريخ_نقل_المبنى", "relocated_date"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.renovation(),
            building.closure(),
            building.demolition(),
            building.causeOfDestruction(),
            building.reconstruction(),
            building.significantEvent(),
            {
                type = "row",
                label = "الحروب",
                value = {"حرب", "conflict","war"},
                wikidata = {
                	property='P607',qualifier='P585' ,qualifier2='P1012', 
                	formatting='table' , rowformat='* $0$R0$2 $1',
                	rowsubformat1='<small>($1)</small>' , rowsubformat2=' — $2'},
                metadata = {
					description = "الحروب المشهودة",
					option = "", 
					type = "", 
                }
            },
        }
    },
    {
        type = "table",
        title = "الصفة التُّراثيَّة",
        rows = {
        	building.heritage(),
        	building.WHS_unesco()
        }
    },
    {
        type = "table",
        title = "ارتفاع المبنى",
        rows = {
            {
                type = "row", 
                label = "أرقام قياسية",
                value = function(localdata)
                    if (type(localdata.getValue("highest_start")) ~= "string" and type(localdata.getValue("highest_end")) ~= "string") then
                        return
                    end
                    local r
                    r = "Tallest in " .. (localdata.getValue("highest_region") or "the world")
                    if (localdata.getValue("highest_start") and localdata.getValue("highest_end")) then
                        r = mw.ustring.format( "%s from %s to %s",
                            r, localdata.getValue("highest_start"), localdata.getValue("highest_end")
                        )
                    elseif (localdata.getValue("highest_start")) then
                        r = mw.ustring.format("%s since %s", r, localdata.getValue("highest_start"))
                    elseif (localdata.getValue("highest_end")) then
                        r = mw.ustring.format("%s until %s", r, localdata.getValue("highest_end"))
                    end
                    return r .. "{{ref label|" .. (localdata.getValue("highest_reflabel") or "talleststatus") .. "|I|}}"
                end,
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = ":: تجاوز",
                value = {"الأعلى_سابقا","highest_prev"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = ":: تجاوزه",
                value = {"الأعلى_لاحقا","highest_next"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "الارتفاع عن سطح البحر",
                value = {"ارتفاع_عن_البحر", "altitude"},
                wikidata = {property = "P2044", formatting = "unitlinked"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "أعلى نقطة",
                value = {"أعلى نقطة", "tip"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "السقف",
                value = {"سقف", "roof"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "أعلى طابق",
                value = {"أعلى_طابق", "top_floor"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "أعلى نقطة مراقبة",
                value = {"أعلى_نقطة_مراقبة", "observatory"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            }
        }
    },
    {
        type = "table",
        title = "الأبعاد",
        rows = {
            building.dimensions(),
            building.shape(),
            {
                type = "row",
                label = "الوزن",
                value = {"وزن", "weight"},
                wikidata = {property = "P2067", formatting = "unitlinked"},
                metadata = {
					description = "وزن المبنى",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "الحجم",
                value = {"حجم","size"},
                -- wikidata = {property='P'},
                metadata = {
					description = "حجم المبنى",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "أبعاد أخرى",
                value = {"أبعاد أخرى", "other_dimensions"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            }
        }
    },
  
    {
        type = "table",
        title = "التفاصيل التقنية",
        rows = {
            {
                type = "row",
                label = "يضم",
                value = {"يضم", "parts"},
                wikidata = {property = "P527", conjunction = "<br />"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.part_of(),
            {
                type = "row",
                label = "النظام الهيكلي",
                value = {"نظام_هيكلي", "structural_system", "النظام_الهيكلي"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.material(),
            building.floors(),
            {
                type = "row",
                label = "عدد المصاعد",
                value = {"عدد_المصاعد", "elevator_count"},
                wikidata = {property = "P1301"},
                metadata = {
					description = "عدد مصاعد المبنى",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "مساحة الأرض",
                value = {"مساحة_الأرض", "grounds_area"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            }
        }
    },
    {
        type = "table",
        title = "التصميم والإنشاء",
        rows = {
            building.archistyle(),
            building.creator(),
            {
                type = "row",
                label = "المطور",
                value = {"مطور", "developer", "المطور"},
                wikidata = {property = "P178", conjunction = "<br />"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "مهندس الخدمات",
                value = {"مهندس_الخدمات", "services_engineer"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "مراقب الكميات",
                value = {"مراقب_الكميات","quantity_surveyor"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "شركة البناء",
                value = {"شركة_البناء", "architecture_firm"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = {"تسمية مقاول"},
                defaultlabel = "المقاول الرئيسي",
                value = {"مقاول_رئيسي", "المقاول_الرئيسي","main_contractor", "main_contractors"},
                wikidata = {
                    property = "P193", 
                    conjunction = "<br />"
                },
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            general.awards(),
            {
                type = "row",
                label = "معروف بـ",
                value = {"معروف", "known_for"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "التكلفة",
                value = {"تكلفة", "تكلفة_المبنى", "cost"},
                wikidata = {property = "P2130", formatting = "unitlinked", case=general.FormatNumVal},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            }
        }
    },
    general.planview(),
    {
        type = "table",
        title = "فريق التجديد",
        rows = {
            {
                type = "row",
                label = "المهندس المعماري",
                value = {"ren_architect"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "شركة التجديد",
                value = {"شركة التجديد","ren_firm"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "المهندس",
                value = {"ren_engineer"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "المهندس الإنشائي",
                value = {"ren_str_engineer"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "مهندس الخدمات",
                value = {"ren_serv_engineer"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "المهندس المدني",
                value = {"ren_civ_engineer"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row", 
                label = "مصممون آخرون",
                value = {"ren_oth_designers"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "مراقب الكميات",
                value = {"ren_qty_surveyor"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "المقاول الرئيسي",
                value = {"ren_contractor"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "الجوائز والمكافآت",
                value = {"ren_awards"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "تكلفة التحديث",
                value = {"تكلفة_التحديث", "ren_cost"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            }
        }
    },
    {
        type = "table",
        title = "معلومات أخرى",
        rows = {
            {
                type = "row",
                label = "سلسلة الفنادق",
                value = {"سلسلة", "سلسلة الفنادق", "hotel_chain", "chain"},
                -- wikidata = {property='P'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "عدد النجوم",
                value = {"عدد النجوم", "hotel_rating"},
                wikidata = {property='P10290'},
                metadata = {
					description = "عدد النجوم أو التصنيف",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "نوع المقاعد",
                value = {"نوع_المقاعد", "seating_type"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "الطاقة الاستيعابية",
                value = {"طاقة_استيعابية", "seating_capacity", "capacity"},
                wikidata = {property='P1083'},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "عدد المتاجر",
                value = {"عدد_المتاجر", "number_of_stores"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "عدد المراسي",
                value = {"عدد_المراسي", "number_of_anchors"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "عدد الغرف",
                value = {"عدد_الغرف", "number_of_rooms", "room_count", "rooms"},
                wikidata = {property='P8733'},
                metadata = {
					description = "عدد الغرف في مبنى",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "عدد الوحدات",
                value = {"عدد_الوحدات", "number_of_units", "unit_count"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row",
                label = "عدد الأجنحة",
                value = {"عدد_الأجنحة", "number_of_suites", "suite_count", "suites"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row", 
                label = "عدد المطاعم",
                value = {"عدد_المطاعم", "number_of_restaurants"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row", 
                label = "عدد الحانات",
                value = {"عدد_الحانات", "number_of_bars"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            {
                type = "row", 
                label = "مواقف السيارات",
                value = {"كراج_السيارات", "مواقف_السيارات"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.facilities(),
            building.visitors(),
            building.website(),
            {
                type = "row", 
                label = "الحجز الإلكتروني",
                value = {"الحجز_الإلكتروني"},
                metadata = {
					description = "",
					option = "", 
					type = "", 
                }
            },
            building.phone_number(),
            building.postal_code(),
            building.coordinates()
        }
    },
  
    general.geoloc({marker=displayformat[1], geotype='Point'}),
    {
        type = "table",
        rows = {
                --, content ={'nrhp','embedded','module'}
        }
    },
 }
}