Skip to content

feat(Infobox): add Fortnite Power Rankings for players and organizations#7633

Open
Mehdi9120310391 wants to merge 28 commits into
Liquipedia:mainfrom
Mehdi9120310391:patch-10
Open

feat(Infobox): add Fortnite Power Rankings for players and organizations#7633
Mehdi9120310391 wants to merge 28 commits into
Liquipedia:mainfrom
Mehdi9120310391:patch-10

Conversation

@Mehdi9120310391

Copy link
Copy Markdown
Contributor

Summary

We have implemented a "power ranking" system for the various organizations present on Fortnite, based on data such as the PR of the organization's players (using official data provided by Epic Games) who are in the top 200 best players in the world, as well as the organization's earnings for the year in question.

Rankings:

How did you test this change?

|dev=mej :

image

@Mehdi9120310391 Mehdi9120310391 requested review from a team as code owners June 9, 2026 11:26
@Hesketh2

Hesketh2 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Note from hesketh2: I've mentioned this internally to our Community Team + Nydra and it's good to go from our end, the more cooler features specially community-driven the better : )

Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
---@param team string
---@return string? score
---@return string? rank
local function fetchPowerRanking(team)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason org rankings are stored in LPDB, but player rankings are stored in a plain module?
Ideally we use the same here to reduce complexity.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be difficult to understand, so I'll explain.

On Fortnite, organizations are not officially recognized on the professional "FNCS" circuit; only players are. These players earn Power Ranking (PR) points through their various tournament performances. This PR is managed by Epic Games' official API, whose data is public. My hosted bot is responsible for retrieving this data and pushing it to Liquipedia via the "Module:PowerRankings/Data" page. It only contains player data.

The logic behind needing to use LPDB is specifically for organizations, with the goal of adding them to a ranking to determine which one is in the best position compared to the others over a given period. That's why the two differ so much.

Do you see what I mean?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get that there are currently different sources, what i'm trying to hint you towards is to consider whether it makes sense to also push the player data into LPDB. This would allow, for example but not limited to, future use of historical data, e.g. charts.
It's not necessary to do so, but it is a nice thing to have.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to, but could you help me doing that? wanna make sure I won't break anything 😅

Comment thread lua/wikis/fortnite/Infobox/Team/Custom.lua Outdated

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infoboxes (especially infobox player) are already pretty long, does it have to be displayed in the infobox?
have you considered displaying it somewhere else on the page?

Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Team/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Team/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Team/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Person/Player/Custom.lua Outdated
Comment thread lua/wikis/fortnite/Infobox/Team/Custom.lua Outdated
Mehdi9120310391 and others added 2 commits June 9, 2026 13:29
Co-authored-by: hjpalpha <75081997+hjpalpha@users.noreply.github.com>
Co-authored-by: hjpalpha <75081997+hjpalpha@users.noreply.github.com>
@Mehdi9120310391

Copy link
Copy Markdown
Contributor Author

infoboxes (especially infobox player) are already pretty long, does it have to be displayed in the infobox? have you considered displaying it somewhere else on the page?

not really, for me it's the best option

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review for Module:PowerRankings
(don't have the time to review the other one atm, will likely review it in the next days)

Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua
@Mehdi9120310391 Mehdi9120310391 requested a review from hjpalpha June 10, 2026 15:34

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skimmed through it on phone

Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated

@ElectricalBoy ElectricalBoy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should look into using existing ratings widgets instead

Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated
@Mehdi9120310391 Mehdi9120310391 requested a review from hjpalpha June 11, 2026 20:35
Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua
Applying hjpalpha's code

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to make the limter happy (line length)

Comment thread lua/wikis/fortnite/PowerRankings/Orgs.lua Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self (for friday/saturday):

  • add storage
  • add function the infoboxes can call, that fetches from storage and builds the display of the rank (not of the name field)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants