Module:مالومات/ډاټا/مالومات
ښکارېدونکې بڼه
< Module:مالومات | ډاټا
لاسوند لپاره ددې موډيول کېدای سی په Module:مالومات/ډاټا/مالومات/لاسوند کي وي
-- Credits:
-- Original By Af420@pswiki
-- Version: 20240327
local building = {}
building.description = {}
local generic = require "Module:مالومات/ډاټا"
local function keyDate(event)
if type(event) == "table" then
for i, j in pairs(event) do
local s = keyDate(j)
if s then return s end
end
elseif type(event) ~= "string" then
return error("invalid-datatype !! " .. type(event) .. " != string")
elseif string.sub(event, 1, 1) == "Q" then
return {
wikimod = "Wikidata.Ca",
formatting = "table",
property = "P793",
qualifier1 = "P642 OR P518",
qualifier2 = "P585",
qualifier3 = "P580", qualifier4 = "P582",
colformat2 = "Y", colformat3 = "Y", colformat4 = "Y",
rowsubformat1 = ": $1",
rowsubformat3 = "$3$4",
rowsubformat4 = " ته $4",
rowformat = "* $2$3 $1",
whitelist0 = event
}
elseif string.sub(event, 1, 1) == "P" then
return {property = event}
else
return error("invalid-entity-id : " .. event)
end
end
building.description["title"] = generic.description["title"]
function building.title()
return generic.title()
end
--Image
building.description["mainimage"] = generic.description["mainimage"]
function building.mainimage(params)
return generic.mainimage(params)
end
building.description["country"] = generic.description["country"]
function building.country(params)
return generic.country(params)
end
building.description["status"] = ""
function building.status()
return {
type = "row",
label = "حالت",
value = {"اوسنی_حالت", "status"},
wikidata = {property = "P5816"},
metadata = {
description = "د اوسني وضعیت په ګوته کولو لپاره",
option = "",
type = "string",
suggestedvalues = {"بشپړ","ویجاړ شوی","ویجاړوونکی","ساختماني کارونه ځنډول شوي دي"
,"د جوړېدو په حال کې، لا نه دی جوړ شوی"
,"وړانديز شوی","جوړېدو هوکړه شوې"},
}
}
end
building.description["historicalregion"] = ""
function building.historicalregion()
return {-- تاریخي سیمو لپاره
type = "row",
value = {"تاريخي سيمه", "historical_region"},
label = "تاريخي سيمه",
wikidata = {property = "P6885"},
metadata = {
description = "لرغونې تاريخي سيمه",
option = "",
type = "",
}
}
end
building.description["adminlocation"] = ""
function building.adminlocation()
return {
type = "multi",
rows = {
{
type = "row",
value = {"پته", "address"},
label = "ادرس","پته",
wikidata = {
wikimod = "Wikidata.Ca",
property = "P6375",
list = 2,
conjunction = "<br />",
formatting = "$text {{Language icon|NoCat=y|$language}}"
},
metadata = {
description = "څه شته : سړک نوم، شمېره او ترڅنګ سيمه",
option = "",
type = "",
}
},
{
type = "row",
value = {"سيمې نوم 1","subdivision_name1", "subdivision1"},
label = {"سيمې ډول 1","subdivision_type1"} ,
defaultlabel = "سيمه 1",
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
value = {"سيمې نوم 2","subdivision_name2", "subdivision2"},
label = {"سيمې ډول 2","subdivision_type2"} ,
defaultlabel = "سيمه 2",
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
value = {"سيمې نوم 3","subdivision_name3", "subdivision3"},
label = {"سيمې ډول 3","subdivision_type3"} ,
defaultlabel = "سيمه 3",
metadata = {
description = "",
option = "",
type = "",
}
},
{-- اداري سیمو لپاره
type = "row",
value = {"اداري سیمه", "administrative_territorial "},
label = "اداري سیمه",
wikidata = {wikimod = "Wikidata.Ca", property = "P131", listrank='bestrank', showDate = "true"},
metadata = {
description = "هغه سیمه چې دا په اداري توګه تړاو لري",
option = "",
type = "",
}
},
building.historicalregion(),
building.country()
}
}
end
building.description["capital"] = ""
function building.capital()
return {
type = "row",
label = "پلازمېنه",
plurallabel = "پلازمېنه",
value = {"پلازمېنه", "capital"},
wikidata = {property = "P36"},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["onshoreof"] = ""
function building.onshoreof()
return {
type = "row",
label = "ژبې",
value = {"ژبې","language_spoken"},
wikidata = {property = "P1412"},
metadata = {
description = "موجود بالقرب من المسطح المائي",
option = "",
type = "",
}
}
end
building.description["watershed"] = ""
function building.watershed()
return {
type = "row",
label = "مستجمع مائي",
value = "مستجمع مائي",
wikidata = {property = "P4614"},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["protectedarea"] = ""
function building.protectedarea()
return {
type = "row",
label = "منطقة محمية",
plurallabel = "مناطق محمية",
value = {"منطقة محمية", "protected_area"},
wikidata = {property = "P3018"},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["island"] = ""
function building.island()
return {
type = "row",
label = "ټاپو",
plurallabel = "ټاپو",
value = {"ټاپو", "island"},
wikidata={property = "P5130"},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["mountainrange"] = ""
function building.mountainrange()
return {
type = "row",
label = "غرونو لړۍ",
plurallabel = "غرونو لړۍ",
value = {"غر", "غرونو لړۍ", "mountain_range"},
wikidata = {property = "P4552"},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["elevation"] = ""
function building.elevation()
return {
type = "row",
label = "لوړوالی",
value = {"لوړوالی", "elevation"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2044",
formatting = "unitlinked"
},
metadata = {
description = "د بحر له سطحې څخه لوړوالی",
option = "",
type = "",
}
}
end
building.description["coordinates"] = generic.description["coordinates"]
function building.coordinates(args)
return generic.coordinates(args)
end
building.description["website"] = generic.description["website"]
function building.website(args)
return generic.website(args)
end
building.description["phone_number"] = ""
function building.phone_number()
return {
type = "row",
label = "اړيکو شمېره",
value = {"اړيکو شمېره", "اړيکو_شمېره","phone_number"},
valueStyle = {direction = "LTR", ["text-align"] = "left"},
wikidata = {property = "P1329"},
metadata = {
description = "اړيکو شمېره",
option = "",
type = "string",
}
}
end
building.description["postal_code"] = ""
function building.postal_code()
return {
type = "row",
label = "پوسټکوډ",
value = {"پوسټکوډ","postal_code"},
wikidata = {property = "P281"},
metadata = {
description = "د یوې سیمې یا ودانۍ لپاره د پوستي کوډ پیژندونکی",
option = "",
type = "",
}
}
end
building.description["open_days"] = ""
function building.open_days()
return {
type = 'row' ,
label = 'پرانيستې ورځ' ,
value = {'پرانيسته','open_days'} ,
wikidata = {
wikimod = "Wikidata.Ca",
property='P3025', formatting='table',
qualifier='P3027', qualifier2='P3028',
qualifier3='P3026',
qualifier4='P8626',qualifier5='P8627',
rowformat= '$0$R0 $1$4$3',
rowsubformat1='<small><br/>$1 – $2</small>',
rowsubformat3='<small><br/> نن ورځ تړلی دی: $3</small>',
rowsubformat4='<small><br/>$4 – $5</small>',
},
metadata = {
description = "پرانيستو او تړلو وخت",
option = "",
type = "",
}
}
end
building.description["cornerstonelaying"] = ""
function building.cornerstonelaying()
return {
type = "multi",
rows = {
{
type = "row",
value = {"بنسټ_ايښودل", "بنسټ_ايښودو_نېټه", "groundbreaking_date", "broke_ground", "broke ground"},
label = "بنسټ ايښودل",
wikidata = keyDate("Q18752057"),
metadata = {
description = "د موضوع لپاره د بنسټ ډبرې ایښودلو نېټه",
option = "",
type = "date",
}
}
}
}
end
building.description["construction"] = ""
function building.construction()
return {
type = "multi",
rows = {
{
type = "row",
label = "د ودانولو د کار پیل",
value = {"د ودانولو د کار پیل", "تاريخ_بدء_البناء", "start_date", "construction_start_date"},
wikidata = keyDate("Q27136782"),
--wikidata2 = {property = "P571"},
metadata = {
description = "جوړېدو پيل نېټه",
option = "",
type = "date",
}
},
{
type = "row",
label = "ساختماني کار ودرول",
value = {"کار_ودرول", "کار_بنديز", "stop_date", "construction_stop_date"},
--, wikidata = {property='P'},
metadata = {
description = "ودانولو کاربندېدو نېټه",
option = "",
type = "date",
}
},
{
type = "row",
label = "لوی کار پای",
value = {"لوی_کار_پای", "topped_out_date"},
wikidata = keyDate("Q1075723"),
metadata = {
description = "مهمو کارونو پای نېټه",
option = "",
type = "date",
}
},
{
type = "row",
label = "بشپړېدنه",
value = {"نهاية_التشييد", "بشپړېدنه", "est_completion", "completion_date"},
wikidata = keyDate("Q59913255"),
metadata = {
description = "کار بشپړېدو نېټه",
option = "",
type = "date",
}
},
{
type = "row",
value = {"ودانولو وخت", "ودانولو وخت", "ودانولو وخت"},
label = "ودانولو وخت",
wikidata = keyDate("Q385378"),
metadata = {
description = "",
option = "",
type = "",
}
}
}
}
end
building.description["reconstruction"] = ""
function building.reconstruction()
return {
type = "multi",
rows = {
{
type = "row",
value = {"بداية إعادة التشييد", "reconstruction_start_date"},
label = "بداية إعادة التشييد",
metadata = {
description = "",
option = "",
type = "date",
}
},
{
type = "row",
value = {"نهاية إعادة التشييد", "reconstruction_completion_date"},
label = "نهاية إعادة التشييد",
metadata = {
description = "",
option = "",
type = "date",
}
},
{
type = "row",
value = {"إعادة التشييد", "تاريخ إعادة التشييد"},
label = "إعادة التشييد",
wikidata = keyDate("Q1370468"),
metadata = {
description = "",
option = "",
type = "date",
}
}
}
}
end
building.description["opening"] = ""
function building.opening()
return {
type = "multi",
rows = {
{
type = "row",
value = {"تاريخ الافتتاح", "پرانیستل", "opened", "opening_date", "opening"},
label = "پرانیستل",
blockers = "پرانیستل",
wikidata = keyDate {"Q1417098,Q15051339"},
metadata = {
description = "",
option = "",
type = "date",
}
},
{
type = "row",
value = {"د رسمي پرانیستنې نېټه", "inauguration_date"},
label = "رسمي پرانیستنه",
blockers = "افتتاح",
-- P1619 = رسمي پرانیستنه, او نه تل اصلي پرانیستونکی
wikidata = {wikimod = "Wikidata.Ca", property = "P1619", listrank="bestrank",
qualifier = "P518 OR P1013",
formatting = "table",
conjunction = "<br />",
rowformat = "* $1 $0$R0",
rowsubformat1 = "$1 : ",
},
metadata = {
description = "",
option = "",
type = "date",
}
},
{
type = "row",
label = "التكريس",
value = {"تكريس", "consecration"},
blockers = "افتتاح",
wikidata = keyDate {"Q125375"},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
value = "لومړۍ رڼا",
label = "[[|لومړۍ رڼا(ستورپوهنه)|]]",
blockers = "پرانيسته",
wikidata = keyDate {"Q1306940"},
metadata = {
description = "",
option = "",
type = "",
}
}
}
}
end
building.description["renovation"] = ""
function building.renovation()
return {
type = "multi",
rows = {
{
type = "row",
description = "تاريخ التحديث",
label = "التحديث",
value = {"تاريخ_تحديث_المبنى", "renovation_date"},
--, wikidata = {property='P'},
metadata = {
description = "",
option = "",
type = "date",
}
},
{
type = "row",
description = "تاريخ الترميم",
value = {"ترميم", "restoration"},
label = "الترميم",
wikidata = keyDate {"Q217102"},
blockers = "تجديد",
metadata = {
description = "",
option = "",
type = "date",
}
},
{
type = "row",
description = "تاريخ التجديد",
value = {"تجديد", "renovation"},
label = "التجديد",
wikidata = keyDate {"Q2144402"},
blockers = "ترميم",
metadata = {
description = "",
option = "",
type = "date",
}
},
{
type = "row",
description = "تاريخ التوسعة",
value = {"توسعة", "التوسعة", "expansion"},
label = "التوسعة",
wikidata = keyDate {"Q9073584"},
blockers = "تجديد",
metadata = {
description = "",
option = "",
type = "date",
}
},
{
type = "row",
value = "أشغال أخرى",
label = "أشغال أخرى",
metadata = {
description = "تاريخ أشغال أخرى",
option = "",
type = "date",
}
}
}
}
end
building.description["demolition"] = ""
function building.demolition()
return {
type = "multi",
rows = {
{
type = "row",
label = "د ړنګېدو وخت",
value = {"د ړنګېدو وخت", "date_demolished", "demolished_date"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P576",
qualifier = "P770",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small>($1)</small>"
},
wikidata2 = keyDate("Q331483"),
metadata = {
description = "تاريخ الهدم",
option = "",
type = "date",
}
},
{
type = "row",
label = "التدمير",
value = {"تاريخ_تدمير_المبنى", "destruction_date", "destroyed"},
wikidata = {property = "P3082"},
wikidata2 = keyDate("Q17781833"),
metadata = {
description = "تاريخ التدمير",
option = "",
type = "date",
}
},
{
type = "row",
value = {"تخريب", "vandalism"},
label = "التخريب",
wikidata = keyDate("Q6160"),
metadata = {
description = "تاريخ التخريب",
option = "",
type = "date",
}
},
}
}
end
building.description["closure"] = ""
function building.closure()
return {
type = "row",
value = {"الإقفال", "تاريخ_الإقفال", "تاريخ_الإغلاق", "closing_date", "closed"},
label = "الإقفال",
wikidata = keyDate {"Q5135520"},
wikidata2 = {property = "P3999"},
metadata = {
description = "تاريخ الإغلاق",
option = "",
type = "date",
}
}
end
building.description["maintenance"] = ""
function building.maintenance()
return {
type = "row",
value = {"صيانة", "maintenance"},
label = "الصيانة",
wikidata = {
wikimod = "Wikidata.Ca",
property = "P126",
showDate = "true",
conjunction = "<br />"
},
metadata = {
description = "تاريخ الصيانة",
option = "",
type = "date",
}
}
end
building.description["usage"] = ""
function building.usage()
return {
type = "row",
label = "کارول",
value = {"استعمال","کارول","usage"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P366",
showDate = "true",
conjunction = "<br />",
list = "bestrank"
},
metadata = {
description = "الاستخدام الرئيسي (الحالي والسابق)",
option = "",
type = "",
}
}
end
building.description["operator"] = ""
function building.operator()
return {
type = "row",
label = "چلوونکی",
value = {"اداره کوونکی", "مسير", "مشغل", "operator", "چلوونکی"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P137",
showDate = "true",
conjunction = "<br />"
},
metadata = {
description = "الشخص أو الهيئة التي تدير المرفق",
option = "",
type = "",
}
}
end
building.description["transport"] = ""
function building.transport()
return {
type = "multi",
rows = {
{type = "row", label = "الموقف", value = "موقف"},
{type = "row", label = "محطة", value = "محطة"},
{type = "row", label = "الميترو", value = "ميترو"},
{type = "row", label = "ترمواي", value = {"قطار", "ترمواي"}},
{type = "row", label = "حافلة", value = {"باص", "حافلة"}}
}
}
end
building.description["part_of"] = ""
function building.part_of()
return {
type = "row",
label = "برخه د",
value = "برخه د",
wikidata = {
property = "P361"
},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["orientation"] = ""
function building.orientation()
return {
type = "row",
label = "الإتجاه",
value = {"إتجاه", "orientation"},
wikidata = {property = "P7469", numval = "1"},
metadata = {
description = "",
option = "",
type = "",
suggestedvalues = {"شمال","سوېل","ختيځ","لوېديځ","شمال-ختيځ","شمال-لوېديځ","سوېل-ختيځ","سوېل-لوېديځ"},
}
}
end
building.description["archistyle"] = ""
function building.archistyle()
return {
type = "multi",
rows = {
{
type = "row",
label = "د معماري سټایل",
plurallabel = "د معماري سټایل",
value = {"د معماري سټایل", "ودانۍ_ډول", "architectural_style", "architecture"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P149 OR P135"
},
metadata = {
description = "د ودانۍ جوړلو ډول",
option = "",
type = "",
}
}
}
}
end
building.description["creator"] = ""
function building.creator()
return {
type = "multi",
rows = {
{
type = "row",
label = "معمار",
plurallabel = "معمار",
value = {"معمار", "architect"},
wikidata = {property = "P84", conjunction = "<br />"},
metadata = {
description = "معمار",
option = "",
type = "",
}
},
{
type = "row",
label = "المهندس المدني",
plurallabel = "المهندسون المدنيون",
value = {"مهندس_مدني", "المهندس_المدني", "civil_engineer"},
--wikidata = {property = "P", conjunction = "<br />"},
metadata = {
description = "المهندس المدني",
option = "",
type = "",
}
},
{
type = "row",
label = "ساختماني معمار",
plurallabel = "ساختماني معمار",
value = {"مهندس", "ساختماني معمار"},
"structural_engineer",
wikidata = {property = "P631", conjunction = "<br />"},
metadata = {
description = "ساختماني معمار",
option = "",
type = "",
}
},
{
type = "row",
label = "بنسټګر",
plurallabel = "بنسټګر",
value = {"بنسټګر", "بنسټګر", "founder"},
wikidata = {property = "P112", conjunction = "<br />"},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "مصممون آخرون",
value = {"مصممين_آخرون", "other_designers"},
metadata = {
description = "",
option = "",
type = "",
}
}
}
}
end
building.description["owner"] = ""
function building.owner()
return {
type = "multi",
rows = {
{
type = "row",
description = "المالك لأرض المبنى",
label = "مالك الأرض",
value = {"مالك_الأرض", "landlord"},
--, wikidata = {property='P'},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "المالك الأول",
plurallabel = "الملاك الأوائل",
value = "المالك الأول",
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "المالك الحالي",
plurallabel = "الملاك الحاليون",
value = "المالك الحالي",
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "څښتن",
plurallabel = "څښتن",
value = {"څښتن", "owner", "څښتن"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P127",
conjunction="<br />",
showDate="true"
},
metadata = {
description = "",
option = "",
type = "",
}
}
}
}
end
building.description["religion"] = ""
function building.religion()
return {
type = "row",
label = "دین",
value = {"ديانة", "دين", "religion"},
wikidata={property = "P140"},
metadata = {
description = "الديانة التي تمارس طقوسها في هذا المبنى",
option = "",
type = "",
}
}
end
building.description["shape"] = ""
function building.shape()
return {
type = "row",
label = "الشكل",
value = {"شكل", "shape"},
property = "P1419",
metadata = {
description = "الشكل الهندسي",
option = "",
type = "",
}
}
end
building.description["dimensions"] = ""
function building.dimensions()
return {
type = "multi",
rows = {
{
type = "row",
label = "لوړوالی",
value = {"لوړوالی", "height"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2048",
qualifier = "P518 OR P1013",
list = "bestrank",
colformat0 = "unit",
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 = "هندسي لوړوالی",
value = {"هندسي لوړوالی","architectural height"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2048",
colformat0 = "unit",
formatting = "table",
qualifier1 = "P1013 OR P518",
rowformat = "$0$R0",
whitelist1 = "Q24192182"
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "ارتفاع الهوائي",
value = {"برج_الهوائي", "antenna_spire"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2048",
colformat0 = "unit",
formatting = "table",
qualifier = "P1013 OR P518",
rowformat = "$0$R0",
whitelist1 = "Q131214,Q852590"
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "تر ټولو لوړ پوړ",
value = {"تر ټولو لوړ پوړ", "top_floor"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2048",
qualifier = "P518 OR P1013",
list = "bestrank",
colformat0 = "unit",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small><br />($1)</small>",
whitelist1 = "Q31271474"
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "العمق",
value = "عمق",
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2610",
qualifier = "P518 OR P1013",
list = "bestrank",
colformat0 = "unit",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small><br />($1)</small>",
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "اوږدوالۍ",
value = {"اوږدوالۍ","length"},
wikidata = {
wikimod = "Wikidata.Ca",
formatting="table",
property = "P2043", qualifier2="P560",
qualifier = "P518 OR P1013",
list = "bestrank",
colformat0 = "unit",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1$2",
rowsubformat1 = "<small><br />($1)</small>",
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "برداروالۍ",
value = {"برداروالۍ","width"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2049",
qualifier = "P518 OR P1013",
list = "bestrank",
colformat0 = "unit",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small><br />($1)</small>",
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "د وزر پراخوالی",
value = {"د وزر پراخوالی","span"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2050",
qualifier = "P518 OR P1013",
list = "bestrank",
colformat0 = "unit",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small><br />($1)</small>",
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "قطر",
value = {"قطر", "قطر_المبنى", "diameter"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2386",
formatting = "unit"
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "چاپېريال",
value = {"چاپېريال", "محيط_المبنى", "circumference"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2547",
qualifier = "P518 OR P1013",
list = "bestrank",
colformat0 = "unit",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small><br />($1)</small>",
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "د ځای کچه",
value = {"د ځای کچه", "د ځای کچه","area"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2046",
formatting = "table",
conjunction = "<br />",
qualifier = "P518",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small>($1)</small>",
colformat0 = "unit"
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "الحجم",
value = {"حجم", "volume"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2234",
qualifier = "P518 OR P1013",
list = "bestrank",
colformat0 = "unit",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small><br />($1)</small>",
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "المسافة التحتية",
value = {"مسافة تحتية", "clearance"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2793",
formatting = "unit"
},
metadata = {
description = "",
option = "",
type = "",
}
}
}
}
end
building.description["floors"] = ""
function building.floors()
return {
type = "multi",
rows = {
{
type = "row",
label = "مساحة الطابق",
value = {"مساحة_الطابق_الواحد", "floor_area"},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "پوړه (طبقې)",
value = {
"پوړه ",
"طبقې",
"د پوړو شمېر",
"د ځمکې پورته پوړونه",
"floors above ground",
"floor_count"
},
wikidata={property = "P1101"},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "ځمکتلي",
value = {
"ځمکتل",
"طوابق أرضية",
"ځمکتلو شمېر",
"ځمکتلي",
"floors below ground"
},
wikidata={property = "P1139"},
metadata = {
description = "",
option = "",
type = "",
}
}
}
}
end
building.description["causeOfDestruction"] = ""
function building.causeOfDestruction()
return {
type = "row",
label = "سبب الدمار",
value = {"سبب الدمار", "cause of destruction"},
wikidata = {property = "P770"},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.destroyedby = building.causeOfDestruction
building.description["material"] = ""
function building.material()
return {
type = "row",
label = "ساختماني توکي",
plurallabel = "ساختماني توکي",
value = {"ساختماني توکي", "ساختماني مواد", "material"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P186",
qualifier = "P518",
formatting = "table",
conjunction = "<br />",
rowformat = "$0$R0 $1",
rowsubformat1 = "<small>($1)</small>"
},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["colour"] = ""
function building.colour()
return {
type = "row",
label = "اللون",
plurallabel = "الألوان",
value = {"لون", "ألوان"},
wikidata={property = "P462"},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["inscription"] = ""
function building.inscription()
return {
type = "row",
label = "لافتة",
value = {"لافتة", "يافطة"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P1684",
listmax = 1
},
metadata = {
description = "النقوش والعلامات والتوقيعات على الموضوع",
option = "",
type = "",
}
}
end
building.description["equipment"] = ""
function building.equipment()
return {
type = "row",
description = "التجهيزات التي يتم توفيرها",
label = "التجهيز",
plurallabel = "التجهيزات",
value = {"تجهيز", "التجهيز"},
wikidata={property = "P912"},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["replaces"] = generic.description["replaces"]
function building.replaces()
return generic.replaces()
end
building.description["replacedby"] = generic.description["replacedby"]
function building.replacedby()
return generic.replacedby()
end
building.description["visitors"] = ""
function building.visitors()
return {
type = "row",
label = "د لیدونکو کلنی شمېر",
value = {"لیدونکي", "په کال کې د لیدونکو شمیر", "لیدونکي"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P1174",
showDate = "true",
conjunction = "<br />",
list = "bestrank"
},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["protection"] = ""
function building.protection()
return {
type = "row",
label = "Statut patrimonial",
value = {"classement", "protection"},
--wikidata = {property ='P1425'},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["WHS_unesco"] = "د یونیسکو نړیوال میراث طبقه بندي په اړه د معلوماتو خپرول"
function building.WHS_unesco()
local subtitle = "[[دوتنه:World Heritage Logo.svg|20px]] [[د یونېسکو نړیوال میراث|د یونيسکو نړیوال میراث]]"
return {
type = "multi",
rows = {
{type="row1col",
style={['background-color'] = '#F3F3F3',['font-weight'] = 'bold'},
wikidata = {wikimod = "Wikidata.Ca", property = "P1435", list=1,
whitelist0 = "Q43113623,Q16617071,Q52683527,Q52683530,Q1459900",
formatting="table", editicon='false',
rowformat= subtitle
},
wikidata2 = {wikimod = "Wikidata.Ca",
property = "P2614 OR P757", editicon='false', list=1,
formatting ="table",
rowformat= subtitle
}
},
{
type = "row",
label = "د ميراث ډول",
value = {"د ميراث ډول","WH type"},
wikidata = {wikimod = "Wikidata.Ca",
property = "P1435",
whitelist0 = "Q9259,Q43113623,Q16617071,Q52683527,Q52683530,Q1459900",
formatting="table",
rowformat="* $0$R0 $1", qualifier1='P361',
rowsubformat1='<small><br />(د $1 برخه)</small>'
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "د ميراثېدو کال",
value = {"د ميراثېدو کال","WH year"},
wikidata = {wikimod = "Wikidata.Ca",
property = "P1435",
whitelist0 = "Q43113623,Q9259,Q16617071,Q52683527,Q52683530,Q1459900",
qualifier1 = "P580", qualifier2 = "P582",
colformat1='Y', colformat2='Y',
formatting="table", rowformat="$1",
rowsubformat1 = "$1$2", rowsubformat2 = " إلى $2"
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "[[د یونېسکو نړیوال میراث|میراثونه]]",
value = {"میراثونه","WH criteria"},
wikidata = {wikimod = "Wikidata.Ca",
property = "P2614", colformat0="label", formatting="table", rowformat="$0",
case=function(v)
if(type(v) == 'string') then
return mw.ustring.gsub( v, "د یونېسکو نړیوال میراث", "" )
end
return v
end
},
metadata = {
description = "",
option = "",
type = "",
}
},
{
type = "row",
label = "د پېژندنې شمیره",
value = {"د پېژندنې شمیره","WH id"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P1435", qualifier = "P217 or /P757",
whitelist0 = "Q43113623,Q9259,Q16617071,Q52683527,Q52683530,Q1459900",
formatting ="table",
rowformat = "[https://whc.unesco.org/ar/list/$1 $1]"},
metadata = {
description = "",
option = "",
type = "",
}
}
}
}
end
building.description["heritage"] = ""
function building.heritage()
return {
type = "row",
label = "د تاريخي اثارو ډلبندي",
plurallabel = "د تاريخي اثارو ډلبندي",
value = {"اثار","heritage"},
wikidata = {wikimod = "Wikidata.Ca",
property = "P1435",
blacklist0 = "Q9259,Q43113623,Q16617071,Q52683527,Q52683530,Q1459900",
formatting="table",
rowformat="* $0$R0", showDate='true'
},
metadata = {
description = "",
option = "",
type = "",
}
}
end
building.description["danger"] = ""
function building.danger()
return {
type = "row",
label = "الخطر",
plurallabel = "الأخطار",
value = {"خطر", "danger", "dangers"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P3335",
listmax = 5
},
metadata = {
description = "المخاطر التي يتعرض لها",
option = "",
type = "",
}
}
end
building.description["policy"] = ""
function building.policy()
return {
type = "row",
label = "القانون",
plurallabel = "القوانين",
value = {"قانون", "policy"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P5023",
listmax = 5
},
metadata = {
description = "السياسة والقوانين المتبعة",
option = "",
type = "",
}
}
end
building.description["geoloc"] = generic.description["geoloc"]
function building.geoloc(params)
return generic.geoloc(params)
end
building.description["awards"] = generic.description["awards"]
function building.awards()
return generic.awards(params)
end
building.description["recordheld"] = ""
function building.recordheld()
return {
type = "row",
label = "رقم قياسي",
plurallabel = "أرقام قياسية",
value = {"رقم_قياسي", "record"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P1000",
showDate = "true",
listmax = 3,
conjunction = "<br />"
},
metadata = {
description = "الأرقام القياسية المسجلة",
option = "",
type = "",
}
}
end
building.description["significantEvent"] = ""
function building.significantEvent()
return {
type = "row",
label = "مهمې پېښې",
value = {"مهمې پېښې", "تواريخ_مهمة", "significant_event", "events"},
wikidata = {
wikimod = "Wikidata.Ca",
formatting = "table",
property = "P793",
qualifier1 = "P642",
qualifier2 = "P585",
qualifier3 = "P580",
qualifier4 = "P582",
rowsubformat1 = "$1 $3",
rowsubformat2 = "$2 :",
rowsubformat3 = "<small><br />($3$4)</small>",
rowsubformat4 = " - $4",
rowformat = "* $2 $0 $1 $R0",
--conjunction = '<div />',
blacklist0 = "Q18752057,Q385378,Q1370468,Q15051339,Q1417098,"
.. "Q125375,Q1306940,Q217102,Q2144402,Q18621193,Q331483,"
.. "Q17781833,Q6160,Q5135520,Q27136782,Q59913255"
},
metadata = {
description = "أهم الأحداث التي شهدها",
option = "",
type = "",
}
}
end
building.description["facilities"] = ""
function building.facilities()
return {
type = "row",
label = "تاسیسات",
value = {"تاسیسات", "facilities"},
wikidata = {
wikimod = "Wikidata.Ca",
property = "P2670",
formatting = "table",
qualifier1 = "P1114 OR P31 OR P580 OR P582 OR P149",
qualifier6 = "P1114",
qualifier2 = "P31",
qualifier3 = "P580",
qualifier4 = "P582",
qualifier5 = "P149",
rowsubformat1 = ":<small>$6$2$3$5</small>",
rowsubformat6 = " شمېر $6",
rowsubformat2 = "<br /> $2",
rowsubformat3 = "<br /> (منذ $3$4)",
rowsubformat4 = " حتى $4",
rowsubformat5 = " ''الطراز المعماري'': $5",
rowformat = "* '''$0'''$R0 $1"
},
metadata = {
description = "مرافق المبنى الخاصة",
option = "",
type = "string",
}
}
end
return building