Advertisement

Данная группа модулей хранит основные актуальные метаданные о League of Legends: версию игры, номер сезона, последнего чемпиона, последнего переработанного и т.п. Также хранит некоторые метаданные Teamfight Tactics (номер набора) и Legends of Runeterra (версию игры).

Перечень модулей:

  • Модуль:Maintenance data - функции для обработки и выдачи данных.
  • Модуль:Maintenance data/data - таблица метаданных об играх.

From Модуль:Maintenance data/doc


-- <pre>
-- Используется для: [[Шаблон:Актуальные технические данные]]

return {
    ["Patch"]                  = "V11.20",
    ["PatchId"]                = "11.20",
    ["NextPatch"]              = "V11.21",
    ["SeasonNumber"]           = "11",
    ["SeasonWord"]             = "Одиннадцатый",
    ["SeasonType"]             = "Сезон",
    ["SeasonStart"]            = "2021-01-06",
    ["TFTSet"]                 = "5",
    ["LoRPatch"]               = "2.16",
    ["LastChampionName"]       = "Акшан",
    ["UpcomingChampionName"]   = "Векс",
    
    -- Used in [[Template:Hot]]
    ["HotChampion"] = {
        [1] = "Векс",
        [2] = "Акшан",
        [3] = "Гвен",
    },
    ["HotRelaunch"]   = {
        [1] = "Доктор Мундо",
        [2] = "Волибир",
        [3] = "Фиддлстикс",
    },
    
    -- Archived date of the first champion rotation,
    -- dates do not refer to competetive seasons,
    -- but patch cycles
    ["Pre-Season1Start"]       = "2009-11-20",
    ["Season1Start"]           = "2010-07-13",
    ["Pre-Season2Start"]       = "2011-09-20",
    ["Season2Start"]           = "2011-11-29",
    ["Pre-Season3Start"]       = "2012-11-20",
    ["Season3Start"]           = "2013-02-01",
    ["Pre-Season4Start"]       = "2013-11-20",
    ["Season4Start"]           = "2014-01-15",
    ["Pre-Season5Start"]       = "2014-11-20",
    ["Season5Start"]           = "2015-01-15",
    ["Pre-Season6Start"]       = "2015-11-11",
    ["Season6Start"]           = "2016-01-14",
    ["Pre-Season7Start"]       = "2016-11-10",
    ["Season7Start"]           = "2017-01-11",
    ["Pre-Season8Start"]       = "2017-11-08",
    ["Season8Start"]           = "2018-01-10",
    ["Pre-Season9Start"]       = "2018-11-20",
    ["Season9Start"]           = "2019-01-09",
    ["Pre-Season10Start"]      = "2019-11-20",
    ["Season10Start"]          = "2020-01-08",
    ["Pre-Season11Start"]      = "2020-11-10",
    ["Season11Start"]          = "2021-01-06",
    
    -- STATIC DATA
    ["TotalReleasedChampions"] = (function ()
        local lolData = mw.loadData("Модуль:ChampionData/data")
        local i = 0
        local skip = {
            ["Мега-Гнар"] = true, 
            ["Клед и Скарл"] = true, 
            ["Рааст"] = true, 
            ["Сумеречный убийца"] = true,
            ["Upcoming"] = true, 
            ["N/A"] = true, 
            ["Cancelled"] = true, 
            [""] = true,
        }
        for k, v in pairs(lolData) do
            if not skip[k] and not skip[v["date"] or "Upcoming"] then
                i = i + 1
            end
        end
        return i
    end)()
}
-- </pre>
-- [[Category:Lua]]