پرش به محتوا

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

از ویکی البرز
جزبدون خلاصۀ ویرایش
جزبدون خلاصۀ ویرایش
خط ۲: خط ۲:
-- Module:AlborzSports/Data
-- Module:AlborzSports/Data
-- Wiki Alborz Sports Information System
-- Wiki Alborz Sports Information System
-- Version 2.1
-- Version 3.0
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


خط ۹۷: خط ۹۷:
-- Personal Information
-- Personal Information
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
    gender                      = "gender",
    ["جنسیت"]                  = "gender",


     country                    = "country",
     country                    = "country",
خط ۱۲۲: خط ۱۲۵:
     residence                  = "residence",
     residence                  = "residence",
     ["محل سکونت"]              = "residence",
     ["محل سکونت"]              = "residence",
    occupation                  = "occupation",
    ["پیشه"]                    = "occupation",


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Physical
-- Family
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


     height                     = "height",
     father                     = "father",
     ["قد"]                      = "height",
     ["پدر"]                     = "father",
 
    mother                      = "mother",
    ["مادر"]                    = "mother",
 
    parents                    = "parents",
    ["والدین"]                  = "parents",
 
    spouse                     = "spouse",
    ["همسر"]                    = "spouse",


     weight                      = "weight",
     children                    = "children",
     ["وزن"]                     = "weight",
     ["فرزندان"]                 = "children",


     handed                      = "handed",
     siblings                    = "siblings",
     ["دست غالب"]               = "handed",
     ["خواهران و برادران"]       = "siblings",


     foot                        = "foot",
     relatives                  = "relatives",
     ["پای تخصصی"]               = "foot",
     ["خویشاوندان"]             = "relatives",


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
خط ۱۴۸: خط ۱۶۳:
     university                  = "university",
     university                  = "university",
     ["دانشگاه"]                = "university",
     ["دانشگاه"]                = "university",
    alma_mater                  = "alma_mater",
    ["دانش‌آموخته"]            = "alma_mater",
--------------------------------------------------------------------------------
-- Physical
--------------------------------------------------------------------------------
    height                      = "height",
    ["قد"]                      = "height",
    weight                      = "weight",
    ["وزن"]                    = "weight",
    handed                      = "handed",
    ["دست غالب"]                = "handed",
    foot                        = "foot",
    ["پای تخصصی"]              = "foot",


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
خط ۱۷۵: خط ۲۰۹:
     twitter                    = "x",
     twitter                    = "x",
     ["ایکس"]                    = "x",
     ["ایکس"]                    = "x",
 
    --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Sport
-- General Sport
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


خط ۱۹۱: خط ۲۲۴:
     years_active                = "years_active",
     years_active                = "years_active",
     ["سال‌های فعالیت"]          = "years_active",
     ["سال‌های فعالیت"]          = "years_active",
    coach                      = "coach",
    ["مربی"]                    = "coach",
    debut                      = "debut",
    ["آغاز فعالیت"]            = "debut",
    retirement                  = "retirement",
    ["بازنشستگی"]              = "retirement",
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Player
-- Athlete (Player)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


خط ۲۵۸: خط ۳۰۱:
     management_term            = "management_term",
     management_term            = "management_term",
     ["دوره مدیریت"]            = "management_term",
     ["دوره مدیریت"]            = "management_term",
    founder                    = "founder",
    ["بنیانگذار"]              = "founder",
    operator                    = "operator",
    ["بهره‌بردار"]              = "operator",


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
خط ۲۷۱: خط ۳۰۸:
     established                = "established",
     established                = "established",
     ["تأسیس"]                  = "established",
     ["تأسیس"]                  = "established",
    founder                    = "founder",
    ["بنیانگذار"]              = "founder",


     owner                      = "owner",
     owner                      = "owner",
     ["مالک"]                    = "owner",
     ["مالک"]                    = "owner",
    operator                    = "operator",
    ["بهره‌بردار"]              = "operator",


     president                  = "president",
     president                  = "president",
خط ۲۸۶: خط ۳۲۹:
     stadium                    = "stadium",
     stadium                    = "stadium",
     ["ورزشگاه"]                = "stadium",
     ["ورزشگاه"]                = "stadium",
    league                      = "league",
    ["لیگ"]                    = "league",
    colors                      = "colors",
    ["رنگ‌ها"]                  = "colors",
    motto                      = "motto",
    ["شعار"]                    = "motto",
    logo                        = "logo",
    ["نشان"]                    = "logo",


     capacity                    = "capacity",
     capacity                    = "capacity",
خط ۲۹۶: خط ۳۵۱:
     facility_type              = "facility_type",
     facility_type              = "facility_type",
     ["نوع مجموعه"]              = "facility_type",
     ["نوع مجموعه"]              = "facility_type",
    sports                      = "sports",
    ["رشته‌های ورزشی"]          = "sports",
    surface                    = "surface",
    ["سطح زمین"]                = "surface",
    architect                  = "architect",
    ["معمار"]                  = "architect",
--------------------------------------------------------------------------------
-- Location
--------------------------------------------------------------------------------


     province                    = "province",
     province                    = "province",
خط ۳۱۳: خط ۳۸۱:


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Federation / Board
-- Federation / Sports Board
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


خط ۳۲۴: خط ۳۹۲:
     chairman                    = "chairman",
     chairman                    = "chairman",
     ["رئیس هیئت"]              = "chairman",
     ["رئیس هیئت"]              = "chairman",
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Competition
-- Competition
خط ۳۳۳: خط ۴۰۲:
     season                      = "season",
     season                      = "season",
     ["فصل"]                    = "season",
     ["فصل"]                    = "season",
    level                      = "level",
    ["سطح مسابقات"]            = "level",


     champion                    = "champion",
     champion                    = "champion",
خط ۳۳۹: خط ۴۱۱:
     runner_up                  = "runner_up",
     runner_up                  = "runner_up",
     ["نایب قهرمان"]            = "runner_up",
     ["نایب قهرمان"]            = "runner_up",
    level                      = "level",
    ["سطح مسابقات"]            = "level",


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
خط ۳۴۹: خط ۴۱۸:
     honors                      = "honors",
     honors                      = "honors",
     ["افتخارات"]                = "honors",
     ["افتخارات"]                = "honors",
    awards                      = "awards",
    ["جوایز"]                  = "awards",
    records                    = "records",
    ["رکوردها"]                = "records",


     medals                      = "medals",
     medals                      = "medals",
خط ۳۵۶: خط ۴۳۱:


}
}
--------------------------------------------------------------------------------
-- FIELD DEFINITIONS
--------------------------------------------------------------------------------
p.fieldDefinitions = {
--------------------------------------------------------------------------------
-- Identity
--------------------------------------------------------------------------------


    id                  = { label = "شناسه" },
    name                = { label = "نام" },
    fullname            = { label = "نام کامل" },
    native_name        = { label = "نام بومی" },
    english_name        = { label = "نام انگلیسی" },
    nickname            = { label = "لقب" },
--------------------------------------------------------------------------------
-- Personal
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- LAYOUTS
 
    gender              = { label = "جنسیت" },
    country            = { label = "کشور" },
    nationality        = { label = "ملیت" },
 
    birth_date          = { label = "زادروز" },
    birth_place        = { label = "محل تولد" },
 
    death_date          = { label = "درگذشت" },
    death_place        = { label = "محل درگذشت" },
 
    hometown            = { label = "زادگاه" },
    residence          = { label = "محل سکونت" },
 
    occupation          = { label = "پیشه" },
 
--------------------------------------------------------------------------------
-- Family
--------------------------------------------------------------------------------
 
    father              = { label = "پدر" },
    mother              = { label = "مادر" },
    parents            = { label = "والدین" },
 
    spouse              = { label = "همسر" },
    children            = { label = "فرزندان" },
 
    siblings            = { label = "خواهران و برادران" },
    relatives          = { label = "خویشاوندان" },
 
--------------------------------------------------------------------------------
-- Education
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.layouts = {}
    education          = { label = "تحصیلات" },
    university          = { label = "دانشگاه" },
    alma_mater          = { label = "دانش‌آموخته" },


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- LAYOUT TITLES
-- Physical
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.layoutTitles = {
    height              = { label = "قد" },
    weight              = { label = "وزن" },
    handed              = { label = "دست غالب" },
    foot                = { label = "پای تخصصی" },
 
--------------------------------------------------------------------------------
-- Sport
--------------------------------------------------------------------------------


     base = "اطلاعات شخصی",
     sport              = { label = "ورزش" },
    discipline          = { label = "رشته" },
    category            = { label = "رده ورزشی" },
    years_active        = { label = "سال‌های فعالیت" },


     physical = "مشخصات فیزیکی",
     coach              = { label = "مربی" },
    debut              = { label = "آغاز فعالیت" },
    retirement          = { label = "بازنشستگی" },


    education = "تحصیلات",
--------------------------------------------------------------------------------
-- Player
--------------------------------------------------------------------------------


     player = "اطلاعات ورزشی",
     position            = { label = "پست" },
    number              = { label = "شماره" },
    current_club        = { label = "باشگاه فعلی" },
    former_clubs        = { label = "باشگاه‌های پیشین" },
    club                = { label = "باشگاه" },
    team                = { label = "تیم" },
    national_team      = { label = "تیم ملی" },


    coach = "سوابق مربیگری",
--------------------------------------------------------------------------------
-- Coach
--------------------------------------------------------------------------------


     referee = "سوابق داوری",
     coach_position      = { label = "سمت مربیگری" },
    coaching_license    = { label = "درجه مربیگری" },
    coaching_history    = { label = "سوابق مربیگری" },
    coaching_clubs      = { label = "باشگاه‌های مربیگری" },


    manager = "مدیریت ورزشی",
--------------------------------------------------------------------------------
-- Referee
--------------------------------------------------------------------------------


     club = "اطلاعات باشگاه",
     referee_grade      = { label = "درجه داوری" },
    referee_years      = { label = "سال‌های داوری" },
    committee          = { label = "کمیته" },
    major_events        = { label = "رقابت‌های مهم" },


    academy = "اطلاعات آکادمی",
--------------------------------------------------------------------------------
-- Management
--------------------------------------------------------------------------------


     management = "مدیریت",
     management_position = { label = "سمت مدیریتی" },
    management_term    = { label = "دوره مدیریت" },


    location = "موقعیت",
--------------------------------------------------------------------------------
-- Club
--------------------------------------------------------------------------------


     contact = "ارتباطات",
     established        = { label = "تأسیس" },
    founder            = { label = "بنیانگذار" },
    owner              = { label = "مالک" },
    operator            = { label = "بهره‌بردار" },
    president          = { label = "رئیس" },
    ceo                = { label = "مدیرعامل" },
    head_coach          = { label = "سرمربی" },
    stadium            = { label = "ورزشگاه" },
    league              = { label = "لیگ" },
    colors              = { label = "رنگ‌ها" },
    motto              = { label = "شعار" },
    logo                = { label = "نشان" },
    capacity            = { label = "ظرفیت" },


    honors = "افتخارات",
--------------------------------------------------------------------------------
-- Facilities
--------------------------------------------------------------------------------


     stadium = "اطلاعات ورزشگاه",
     facility_type      = { label = "نوع مجموعه" },
    sports              = { label = "رشته‌های ورزشی" },
    surface            = { label = "سطح زمین" },
    architect          = { label = "معمار" },


    gym = "اطلاعات سالن ورزشی",
--------------------------------------------------------------------------------
-- Location
--------------------------------------------------------------------------------


     pool = "اطلاعات استخر",
     province            = { label = "استان" },
    city                = { label = "شهر" },
    district            = { label = "منطقه" },
    address            = { label = "نشانی" },
    coordinates        = { label = "مختصات" },


    zurkhaneh = "اطلاعات زورخانه",
--------------------------------------------------------------------------------
-- Federation
--------------------------------------------------------------------------------


     sports_school = "مدرسه ورزشی",
     federation          = { label = "فدراسیون" },
    board              = { label = "هیئت" },
    chairman            = { label = "رئیس هیئت" },


    sports_complex = "مجموعه ورزشی",
--------------------------------------------------------------------------------
-- Competition
--------------------------------------------------------------------------------


     facility = "مجموعه ورزشی",
     competition        = { label = "مسابقات" },
    season              = { label = "فصل" },
    level              = { label = "سطح مسابقات" },
    champion            = { label = "قهرمان" },
    runner_up          = { label = "نایب قهرمان" },


    board = "هیئت ورزشی",
--------------------------------------------------------------------------------
-- Honors
--------------------------------------------------------------------------------


     competition = "اطلاعات مسابقات"
    honors              = { label = "افتخارات" },
    awards              = { label = "جوایز" },
    records            = { label = "رکوردها" },
    medals              = { label = "مدال‌ها" },
    medaltemplates      = { label = "مدال‌ها" },
 
--------------------------------------------------------------------------------
-- Contact
--------------------------------------------------------------------------------
 
    phone              = { label = "تلفن" },
    email              = { label = "رایانامه" },
    website            = { label = "وبگاه" },
    instagram          = { label = "اینستاگرام" },
    telegram            = { label = "تلگرام" },
    aparat              = { label = "آپارات" },
    x                  = { label = "ایکس" }
 
}
 
--------------------------------------------------------------------------------
-- LAYOUT TITLES
--------------------------------------------------------------------------------
 
p.layoutTitles = {
 
    base            = "اطلاعات شخصی",
    family          = "خانواده",
    education      = "تحصیلات",
    physical        = "مشخصات فیزیکی",
    sport          = "فعالیت ورزشی",
 
    player          = "اطلاعات حرفه‌ای",
    coach          = "فعالیت مربیگری",
    referee        = "فعالیت داوری",
    manager        = "مدیریت ورزشی",
 
    club            = "اطلاعات باشگاه",
    academy        = "اطلاعات آکادمی",
 
    management      = "مدیریت",
 
    stadium        = "اطلاعات ورزشگاه",
    gym            = "اطلاعات سالن ورزشی",
    pool            = "اطلاعات استخر",
    zurkhaneh      = "اطلاعات زورخانه",
    sports_school  = "اطلاعات مدرسه ورزشی",
    sports_complex  = "اطلاعات مجموعه ورزشی",
 
    board          = "هیئت ورزشی",
     competition     = "اطلاعات مسابقات",
 
    location        = "موقعیت",
    honors          = "افتخارات",
    contact        = "ارتباطات"


}
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Base Information
-- LAYOUTS
--------------------------------------------------------------------------------
 
p.layouts = {}
 
--------------------------------------------------------------------------------
-- Base
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.layouts.base = {
p.layouts.base = {


     {"نام",                    "name"},
     "name",
     {"نام کامل",              "fullname"},
     "fullname",
     {"نام بومی",               "native_name"},
     "native_name",
     {"نام انگلیسی",           "english_name"},
    "english_name",
     {"لقب",                   "nickname"},
     "nickname",
 
    "gender",
 
     "nationality",
    "country",


     {"ملیت",                  "nationality"},
     "birth_date",
     {"کشور",                  "country"},
     "birth_place",


     {"زادروز",                "birth_date"},
     "death_date",
     {"محل تولد",              "birth_place"},
     "death_place",


     {"درگذشت",                "death_date"},
     "hometown",
     {"محل درگذشت",            "death_place"},
     "residence",


     {"زادگاه",                "hometown"},
     "occupation"
    {"محل سکونت",              "residence"}


}
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Physical
-- Family
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.layouts.physical = {
p.layouts.family = {
 
    "father",
    "mother",
    "parents",
 
    "spouse",
    "children",


     {"قد",                    "height"},
     "siblings",
    {"وزن",                    "weight"},
     "relatives"
     {"دست غالب",              "handed"},
    {"پای تخصصی",              "foot"}


}
}
خط ۴۶۰: خط ۷۲۵:
p.layouts.education = {
p.layouts.education = {


     {"تحصیلات",                "education"},
     "education",
     {"دانشگاه",               "university"}
     "university",
    "alma_mater"


}
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Player
-- Physical
--------------------------------------------------------------------------------
 
p.layouts.physical = {
 
    "height",
    "weight",
    "handed",
    "foot"
 
}
 
--------------------------------------------------------------------------------
-- Sport
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.layouts.player = {
p.layouts.sport = {
 
    "sport",
    "discipline",
    "category",
 
    "coach",
 
    "years_active",
    "debut",
    "retirement"


    {"ورزش",                  "sport"},
}
    {"رشته",                  "discipline"},
--------------------------------------------------------------------------------
-- Player / Athlete
--------------------------------------------------------------------------------


    {"پست",                    "position"},
p.layouts.player = {
    {"شماره",                  "number"},


     {"باشگاه فعلی",            "current_club"},
     "position",
     {"باشگاه‌های پیشین",      "former_clubs"},
     "number",


     {"تیم ملی",               "national_team"},
     "current_club",
    "former_clubs",


     {"سال‌های فعالیت",         "years_active"}
     "team",
    "national_team"


}
}
خط ۴۹۲: خط ۷۸۴:
p.layouts.coach = {
p.layouts.coach = {


     {"ورزش",                  "sport"},
     "coach_position",
    {"رشته",                  "discipline"},


     {"سمت مربیگری",            "coach_position"},
     "coaching_license",


     {"درجه مربیگری",          "coaching_license"},
     "coaching_history",


    {"سوابق مربیگری",          "coaching_history"},
     "coaching_clubs"
 
    {"باشگاه‌های مربیگری",     "coaching_clubs"},
 
    {"سال‌های فعالیت",        "years_active"}


}
}
خط ۵۱۳: خط ۸۰۰:
p.layouts.referee = {
p.layouts.referee = {


     {"ورزش",                  "sport"},
     "referee_grade",
    {"رشته",                  "discipline"},


     {"درجه داوری",            "referee_grade"},
     "referee_years",


     {"سال‌های داوری",          "referee_years"},
     "committee",


     {"کمیته",                  "committee"},
     "major_events"


    {"رقابت‌های مهم",          "major_events"}
}


}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Sports Manager
-- Sports Manager
خط ۵۳۱: خط ۸۱۶:
p.layouts.manager = {
p.layouts.manager = {


     {"ورزش",                   "sport"},
     "management_position",
     {"رشته",                   "discipline"},
 
    "club",
 
     "management_term"
 
}
 
--------------------------------------------------------------------------------
-- Club
--------------------------------------------------------------------------------
 
p.layouts.club = {
 
    "sport",
 
    "discipline",
 
    "established",
 
    "founder",
 
    "league",
 
    "colors",
 
    "motto",
 
    "head_coach",
 
    "stadium",
 
    "capacity"
 
}
 
--------------------------------------------------------------------------------
-- Academy
--------------------------------------------------------------------------------
 
p.layouts.academy = {
 
    "sport",


     {"سمت مدیریتی",            "management_position"},
     "discipline",


     {"باشگاه",                  "club"},
     "established",


     {"دوره مدیریت",            "management_term"}
     "coaching_history"


}
}
خط ۵۴۸: خط ۸۷۴:
p.layouts.management = {
p.layouts.management = {


     {"مالک",                  "owner"},
     "owner",
     {"رئیس",                  "president"},
 
     {"مدیرعامل",              "ceo"},
     "president",
    {"بنیانگذار",              "founder"},
 
     {"بهره‌بردار",            "operator"}
     "ceo",
 
     "operator"


}
}
خط ۵۶۲: خط ۸۹۰:
p.layouts.location = {
p.layouts.location = {


     {"استان",                  "province"},
     "province",
     {"شهر",                    "city"},
 
     {"منطقه",                  "district"},
     "city",
     {"نشانی",                  "address"},
 
     {"مختصات",                "coordinates"}
     "district",
 
     "address",
 
     "coordinates"


}
}
خط ۵۷۶: خط ۹۰۸:
p.layouts.contact = {
p.layouts.contact = {


     {"تلفن",                  "phone"},
     "phone",
     {"رایانامه",              "email"},
 
     {"وبگاه",                  "website"},
     "email",
     {"اینستاگرام",            "instagram"},
 
     {"تلگرام",                "telegram"},
     "website",
     {"آپارات",                "aparat"},
 
     {"ایکس",                  "x"}
     "instagram",
 
     "telegram",
 
     "aparat",
 
     "x"


}
}
خط ۵۹۲: خط ۹۳۰:
p.layouts.honors = {
p.layouts.honors = {


     {"افتخارات",               "honors"},
     "honors",
     {"مدال‌ها",               "medaltemplates"}
 
    "awards",
 
     "records",
 
    "medals"


}
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Club
-- Stadium
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.layouts.club = {
p.layouts.stadium = {
 
    "facility_type",
 
    "established",


     {"ورزش",                   "sport"},
     "owner",
    {"رشته",                  "discipline"},
    {"تأسیس",                  "established"},
    {"سرمربی",                "head_coach"},
    {"ورزشگاه",                "stadium"},
    {"ظرفیت",                  "capacity"}


}
    "operator",


--------------------------------------------------------------------------------
    "architect",
-- Academy
--------------------------------------------------------------------------------


p.layouts.academy = {
    "surface",


     {"ورزش",                  "sport"},
     "capacity"
    {"رشته",                  "discipline"},
    {"تأسیس",                  "established"},
    {"مربیان",                "coaching_history"}


}
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Stadium
-- Gymnasium
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.layouts.stadium = {
p.layouts.gym = {


     {"نوع مجموعه",            "facility_type"},
     "facility_type",
    {"ورزش",                  "sport"},
    {"تأسیس",                  "established"},
    {"ظرفیت",                  "capacity"}


}
    "established",


--------------------------------------------------------------------------------
    "owner",
-- Gym
--------------------------------------------------------------------------------


p.layouts.gym = {
    "operator",


     {"نوع مجموعه",            "facility_type"},
     "capacity"
    {"تأسیس",                  "established"},
    {"ظرفیت",                  "capacity"}


}
}
خط ۶۵۶: خط ۹۸۶:
p.layouts.pool = {
p.layouts.pool = {


     {"نوع مجموعه",             "facility_type"},
     "facility_type",
     {"تأسیس",                 "established"}
 
    "established",
 
     "owner",
 
    "operator"


}
}
خط ۶۶۷: خط ۱٬۰۰۲:
p.layouts.zurkhaneh = {
p.layouts.zurkhaneh = {


     {"نوع مجموعه",             "facility_type"},
     "facility_type",
     {"تأسیس",                 "established"}
 
    "established",
 
     "owner",
 
    "operator"


}
}
خط ۶۷۸: خط ۱٬۰۱۸:
p.layouts.sports_school = {
p.layouts.sports_school = {


     {"ورزش",                  "sport"},
     "sport",
     {"رشته",                  "discipline"},
 
     {"تأسیس",                 "established"}
     "discipline",
 
     "established",
 
    "coaching_history"


}
}
خط ۶۹۰: خط ۱٬۰۳۴:
p.layouts.sports_complex = {
p.layouts.sports_complex = {


     {"نوع مجموعه",            "facility_type"},
     "facility_type",
    {"تأسیس",                  "established"},
    {"ظرفیت",                  "capacity"}


}
    "sports",
 
    "established",


--------------------------------------------------------------------------------
    "owner",
-- Facility (Generic)
--------------------------------------------------------------------------------


p.layouts.facility = {
    "operator",


     {"نوع مجموعه",            "facility_type"},
     "capacity"
    {"تأسیس",                  "established"},
    {"ظرفیت",                  "capacity"}


}
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Federation / Sports Board
-- Sports Board
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.layouts.board = {
p.layouts.board = {


     {"ورزش",                  "sport"},
     "sport",
     {"فدراسیون",              "federation"},
 
     {"رئیس هیئت",             "chairman"}
     "federation",
 
     "chairman",
 
    "established"


}
}
خط ۷۲۶: خط ۱٬۰۷۰:
p.layouts.competition = {
p.layouts.competition = {


     {"ورزش",                  "sport"},
     "sport",
     {"رشته",                  "discipline"},
 
     {"فصل",                    "season"},
     "discipline",
     {"قهرمان",                 "champion"},
 
     {"نایب قهرمان",            "runner_up"},
     "season",
    {"سطح مسابقات",            "level"}
 
     "level",
 
    "champion",
 
     "runner_up"


}
}
خط ۷۳۸: خط ۱٬۰۸۷:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.entities = {
p.entities = {}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- PLAYER
-- Athlete / Player
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


player = {
p.entities.player = {


    type = "player",
     title = "ورزشکار",
 
     title = "بازیکن",


     layouts = {
     layouts = {


         "base",
         "base",
        "family",
        "education",
         "physical",
         "physical",
         "education",
         "sport",
         "player",
         "player",
         "honors",
         "honors",
خط ۷۶۱: خط ۱٬۱۱۰:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- COACH
-- Coach
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


coach = {
p.entities.coach = {
 
    type = "coach",


     title = "مربی",
     title = "مربی",
خط ۷۷۶: خط ۱٬۱۲۳:


         "base",
         "base",
        "family",
        "education",
         "physical",
         "physical",
         "education",
         "sport",
         "coach",
         "coach",
         "honors",
         "honors",
خط ۷۸۴: خط ۱٬۱۳۳:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- REFEREE
-- Referee
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


referee = {
p.entities.referee = {
 
    type = "referee",


     title = "داور",
     title = "داور",
خط ۷۹۹: خط ۱٬۱۴۶:


         "base",
         "base",
        "family",
        "education",
         "physical",
         "physical",
         "education",
         "sport",
         "referee",
         "referee",
         "honors",
         "honors",
خط ۸۰۷: خط ۱٬۱۵۶:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- SPORTS MANAGER
-- Sports Manager
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


manager = {
p.entities.manager = {
 
    type = "manager",


     title = "مدیر ورزشی",
     title = "مدیر ورزشی",
خط ۸۲۲: خط ۱٬۱۶۹:


         "base",
         "base",
        "family",
         "education",
         "education",
        "sport",
         "manager",
         "manager",
         "honors",
         "honors",
خط ۸۲۹: خط ۱٬۱۷۸:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- CLUB
-- Club
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


club = {
p.entities.club = {
 
    type = "club",


     title = "باشگاه ورزشی",
     title = "باشگاه ورزشی",
خط ۸۴۶: خط ۱٬۱۹۳:
         "management",
         "management",
         "location",
         "location",
        "honors",
         "contact"
         "contact"


     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- ACADEMY
-- Academy
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


academy = {
p.entities.academy = {
 
    type = "academy",


     title = "آکادمی ورزشی",
     title = "آکادمی ورزشی",
خط ۸۷۱: خط ۱٬۲۱۷:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- STADIUM
-- Stadium
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


stadium = {
p.entities.stadium = {
 
    type = "stadium",


     title = "ورزشگاه",
     title = "ورزشگاه",
خط ۸۹۱: خط ۱٬۲۳۵:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- GYMNASIUM
-- Gymnasium
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


gym = {
p.entities.gym = {
 
    type = "gym",


     title = "سالن ورزشی",
     title = "سالن ورزشی",
خط ۹۱۱: خط ۱٬۲۵۳:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- SWIMMING POOL
-- Swimming Pool
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


pool = {
p.entities.pool = {
 
    type = "pool",


     title = "استخر",
     title = "استخر ورزشی",


     layouts = {
     layouts = {
خط ۹۳۱: خط ۱٬۲۷۱:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- ZURKHANEH
-- Zurkhaneh
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


zurkhaneh = {
p.entities.zurkhaneh = {
 
    type = "zurkhaneh",


     title = "زورخانه",
     title = "زورخانه",
خط ۹۵۱: خط ۱٬۲۸۹:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- SPORTS SCHOOL
-- Sports School
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


sports_school = {
p.entities.sports_school = {
 
    type = "sports_school",


     title = "مدرسه ورزشی",
     title = "مدرسه ورزشی",
خط ۹۷۲: خط ۱٬۳۰۸:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- SPORTS COMPLEX
-- Sports Complex
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


sports_complex = {
p.entities.sports_complex = {
 
    type = "sports_complex",


     title = "مجموعه ورزشی",
     title = "مجموعه ورزشی",
خط ۹۹۳: خط ۱٬۳۲۷:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- FACILITY
-- Sports Board
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


facility = {
p.entities.board = {


    type = "facility",
     title = "هیئت ورزشی",
 
     title = "مجموعه ورزشی",


     layouts = {
     layouts = {


         "facility",
         "board",
        "management",
         "location",
         "location",
         "contact"
         "contact"
خط ۱٬۰۱۳: خط ۱٬۳۴۶:
     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- SPORTS BOARD
-- Competition
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


board = {
p.entities.competition = {
 
    type = "board",


     title = "هیئت ورزشی",
     title = "رویداد ورزشی",


     layouts = {
     layouts = {


         "board",
         "competition",
        "management",
         "location",
         "location",
         "contact"
         "contact",
        "honors"


     }
     }


},
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- COMPETITION
-- Entity Defaults
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


competition = {
for _, entity in pairs(p.entities) do


     type = "competition",
     entity.icon = entity.icon or nil


     title = "مسابقات",
    entity.category = entity.category or nil
 
end
--------------------------------------------------------------------------------
-- Sports Event
--------------------------------------------------------------------------------
 
p.layouts.sports_event = {
 
    "sport",
 
    "discipline",
 
    "season",
 
    "competition",
 
    "level",
 
    "champion",
 
    "runner_up"
 
}
 
--------------------------------------------------------------------------------
-- Sports Event Entity
--------------------------------------------------------------------------------
 
p.entities.sports_event = {
 
     title = "رویداد ورزشی",


     layouts = {
     layouts = {
خط ۱٬۰۵۰: خط ۱٬۴۱۲:
         "competition",
         "competition",
         "location",
         "location",
        "honors",
         "contact"
         "contact"


خط ۱٬۰۵۵: خط ۱٬۴۱۸:


}
}
--------------------------------------------------------------------------------
-- Additional Metadata
--------------------------------------------------------------------------------
p.meta.fields = {
    dynamic = true,
    removeEmpty = true,
    useFieldDefinitions = true


}
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- VERSION
-- Version
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


p.version = {
p.version = {


     major = 2,
     major = 3,


     minor = 1,
     minor = 0,


     name = "AlborzSports"
     name = "AlborzSports"

نسخهٔ ‏۴ اوت ۲۰۲۶، ساعت ۱۱:۳۹

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

--------------------------------------------------------------------------------
-- Module:AlborzSports/Data
-- Wiki Alborz Sports Information System
-- Version 3.0
--------------------------------------------------------------------------------

local p = {}

--------------------------------------------------------------------------------
-- META
--------------------------------------------------------------------------------

p.meta = {

    title = "جعبه اطلاعات ورزش",

    class = "infobox sport-infobox",

    imageWidth = "250px"

}

--------------------------------------------------------------------------------
-- DEFAULT VALUES
--------------------------------------------------------------------------------

p.defaults = {

    country = "ایران",

    nationality = "ایرانی",

    entity_type = "player",

    image_width = "250px"

}

--------------------------------------------------------------------------------
-- LOOKUP
--------------------------------------------------------------------------------

p.lookup = {

--------------------------------------------------------------------------------
-- Identity
--------------------------------------------------------------------------------

    id                          = "id",
    ["شناسه"]                   = "id",

    name                        = "name",
    ["نام"]                     = "name",

    fullname                    = "fullname",
    full_name                   = "fullname",
    ["نام کامل"]                = "fullname",

    native_name                 = "native_name",
    ["نام بومی"]                = "native_name",

    english_name                = "english_name",
    ["نام انگلیسی"]             = "english_name",

    nickname                    = "nickname",
    ["لقب"]                     = "nickname",

--------------------------------------------------------------------------------
-- Image
--------------------------------------------------------------------------------

    image                       = "image",
    ["تصویر"]                   = "image",

    caption                     = "caption",
    ["زیرنویس"]                 = "caption",

    image_width                 = "image_width",
    image_size                  = "image_width",
    ["اندازه تصویر"]            = "image_width",

--------------------------------------------------------------------------------
-- Entity
--------------------------------------------------------------------------------

    entity_type                 = "entity_type",

    type                        = "entity_type",

    ["نوع"]                     = "entity_type",

    ["گونه"]                    = "entity_type",

    ["رده"]                     = "entity_type",

--------------------------------------------------------------------------------
-- Personal Information
--------------------------------------------------------------------------------

    gender                      = "gender",
    ["جنسیت"]                   = "gender",

    country                     = "country",
    ["کشور"]                    = "country",

    nationality                 = "nationality",
    ["ملیت"]                    = "nationality",

    birth_date                  = "birth_date",
    ["زادروز"]                  = "birth_date",
    ["تاریخ تولد"]              = "birth_date",

    birth_place                 = "birth_place",
    ["محل تولد"]                = "birth_place",

    death_date                  = "death_date",
    ["درگذشت"]                  = "death_date",

    death_place                 = "death_place",
    ["محل درگذشت"]              = "death_place",

    hometown                    = "hometown",
    ["زادگاه"]                  = "hometown",

    residence                   = "residence",
    ["محل سکونت"]               = "residence",

    occupation                  = "occupation",
    ["پیشه"]                    = "occupation",

--------------------------------------------------------------------------------
-- Family
--------------------------------------------------------------------------------

    father                      = "father",
    ["پدر"]                     = "father",

    mother                      = "mother",
    ["مادر"]                    = "mother",

    parents                     = "parents",
    ["والدین"]                  = "parents",

    spouse                      = "spouse",
    ["همسر"]                    = "spouse",

    children                    = "children",
    ["فرزندان"]                 = "children",

    siblings                    = "siblings",
    ["خواهران و برادران"]       = "siblings",

    relatives                   = "relatives",
    ["خویشاوندان"]              = "relatives",

--------------------------------------------------------------------------------
-- Education
--------------------------------------------------------------------------------

    education                   = "education",
    ["تحصیلات"]                 = "education",

    university                  = "university",
    ["دانشگاه"]                 = "university",

    alma_mater                  = "alma_mater",
    ["دانش‌آموخته"]             = "alma_mater",

--------------------------------------------------------------------------------
-- Physical
--------------------------------------------------------------------------------

    height                      = "height",
    ["قد"]                      = "height",

    weight                      = "weight",
    ["وزن"]                     = "weight",

    handed                      = "handed",
    ["دست غالب"]                = "handed",

    foot                        = "foot",
    ["پای تخصصی"]               = "foot",

--------------------------------------------------------------------------------
-- Contact
--------------------------------------------------------------------------------

    phone                       = "phone",
    ["تلفن"]                    = "phone",

    email                       = "email",
    ["رایانامه"]                = "email",

    website                     = "website",
    ["وبگاه"]                   = "website",
    ["وب‌گاه"]                  = "website",

    instagram                   = "instagram",
    ["اینستاگرام"]              = "instagram",

    telegram                    = "telegram",
    ["تلگرام"]                  = "telegram",

    aparat                      = "aparat",
    ["آپارات"]                  = "aparat",

    x                           = "x",
    twitter                     = "x",
    ["ایکس"]                    = "x",
    --------------------------------------------------------------------------------
-- Sport
--------------------------------------------------------------------------------

    sport                       = "sport",
    ["ورزش"]                    = "sport",

    discipline                  = "discipline",
    ["رشته"]                    = "discipline",

    category                    = "category",
    ["رده ورزشی"]               = "category",

    years_active                = "years_active",
    ["سال‌های فعالیت"]          = "years_active",

    coach                       = "coach",
    ["مربی"]                    = "coach",

    debut                       = "debut",
    ["آغاز فعالیت"]             = "debut",

    retirement                  = "retirement",
    ["بازنشستگی"]               = "retirement",

--------------------------------------------------------------------------------
-- Athlete (Player)
--------------------------------------------------------------------------------

    position                    = "position",
    ["پست"]                     = "position",

    number                      = "number",
    ["شماره"]                   = "number",

    current_club                = "current_club",
    ["باشگاه فعلی"]             = "current_club",

    former_clubs                = "former_clubs",
    ["باشگاه‌های پیشین"]        = "former_clubs",

    club                        = "club",
    ["باشگاه"]                  = "club",

    team                        = "team",
    ["تیم"]                     = "team",

    national_team               = "national_team",
    ["تیم ملی"]                 = "national_team",

--------------------------------------------------------------------------------
-- Coach
--------------------------------------------------------------------------------

    coach_position              = "coach_position",
    ["سمت مربیگری"]             = "coach_position",

    coaching_license            = "coaching_license",
    ["درجه مربیگری"]            = "coaching_license",

    coaching_history            = "coaching_history",
    coaching                    = "coaching_history",
    ["سوابق مربیگری"]           = "coaching_history",

    coaching_clubs              = "coaching_clubs",
    ["باشگاه‌های مربیگری"]      = "coaching_clubs",

--------------------------------------------------------------------------------
-- Referee
--------------------------------------------------------------------------------

    referee_grade               = "referee_grade",
    ["درجه داوری"]              = "referee_grade",

    referee_years               = "referee_years",
    ["سال‌های داوری"]           = "referee_years",

    committee                   = "committee",
    ["کمیته"]                   = "committee",

    major_events                = "major_events",
    ["رقابت‌های مهم"]           = "major_events",

--------------------------------------------------------------------------------
-- Sports Management
--------------------------------------------------------------------------------

    management_position         = "management_position",
    ["سمت مدیریتی"]             = "management_position",

    management_term             = "management_term",
    ["دوره مدیریت"]             = "management_term",

--------------------------------------------------------------------------------
-- Club
--------------------------------------------------------------------------------

    established                 = "established",
    ["تأسیس"]                   = "established",

    founder                     = "founder",
    ["بنیانگذار"]               = "founder",

    owner                       = "owner",
    ["مالک"]                    = "owner",

    operator                    = "operator",
    ["بهره‌بردار"]              = "operator",

    president                   = "president",
    ["رئیس"]                    = "president",

    ceo                         = "ceo",
    ["مدیرعامل"]                = "ceo",

    head_coach                  = "head_coach",
    ["سرمربی"]                  = "head_coach",

    stadium                     = "stadium",
    ["ورزشگاه"]                 = "stadium",

    league                      = "league",
    ["لیگ"]                     = "league",

    colors                      = "colors",
    ["رنگ‌ها"]                  = "colors",

    motto                       = "motto",
    ["شعار"]                    = "motto",

    logo                        = "logo",
    ["نشان"]                    = "logo",

    capacity                    = "capacity",
    ["ظرفیت"]                   = "capacity",

--------------------------------------------------------------------------------
-- Sports Facilities
--------------------------------------------------------------------------------

    facility_type               = "facility_type",
    ["نوع مجموعه"]              = "facility_type",

    sports                      = "sports",
    ["رشته‌های ورزشی"]          = "sports",

    surface                     = "surface",
    ["سطح زمین"]                = "surface",

    architect                   = "architect",
    ["معمار"]                   = "architect",

--------------------------------------------------------------------------------
-- Location
--------------------------------------------------------------------------------

    province                    = "province",
    ["استان"]                   = "province",

    city                        = "city",
    ["شهر"]                     = "city",

    district                    = "district",
    ["منطقه"]                   = "district",

    address                     = "address",
    ["نشانی"]                   = "address",

    coordinates                 = "coordinates",
    ["مختصات"]                  = "coordinates",

--------------------------------------------------------------------------------
-- Federation / Sports Board
--------------------------------------------------------------------------------

    federation                  = "federation",
    ["فدراسیون"]                = "federation",

    board                       = "board",
    ["هیئت"]                    = "board",

    chairman                    = "chairman",
    ["رئیس هیئت"]               = "chairman",

--------------------------------------------------------------------------------
-- Competition
--------------------------------------------------------------------------------

    competition                 = "competition",
    ["مسابقات"]                 = "competition",

    season                      = "season",
    ["فصل"]                     = "season",

    level                       = "level",
    ["سطح مسابقات"]             = "level",

    champion                    = "champion",
    ["قهرمان"]                  = "champion",

    runner_up                   = "runner_up",
    ["نایب قهرمان"]             = "runner_up",

--------------------------------------------------------------------------------
-- Honors
--------------------------------------------------------------------------------

    honors                      = "honors",
    ["افتخارات"]                = "honors",

    awards                      = "awards",
    ["جوایز"]                   = "awards",

    records                     = "records",
    ["رکوردها"]                 = "records",

    medals                      = "medals",
    ["مدال‌ها"]                 = "medals",

    medaltemplates              = "medaltemplates",

}
--------------------------------------------------------------------------------
-- FIELD DEFINITIONS
--------------------------------------------------------------------------------

p.fieldDefinitions = {

--------------------------------------------------------------------------------
-- Identity
--------------------------------------------------------------------------------

    id                  = { label = "شناسه" },
    name                = { label = "نام" },
    fullname            = { label = "نام کامل" },
    native_name         = { label = "نام بومی" },
    english_name        = { label = "نام انگلیسی" },
    nickname            = { label = "لقب" },

--------------------------------------------------------------------------------
-- Personal
--------------------------------------------------------------------------------

    gender              = { label = "جنسیت" },
    country             = { label = "کشور" },
    nationality         = { label = "ملیت" },

    birth_date          = { label = "زادروز" },
    birth_place         = { label = "محل تولد" },

    death_date          = { label = "درگذشت" },
    death_place         = { label = "محل درگذشت" },

    hometown            = { label = "زادگاه" },
    residence           = { label = "محل سکونت" },

    occupation          = { label = "پیشه" },

--------------------------------------------------------------------------------
-- Family
--------------------------------------------------------------------------------

    father              = { label = "پدر" },
    mother              = { label = "مادر" },
    parents             = { label = "والدین" },

    spouse              = { label = "همسر" },
    children            = { label = "فرزندان" },

    siblings            = { label = "خواهران و برادران" },
    relatives           = { label = "خویشاوندان" },

--------------------------------------------------------------------------------
-- Education
--------------------------------------------------------------------------------

    education           = { label = "تحصیلات" },
    university          = { label = "دانشگاه" },
    alma_mater          = { label = "دانش‌آموخته" },

--------------------------------------------------------------------------------
-- Physical
--------------------------------------------------------------------------------

    height              = { label = "قد" },
    weight              = { label = "وزن" },
    handed              = { label = "دست غالب" },
    foot                = { label = "پای تخصصی" },

--------------------------------------------------------------------------------
-- Sport
--------------------------------------------------------------------------------

    sport               = { label = "ورزش" },
    discipline          = { label = "رشته" },
    category            = { label = "رده ورزشی" },
    years_active        = { label = "سال‌های فعالیت" },

    coach               = { label = "مربی" },
    debut               = { label = "آغاز فعالیت" },
    retirement          = { label = "بازنشستگی" },

--------------------------------------------------------------------------------
-- Player
--------------------------------------------------------------------------------

    position            = { label = "پست" },
    number              = { label = "شماره" },
    current_club        = { label = "باشگاه فعلی" },
    former_clubs        = { label = "باشگاه‌های پیشین" },
    club                = { label = "باشگاه" },
    team                = { label = "تیم" },
    national_team       = { label = "تیم ملی" },

--------------------------------------------------------------------------------
-- Coach
--------------------------------------------------------------------------------

    coach_position      = { label = "سمت مربیگری" },
    coaching_license    = { label = "درجه مربیگری" },
    coaching_history    = { label = "سوابق مربیگری" },
    coaching_clubs      = { label = "باشگاه‌های مربیگری" },

--------------------------------------------------------------------------------
-- Referee
--------------------------------------------------------------------------------

    referee_grade       = { label = "درجه داوری" },
    referee_years       = { label = "سال‌های داوری" },
    committee           = { label = "کمیته" },
    major_events        = { label = "رقابت‌های مهم" },

--------------------------------------------------------------------------------
-- Management
--------------------------------------------------------------------------------

    management_position = { label = "سمت مدیریتی" },
    management_term     = { label = "دوره مدیریت" },

--------------------------------------------------------------------------------
-- Club
--------------------------------------------------------------------------------

    established         = { label = "تأسیس" },
    founder             = { label = "بنیانگذار" },
    owner               = { label = "مالک" },
    operator            = { label = "بهره‌بردار" },
    president           = { label = "رئیس" },
    ceo                 = { label = "مدیرعامل" },
    head_coach          = { label = "سرمربی" },
    stadium             = { label = "ورزشگاه" },
    league              = { label = "لیگ" },
    colors              = { label = "رنگ‌ها" },
    motto               = { label = "شعار" },
    logo                = { label = "نشان" },
    capacity            = { label = "ظرفیت" },

--------------------------------------------------------------------------------
-- Facilities
--------------------------------------------------------------------------------

    facility_type       = { label = "نوع مجموعه" },
    sports              = { label = "رشته‌های ورزشی" },
    surface             = { label = "سطح زمین" },
    architect           = { label = "معمار" },

--------------------------------------------------------------------------------
-- Location
--------------------------------------------------------------------------------

    province            = { label = "استان" },
    city                = { label = "شهر" },
    district            = { label = "منطقه" },
    address             = { label = "نشانی" },
    coordinates         = { label = "مختصات" },

--------------------------------------------------------------------------------
-- Federation
--------------------------------------------------------------------------------

    federation          = { label = "فدراسیون" },
    board               = { label = "هیئت" },
    chairman            = { label = "رئیس هیئت" },

--------------------------------------------------------------------------------
-- Competition
--------------------------------------------------------------------------------

    competition         = { label = "مسابقات" },
    season              = { label = "فصل" },
    level               = { label = "سطح مسابقات" },
    champion            = { label = "قهرمان" },
    runner_up           = { label = "نایب قهرمان" },

--------------------------------------------------------------------------------
-- Honors
--------------------------------------------------------------------------------

    honors              = { label = "افتخارات" },
    awards              = { label = "جوایز" },
    records             = { label = "رکوردها" },
    medals              = { label = "مدال‌ها" },
    medaltemplates      = { label = "مدال‌ها" },

--------------------------------------------------------------------------------
-- Contact
--------------------------------------------------------------------------------

    phone               = { label = "تلفن" },
    email               = { label = "رایانامه" },
    website             = { label = "وبگاه" },
    instagram           = { label = "اینستاگرام" },
    telegram            = { label = "تلگرام" },
    aparat              = { label = "آپارات" },
    x                   = { label = "ایکس" }

}

--------------------------------------------------------------------------------
-- LAYOUT TITLES
--------------------------------------------------------------------------------

p.layoutTitles = {

    base            = "اطلاعات شخصی",
    family          = "خانواده",
    education       = "تحصیلات",
    physical        = "مشخصات فیزیکی",
    sport           = "فعالیت ورزشی",

    player          = "اطلاعات حرفه‌ای",
    coach           = "فعالیت مربیگری",
    referee         = "فعالیت داوری",
    manager         = "مدیریت ورزشی",

    club            = "اطلاعات باشگاه",
    academy         = "اطلاعات آکادمی",

    management      = "مدیریت",

    stadium         = "اطلاعات ورزشگاه",
    gym             = "اطلاعات سالن ورزشی",
    pool            = "اطلاعات استخر",
    zurkhaneh       = "اطلاعات زورخانه",
    sports_school   = "اطلاعات مدرسه ورزشی",
    sports_complex  = "اطلاعات مجموعه ورزشی",

    board           = "هیئت ورزشی",
    competition     = "اطلاعات مسابقات",

    location        = "موقعیت",
    honors          = "افتخارات",
    contact         = "ارتباطات"

}

--------------------------------------------------------------------------------
-- LAYOUTS
--------------------------------------------------------------------------------

p.layouts = {}

--------------------------------------------------------------------------------
-- Base
--------------------------------------------------------------------------------

p.layouts.base = {

    "name",
    "fullname",
    "native_name",
    "english_name",
    "nickname",

    "gender",

    "nationality",
    "country",

    "birth_date",
    "birth_place",

    "death_date",
    "death_place",

    "hometown",
    "residence",

    "occupation"

}

--------------------------------------------------------------------------------
-- Family
--------------------------------------------------------------------------------

p.layouts.family = {

    "father",
    "mother",
    "parents",

    "spouse",
    "children",

    "siblings",
    "relatives"

}

--------------------------------------------------------------------------------
-- Education
--------------------------------------------------------------------------------

p.layouts.education = {

    "education",
    "university",
    "alma_mater"

}

--------------------------------------------------------------------------------
-- Physical
--------------------------------------------------------------------------------

p.layouts.physical = {

    "height",
    "weight",
    "handed",
    "foot"

}

--------------------------------------------------------------------------------
-- Sport
--------------------------------------------------------------------------------

p.layouts.sport = {

    "sport",
    "discipline",
    "category",

    "coach",

    "years_active",
    "debut",
    "retirement"

}
--------------------------------------------------------------------------------
-- Player / Athlete
--------------------------------------------------------------------------------

p.layouts.player = {

    "position",
    "number",

    "current_club",
    "former_clubs",

    "team",
    "national_team"

}

--------------------------------------------------------------------------------
-- Coach
--------------------------------------------------------------------------------

p.layouts.coach = {

    "coach_position",

    "coaching_license",

    "coaching_history",

    "coaching_clubs"

}

--------------------------------------------------------------------------------
-- Referee
--------------------------------------------------------------------------------

p.layouts.referee = {

    "referee_grade",

    "referee_years",

    "committee",

    "major_events"

}

--------------------------------------------------------------------------------
-- Sports Manager
--------------------------------------------------------------------------------

p.layouts.manager = {

    "management_position",

    "club",

    "management_term"

}

--------------------------------------------------------------------------------
-- Club
--------------------------------------------------------------------------------

p.layouts.club = {

    "sport",

    "discipline",

    "established",

    "founder",

    "league",

    "colors",

    "motto",

    "head_coach",

    "stadium",

    "capacity"

}

--------------------------------------------------------------------------------
-- Academy
--------------------------------------------------------------------------------

p.layouts.academy = {

    "sport",

    "discipline",

    "established",

    "coaching_history"

}

--------------------------------------------------------------------------------
-- Management
--------------------------------------------------------------------------------

p.layouts.management = {

    "owner",

    "president",

    "ceo",

    "operator"

}

--------------------------------------------------------------------------------
-- Location
--------------------------------------------------------------------------------

p.layouts.location = {

    "province",

    "city",

    "district",

    "address",

    "coordinates"

}

--------------------------------------------------------------------------------
-- Contact
--------------------------------------------------------------------------------

p.layouts.contact = {

    "phone",

    "email",

    "website",

    "instagram",

    "telegram",

    "aparat",

    "x"

}

--------------------------------------------------------------------------------
-- Honors
--------------------------------------------------------------------------------

p.layouts.honors = {

    "honors",

    "awards",

    "records",

    "medals"

}

--------------------------------------------------------------------------------
-- Stadium
--------------------------------------------------------------------------------

p.layouts.stadium = {

    "facility_type",

    "established",

    "owner",

    "operator",

    "architect",

    "surface",

    "capacity"

}

--------------------------------------------------------------------------------
-- Gymnasium
--------------------------------------------------------------------------------

p.layouts.gym = {

    "facility_type",

    "established",

    "owner",

    "operator",

    "capacity"

}

--------------------------------------------------------------------------------
-- Swimming Pool
--------------------------------------------------------------------------------

p.layouts.pool = {

    "facility_type",

    "established",

    "owner",

    "operator"

}

--------------------------------------------------------------------------------
-- Zurkhaneh
--------------------------------------------------------------------------------

p.layouts.zurkhaneh = {

    "facility_type",

    "established",

    "owner",

    "operator"

}

--------------------------------------------------------------------------------
-- Sports School
--------------------------------------------------------------------------------

p.layouts.sports_school = {

    "sport",

    "discipline",

    "established",

    "coaching_history"

}

--------------------------------------------------------------------------------
-- Sports Complex
--------------------------------------------------------------------------------

p.layouts.sports_complex = {

    "facility_type",

    "sports",

    "established",

    "owner",

    "operator",

    "capacity"

}

--------------------------------------------------------------------------------
-- Sports Board
--------------------------------------------------------------------------------

p.layouts.board = {

    "sport",

    "federation",

    "chairman",

    "established"

}

--------------------------------------------------------------------------------
-- Competition
--------------------------------------------------------------------------------

p.layouts.competition = {

    "sport",

    "discipline",

    "season",

    "level",

    "champion",

    "runner_up"

}
--------------------------------------------------------------------------------
-- ENTITIES
--------------------------------------------------------------------------------

p.entities = {}

--------------------------------------------------------------------------------
-- Athlete / Player
--------------------------------------------------------------------------------

p.entities.player = {

    title = "ورزشکار",

    layouts = {

        "base",
        "family",
        "education",
        "physical",
        "sport",
        "player",
        "honors",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Coach
--------------------------------------------------------------------------------

p.entities.coach = {

    title = "مربی",

    layouts = {

        "base",
        "family",
        "education",
        "physical",
        "sport",
        "coach",
        "honors",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Referee
--------------------------------------------------------------------------------

p.entities.referee = {

    title = "داور",

    layouts = {

        "base",
        "family",
        "education",
        "physical",
        "sport",
        "referee",
        "honors",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Sports Manager
--------------------------------------------------------------------------------

p.entities.manager = {

    title = "مدیر ورزشی",

    layouts = {

        "base",
        "family",
        "education",
        "sport",
        "manager",
        "honors",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Club
--------------------------------------------------------------------------------

p.entities.club = {

    title = "باشگاه ورزشی",

    layouts = {

        "club",
        "management",
        "location",
        "honors",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Academy
--------------------------------------------------------------------------------

p.entities.academy = {

    title = "آکادمی ورزشی",

    layouts = {

        "academy",
        "management",
        "location",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Stadium
--------------------------------------------------------------------------------

p.entities.stadium = {

    title = "ورزشگاه",

    layouts = {

        "stadium",
        "location",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Gymnasium
--------------------------------------------------------------------------------

p.entities.gym = {

    title = "سالن ورزشی",

    layouts = {

        "gym",
        "location",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Swimming Pool
--------------------------------------------------------------------------------

p.entities.pool = {

    title = "استخر ورزشی",

    layouts = {

        "pool",
        "location",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Zurkhaneh
--------------------------------------------------------------------------------

p.entities.zurkhaneh = {

    title = "زورخانه",

    layouts = {

        "zurkhaneh",
        "location",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Sports School
--------------------------------------------------------------------------------

p.entities.sports_school = {

    title = "مدرسه ورزشی",

    layouts = {

        "sports_school",
        "management",
        "location",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Sports Complex
--------------------------------------------------------------------------------

p.entities.sports_complex = {

    title = "مجموعه ورزشی",

    layouts = {

        "sports_complex",
        "management",
        "location",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Sports Board
--------------------------------------------------------------------------------

p.entities.board = {

    title = "هیئت ورزشی",

    layouts = {

        "board",
        "management",
        "location",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Competition
--------------------------------------------------------------------------------

p.entities.competition = {

    title = "رویداد ورزشی",

    layouts = {

        "competition",
        "location",
        "contact",
        "honors"

    }

}

--------------------------------------------------------------------------------
-- Entity Defaults
--------------------------------------------------------------------------------

for _, entity in pairs(p.entities) do

    entity.icon = entity.icon or nil

    entity.category = entity.category or nil

end
--------------------------------------------------------------------------------
-- Sports Event
--------------------------------------------------------------------------------

p.layouts.sports_event = {

    "sport",

    "discipline",

    "season",

    "competition",

    "level",

    "champion",

    "runner_up"

}

--------------------------------------------------------------------------------
-- Sports Event Entity
--------------------------------------------------------------------------------

p.entities.sports_event = {

    title = "رویداد ورزشی",

    layouts = {

        "competition",
        "location",
        "honors",
        "contact"

    }

}

--------------------------------------------------------------------------------
-- Additional Metadata
--------------------------------------------------------------------------------

p.meta.fields = {

    dynamic = true,

    removeEmpty = true,

    useFieldDefinitions = true

}

--------------------------------------------------------------------------------
-- Version
--------------------------------------------------------------------------------

p.version = {

    major = 3,

    minor = 0,

    name = "AlborzSports"

}

--------------------------------------------------------------------------------
-- EXPORT
--------------------------------------------------------------------------------

return p