更改

跳转至: 导航搜索

模块:Standings

添加823字节2022年11月14日 (一) 23:44
无编辑摘要
local records_new = {}
local highest = nil
table.sort(records, standing_less)
for i = #records, 1, -1 do
local record = records[i]
if record[mode_col] == mode and record[level_col] == level then
if highest == nil or not score_less(highest, record[score_col], highest) then
table.insert(records_new, record)
highest = record[score_col]
function p.standings(frame)
local args = frame.args[1] and frame.args or frame:getParent().args;
local records = select_standing(get_sorted_records(), '常规HS'args[1], '01'args[2])
local record_last = nil
local ranking = 0
end
-- function p.historical_WRs(frame) -- local args = frame.args[1] and frame.args or frame:getParent().args; -- local records = select_WR(get_sorted_records(), args[1], args[2]) local date_until = 0 local scire_until = 0 local name_until = 0 local wikitable_str = '{| class="wikitable" style="display: inline-block; vertical-align: top"\n' wikitable_str = wikitable_str .. '|+ <h3> 关卡 ' .. args[2] .. '</h3>\n' wikitable_str = wikitable_str .. '! 时间 !! 纪录分数 !! 纪录持有者 !! 视频链接\n' for key, record in ipairs(records) do wikitable_str = wikitable_str .. '|- \n' wikitable_str = wikitable_str .. '|' .. record[date_col] wikitable_str = wikitable_str .. '||' .. record[score_col] wikitable_str = wikitable_str .. '||' .. record[name_col] wikitable_str = wikitable_str .. '||' .. record[video_col] wikitable_str = wikitable_str .. '\n' end wikitable_str = wikitable_str .. '|}\n' mw.log(wikitable_str) return wikitable_strend
return p
556
个编辑

导航菜单