Which is the most popular football code in Australia both in terms of number of active players, and spectator attendance?
As written in the comment is not clear what do you mean with "most popular".
I can try to reply to the question whinking about popularity like attendance.
The sources not agreed on all data, but it seems that this sport is the top on both the rankings.
On other hand the sport with most players seems football.
On the picture belows some images from guardian source: from the last one is possible to notice that only football has an official women League