پرش به محتوا

پودمان:AlborzSports/Data

از ویکی البرز

توضیحات این پودمان می‌تواند در پودمان: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