Модуль:FetchData2: відмінності між версіями

нема опису редагування
Немає опису редагування
Немає опису редагування
Рядок 415: Рядок 415:
      
      
     return ""
     return ""
end
function p.prev_player_link(frame)
    local name = frame.args.player
    local prev = p.prev_player(frame)
   
    if prev == "" or not prev then
        return ""
    end
   
    return string.format(
        '<a href="/index.php/%s" style="width:48px; height:48px; display:flex; align-items:center; justify-content:center; text-decoration:none; border:2px solid #333; border-radius:8px;"><span style="color:gold; font-size:24px; font-weight:bold;">←</span></a>',
        mw.uri.encode(prev, "WIKI")
    )
end
function p.next_player_link(frame)
    local name = frame.args.player
    local next = p.next_player(frame)
   
    if next == "" or not next then
        return ""
    end
   
    return string.format(
        '<a href="/index.php/%s" style="width:48px; height:48px; display:flex; align-items:center; justify-content:center; text-decoration:none; border:2px solid #333; border-radius:8px;"><span style="color:gold; font-size:24px; font-weight:bold;">→</span></a>',
        mw.uri.encode(next, "WIKI")
    )
end
end


return p
return p