Fair wars, P2P vs F2P

It weights both.

Top 5 are in there cause that’s how the game accounts for the “war defence” team (assumes that you’ll field close to your strongest team).

Top 30 are then in there to account for your overall depth.

Then it also tracks the alliance’s past 20 war history & (as of V31) now tracks your individual performance over the past 20 wars.

In a couple months time, the individual war performance will replace the alliance war contribution.

This thread has a couple good summaries & the responses from the developers:

and here is where the devs said they were changing the “war history” component from alliance wide to individual: