پرش به محتوا

پودمان:AlborzInfoBox/Data/Geography: تفاوت میان نسخه‌ها

از ویکی البرز
جزبدون خلاصۀ ویرایش
جزبدون خلاصۀ ویرایش
خط ۲: خط ۲:


p.fields = {
p.fields = {
     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
     -- اطلاعات پایه
     -- اطلاعات پایه
     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
    country = { label = "کشور", arg = "کشور", default = "ایران" },
    province = { label = "استان", arg = "استان", default = "البرز" },
    county = { label = "شهرستان", args = {"شهرستان", "شهرستان "} },
    district = { label = "بخش", arg = "بخش" },
    ruraldistrict = { label = "دهستان", arg = "دهستان" },
    city = { label = "شهر", args = {"شهر", "شهر "} },
    capital = { label = "مرکز", arg = "مرکز" },


     country = {
     ------------------------------------------------------------------------
        label = "کشور",
    -- فیلدهای جدید برای شهرستان
        arg = "کشور",
    ------------------------------------------------------------------------
        default = "ایران"
    officialName = { label = "نام‌رسمی", arg = "نام‌رسمی" },
    },
    yearEstablished = { label = "سال‌شهرستان‌شدن", arg = "سال‌شهرستان‌شدن" },
 
     cities = { label = "شهرها", arg = "شهرها" },
     province = {
     districts = { label = "بخش‌ها", arg = "بخش‌ها" },
        label = "استان",
     density = { label = "تراکم‌جمعیت", arg = "تراکم‌جمعیت" },
        arg = "استان",
     governor = { label = "فرماندار", arg = "فرماندار" },
        default = "البرز"
     electoralDistrict = { label = "حوزه انتخابیه", arg = "حوزه انتخابیه" },
    },
     religion = { label = "مذهب", arg = "مذهب" },
 
     county = {
        label = "شهرستان",
        args = {"شهرستان", "شهرستان "}
    },
 
     district = {
        label = "بخش",
        arg = "بخش"
    },
 
     ruraldistrict = {
        label = "دهستان",
        arg = "دهستان"
    },
 
     city = {
        label = "شهر",
        args = {"شهر", "شهر "}
    },
 
     capital = {
        label = "مرکز",
        arg = "مرکز"
    },


     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
     -- آمار
     -- آمار
     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
 
     population = { label = "جمعیت", arg = "جمعیت" },
     population = {
     area = { label = "مساحت", arg = "مساحت" },
        label = "جمعیت",
     elevation = { label = "ارتفاع", arg = "ارتفاع" },
        arg = "جمعیت"
    },
 
     area = {
        label = "مساحت",
        arg = "مساحت"
    },
 
     elevation = {
        label = "ارتفاع",
        arg = "ارتفاع"
    },


     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
     -- مدیریت
     -- مدیریت
     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
 
     mayor = { label = "شهردار", arg = "شهردار" },
     mayor = {
        label = "شهردار",
        arg = "شهردار"
    },


     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
     -- ارتباطات
     -- ارتباطات
     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
 
     phone = { label = "پیش‌شماره", args = {"پیش‌شماره", "شماره تلفن", "تلفن"} },
     phone = {
     plate = { label = "پلاک خودرو", arg = "پلاک خودرو" },
        label = "پیش‌شماره",
     website = { label = "وبگاه", args = {"وبگاه", "وب‌سایت", "سایت"} },
        args = {"پیش‌شماره", "شماره تلفن", "تلفن"}
    },
 
     plate = {
        label = "پلاک خودرو",
        arg = "پلاک خودرو"
    },
 
     website = {
        label = "وبگاه",
        args = {"وبگاه", "وب‌سایت", "سایت"}
    },


     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
     -- تاریخ
     -- تاریخ
     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
 
     established = { label = "سال تأسیس", arg = "سال تأسیس" },
     established = {
        label = "سال تأسیس",
        arg = "سال تأسیس"
    },


     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
     -- رودخانه
     -- سایر فیلدها (همان قبلی‌ها)
     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
    altNames = { label = "نام‌های دیگر", args = {"نام‌های دیگر", "نام دیگر"} },
    historicType = { label = "نوع", args = {"نوع بنا", "نوع بنای تاریخی"} },
    location = { label = "موقعیت", arg = "موقعیت" },
    mainUse = { label = "کاربری اصلی", args = {"کاربری اصلی", "کاربری"} },
    currentUse = { label = "کاربری فعلی", arg = "کاربری فعلی" },
    architecture = { label = "سبک معماری", arg = "سبک معماری" },
    period = { label = "دوره ساخت", args = {"دوره ساخت", "دوره تاریخی", "دوران", "دوره"} },
    built = { label = "سال ساخت", args = {"سال ساخت", "تاریخ ساخت"} },
    builder = { label = "بانی", arg = "بانی" },
    architect = { label = "معمار", arg = "معمار" },
    material = { label = "مصالح", arg = "مصالح" },
    status = { label = "وضعیت", arg = "وضعیت" },
    access = { label = "دسترسی", arg = "دسترسی" },
    ownership = { label = "مالک", args = {"مالک", "مالکیت"} },
    registration = { label = "شماره ثبت", args = {"شماره ثبت", "شمارهٔ ثبت", "شماره ثبت ملی"} },
    registrationDate = { label = "تاریخ ثبت", args = {"تاریخ ثبت", "تاریخ ثبت ملی"} },
    responsibleOrganization = { label = "سازمان مسئول", args = {"سازمان مسئول", "سازمان"} },
    coordinates = { label = "مختصات", args = {"مختصات", "coord", "مختصات جغرافیایی"} },
    footnotes = { label = "پانویس", arg = "پانویس" }
}


     river = {
-- نقشه تبدیل نوع
        label = "رودخانه",
p.typeMap = {
        arg = "رودخانه"
     ["بنای تاریخی"] = "historic", ["historic"] = "historic",
     },
    ["شهر"] = "city", ["روستا"] = "village",
    ["شهرستان"] = "county", ["بخش"] = "district",
    ["دهستان"] = "ruraldistrict",
    ["کوه"] = "mountain", ["غار"] = "cave",
    ["رودخانه"] = "river", ["آبشار"] = "waterfall",
     ["پارک"] = "park",
}


     source = {
-- چیدمان‌ها
         label = "سرچشمه",
p.layouts = {
         arg = "سرچشمه"
     city = {
         "country", "province", "county", "district", "city",
        "population", "area", "elevation", "mayor",
         "phone", "plate", "website", "footnotes"
     },
     },


     mouth = {
     village = {
         label = "ریزشگاه",
         "country", "province", "county", "district", "ruraldistrict",
         arg = "ریزشگاه"
         "population", "elevation", "website", "footnotes"
     },
     },


     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
     -- غار
     -- شهرستان (بهبود یافته)
     ------------------------------------------------------------------------
     ------------------------------------------------------------------------
 
     county = {
     length = {
         "country", "province",
         label = "طول",
        "officialName",
         arg = "طول"
        "capital",
        "yearEstablished",
        "cities",
        "districts",
        "population",
        "area",
        "density",
        "phone",
        "governor",
        "electoralDistrict",
        "religion",
        "website",
         "footnotes"
     },
     },


     depth = {
     district = {
         label = "عمق",
         "country", "province", "county", "capital",
         arg = "عمق"
         "population", "website", "footnotes"
     },
     },


     ------------------------------------------------------------------------
     ruraldistrict = {
    -- کوه
         "country", "province", "county", "district", "capital",
    ------------------------------------------------------------------------
         "population", "website", "footnotes"
 
    mountainrange = {
        label = "رشته‌کوه",
        arg = "رشته‌کوه"
    },
 
    ------------------------------------------------------------------------
    -- آبشار
    ------------------------------------------------------------------------
 
    waterfallheight = {
        label = "ارتفاع آبشار",
        args = {"ارتفاع آبشار", "ارتفاع"}
    },
 
    ------------------------------------------------------------------------
    -- بنای تاریخی
    ------------------------------------------------------------------------
 
    altNames = {
        label = "نام‌های دیگر",
        args = {"نام‌های دیگر", "نام دیگر"}
    },
 
historicType = {
    label = "نوع",
    args = {"نوع بنا", "نوع بنای تاریخی"}
},
 
    location = {
        label = "موقعیت",
        arg = "موقعیت"
    },
 
    mainUse = {
        label = "کاربری اصلی",
        args = {"کاربری اصلی", "کاربری"}
    },
 
    currentUse = {
        label = "کاربری فعلی",
        arg = "کاربری فعلی"
    },
 
    architecture = {
        label = "سبک معماری",
        arg = "سبک معماری"
    },
 
    period = {
         label = "دوره ساخت",
        args = {"دوره ساخت", "دوره تاریخی", "دوران", "دوره"}
    },
 
    built = {
        label = "سال ساخت",
         args = {"سال ساخت", "تاریخ ساخت"}
    },
 
    builder = {
        label = "بانی",
        arg = "بانی"
    },
 
    architect = {
        label = "معمار",
        arg = "معمار"
    },
 
    material = {
        label = "مصالح",
        arg = "مصالح"
    },
 
    status = {
        label = "وضعیت",
        arg = "وضعیت"
    },
 
    access = {
        label = "دسترسی",
        arg = "دسترسی"
    },
 
    ownership = {
        label = "مالک",
        args = {"مالک", "مالکیت"}
    },
 
    registration = {
        label = "شماره ثبت",
        args = {"شماره ثبت", "شمارهٔ ثبت", "شماره ثبت ملی"}
    },
 
    registrationDate = {
        label = "تاریخ ثبت",
        args = {"تاریخ ثبت", "تاریخ ثبت ملی"}
    },
 
    responsibleOrganization = {
        label = "سازمان مسئول",
        args = {"سازمان مسئول", "سازمان"}
    },
 
    latitude = {
        label = "عرض جغرافیایی",
        arg = "عرض جغرافیایی"
    },
 
    longitude = {
        label = "طول جغرافیایی",
        arg = "طول جغرافیایی"
    },
 
    coordinates = {
        label = "مختصات",
        args = {"مختصات", "coord", "مختصات جغرافیایی"}
     },
     },


     ------------------------------------------------------------------------
     mountain = { "province", "county", "elevation", "mountainrange", "footnotes" },
     -- سایر
     cave = { "province", "county", "length", "depth", "footnotes" },
     ------------------------------------------------------------------------
     waterfall = { "province", "county", "river", "waterfallheight", "footnotes" },
    river = { "province", "length", "source", "mouth", "footnotes" },
    park = { "province", "county", "area", "established", "website", "footnotes" },


     footnotes = {
     historic = {
         label = "پانویس",
         "altNames", "historicType", "location", "country", "province", "county", "district", "city",
         arg = "پانویس"
        "mainUse", "currentUse", "architecture", "period", "built", "builder", "architect",
        "material", "area", "elevation", "status", "registration", "registrationDate",
         "responsibleOrganization", "access", "ownership", "phone", "website", "coordinates", "footnotes"
     }
     }
}
-- نقشه تبدیل نوع نمایش به کلید داخلی
p.typeMap = {
    ["بنای تاریخی"] = "historic",
    ["historic"]    = "historic",
    ["شهر"]        = "city",
    ["روستا"]      = "village",
    ["شهرستان"]    = "county",
    ["بخش"]        = "district",
    ["دهستان"]      = "ruraldistrict",
    ["کوه"]        = "mountain",
    ["غار"]        = "cave",
    ["رودخانه"]    = "river",
    ["آبشار"]      = "waterfall",
    ["پارک"]        = "park",
}
p.layouts = {
------------------------------------------------------------------------
-- شهر
------------------------------------------------------------------------
city = {
    "country", "province", "county", "district", "city",
    "population", "area", "elevation",
    "mayor",
    "phone", "plate", "website",
    "footnotes"
},
------------------------------------------------------------------------
-- روستا
------------------------------------------------------------------------
village = {
    "country", "province", "county", "district", "ruraldistrict",
    "population", "elevation",
    "website",
    "footnotes"
},
------------------------------------------------------------------------
-- شهرستان
------------------------------------------------------------------------
county = {
    "country", "province",
    "capital",
    "population", "area",
    "website",
    "footnotes"
},
------------------------------------------------------------------------
-- بخش
------------------------------------------------------------------------
district = {
    "country", "province", "county",
    "capital",
    "population",
    "website",
    "footnotes"
},
------------------------------------------------------------------------
-- دهستان
------------------------------------------------------------------------
ruraldistrict = {
    "country", "province", "county", "district",
    "capital",
    "population",
    "website",
    "footnotes"
},
------------------------------------------------------------------------
-- کوه
------------------------------------------------------------------------
mountain = {
    "province", "county",
    "elevation",
    "mountainrange",
    "footnotes"
},
------------------------------------------------------------------------
-- غار
------------------------------------------------------------------------
cave = {
    "province", "county",
    "length", "depth",
    "footnotes"
},
------------------------------------------------------------------------
-- آبشار
------------------------------------------------------------------------
waterfall = {
    "province", "county",
    "river",
    "waterfallheight",
    "footnotes"
},
------------------------------------------------------------------------
-- رودخانه
------------------------------------------------------------------------
river = {
    "province",
    "length",
    "source", "mouth",
    "footnotes"
},
------------------------------------------------------------------------
-- پارک
------------------------------------------------------------------------
park = {
    "province", "county",
    "area",
    "established",
    "website",
    "footnotes"
},
------------------------------------------------------------------------
-- بنای تاریخی (بهبود یافته)
------------------------------------------------------------------------
historic = {
    -- هویت
    "altNames",
    "historicType",
    -- مکان
    "location",
    "country", "province", "county", "district", "city",
    -- فنی
    "mainUse",
    "currentUse",
    "architecture",
    -- تاریخ
    "period",
    "built",
    "builder",
    "architect",
    -- فیزیکی
    "material",
    "area",
    "elevation",
    -- ثبت
    "status",
    "registration",
    "registrationDate",
    "responsibleOrganization",
    -- دسترسی و سایر
    "access",
    "ownership",
    "phone",
    "website",
    "coordinates",
    "footnotes"
}
}
}


return p
return p

نسخهٔ ‏۴ ژوئیهٔ ۲۰۲۶، ساعت ۱۵:۱۹

توضیحات این پودمان می‌تواند در پودمان:AlborzInfoBox/Data/Geography/توضیحات قرار گیرد.

local p = {}

p.fields = {
    ------------------------------------------------------------------------
    -- اطلاعات پایه
    ------------------------------------------------------------------------
    country = { label = "کشور", arg = "کشور", default = "ایران" },
    province = { label = "استان", arg = "استان", default = "البرز" },
    county = { label = "شهرستان", args = {"شهرستان", "شهرستان "} },
    district = { label = "بخش", arg = "بخش" },
    ruraldistrict = { label = "دهستان", arg = "دهستان" },
    city = { label = "شهر", args = {"شهر", "شهر "} },
    capital = { label = "مرکز", arg = "مرکز" },

    ------------------------------------------------------------------------
    -- فیلدهای جدید برای شهرستان
    ------------------------------------------------------------------------
    officialName = { label = "نام‌رسمی", arg = "نام‌رسمی" },
    yearEstablished = { label = "سال‌شهرستان‌شدن", arg = "سال‌شهرستان‌شدن" },
    cities = { label = "شهرها", arg = "شهرها" },
    districts = { label = "بخش‌ها", arg = "بخش‌ها" },
    density = { label = "تراکم‌جمعیت", arg = "تراکم‌جمعیت" },
    governor = { label = "فرماندار", arg = "فرماندار" },
    electoralDistrict = { label = "حوزه انتخابیه", arg = "حوزه انتخابیه" },
    religion = { label = "مذهب", arg = "مذهب" },

    ------------------------------------------------------------------------
    -- آمار
    ------------------------------------------------------------------------
    population = { label = "جمعیت", arg = "جمعیت" },
    area = { label = "مساحت", arg = "مساحت" },
    elevation = { label = "ارتفاع", arg = "ارتفاع" },

    ------------------------------------------------------------------------
    -- مدیریت
    ------------------------------------------------------------------------
    mayor = { label = "شهردار", arg = "شهردار" },

    ------------------------------------------------------------------------
    -- ارتباطات
    ------------------------------------------------------------------------
    phone = { label = "پیش‌شماره", args = {"پیش‌شماره", "شماره تلفن", "تلفن"} },
    plate = { label = "پلاک خودرو", arg = "پلاک خودرو" },
    website = { label = "وبگاه", args = {"وبگاه", "وب‌سایت", "سایت"} },

    ------------------------------------------------------------------------
    -- تاریخ
    ------------------------------------------------------------------------
    established = { label = "سال تأسیس", arg = "سال تأسیس" },

    ------------------------------------------------------------------------
    -- سایر فیلدها (همان قبلی‌ها)
    ------------------------------------------------------------------------
    altNames = { label = "نام‌های دیگر", args = {"نام‌های دیگر", "نام دیگر"} },
    historicType = { label = "نوع", args = {"نوع بنا", "نوع بنای تاریخی"} },
    location = { label = "موقعیت", arg = "موقعیت" },
    mainUse = { label = "کاربری اصلی", args = {"کاربری اصلی", "کاربری"} },
    currentUse = { label = "کاربری فعلی", arg = "کاربری فعلی" },
    architecture = { label = "سبک معماری", arg = "سبک معماری" },
    period = { label = "دوره ساخت", args = {"دوره ساخت", "دوره تاریخی", "دوران", "دوره"} },
    built = { label = "سال ساخت", args = {"سال ساخت", "تاریخ ساخت"} },
    builder = { label = "بانی", arg = "بانی" },
    architect = { label = "معمار", arg = "معمار" },
    material = { label = "مصالح", arg = "مصالح" },
    status = { label = "وضعیت", arg = "وضعیت" },
    access = { label = "دسترسی", arg = "دسترسی" },
    ownership = { label = "مالک", args = {"مالک", "مالکیت"} },
    registration = { label = "شماره ثبت", args = {"شماره ثبت", "شمارهٔ ثبت", "شماره ثبت ملی"} },
    registrationDate = { label = "تاریخ ثبت", args = {"تاریخ ثبت", "تاریخ ثبت ملی"} },
    responsibleOrganization = { label = "سازمان مسئول", args = {"سازمان مسئول", "سازمان"} },
    coordinates = { label = "مختصات", args = {"مختصات", "coord", "مختصات جغرافیایی"} },
    footnotes = { label = "پانویس", arg = "پانویس" }
}

-- نقشه تبدیل نوع
p.typeMap = {
    ["بنای تاریخی"] = "historic", ["historic"] = "historic",
    ["شهر"] = "city", ["روستا"] = "village",
    ["شهرستان"] = "county", ["بخش"] = "district",
    ["دهستان"] = "ruraldistrict",
    ["کوه"] = "mountain", ["غار"] = "cave",
    ["رودخانه"] = "river", ["آبشار"] = "waterfall",
    ["پارک"] = "park",
}

-- چیدمان‌ها
p.layouts = {
    city = {
        "country", "province", "county", "district", "city",
        "population", "area", "elevation", "mayor",
        "phone", "plate", "website", "footnotes"
    },

    village = {
        "country", "province", "county", "district", "ruraldistrict",
        "population", "elevation", "website", "footnotes"
    },

    ------------------------------------------------------------------------
    -- شهرستان (بهبود یافته)
    ------------------------------------------------------------------------
    county = {
        "country", "province",
        "officialName",
        "capital",
        "yearEstablished",
        "cities",
        "districts",
        "population",
        "area",
        "density",
        "phone",
        "governor",
        "electoralDistrict",
        "religion",
        "website",
        "footnotes"
    },

    district = {
        "country", "province", "county", "capital",
        "population", "website", "footnotes"
    },

    ruraldistrict = {
        "country", "province", "county", "district", "capital",
        "population", "website", "footnotes"
    },

    mountain = { "province", "county", "elevation", "mountainrange", "footnotes" },
    cave = { "province", "county", "length", "depth", "footnotes" },
    waterfall = { "province", "county", "river", "waterfallheight", "footnotes" },
    river = { "province", "length", "source", "mouth", "footnotes" },
    park = { "province", "county", "area", "established", "website", "footnotes" },

    historic = {
        "altNames", "historicType", "location", "country", "province", "county", "district", "city",
        "mainUse", "currentUse", "architecture", "period", "built", "builder", "architect",
        "material", "area", "elevation", "status", "registration", "registrationDate",
        "responsibleOrganization", "access", "ownership", "phone", "website", "coordinates", "footnotes"
    }
}

return p