Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
|Your wiki's average page size|
Hello, Wikians and other readers!
A lot of people know how many articles, files or even active users their favorite wiki has, and the shortest pages and long pages can easily be found as well. However, what about the average page size of your wiki? How long is the average article users land on when hitting the "random page" button?
In this blog, I will be discussing a way to find your wiki's current average page size in bytes (300 bytes is one small paragraph). If you want to keep track of this on longer term, feel free to re-use this method every week or month as you please.
Wikis can have thousands of pages, yet contain less content than one of 200-300 pages because of page length: a 5000-article wiki with one paragraph per article may not be very interesting to read to people who like to have a lot of info at once. So rather than just looking at the size of a wiki, it may be important to look at how indepth it is before you judge that one contains more information than the other.
The method I will be explaining in this blog is one way to find out a wiki's average page size in bytes. There may be others, and if you know a way, feel free to share, but this is the one that I know of. Additionally, I'd also like to mention that it may especially be helpful for small or medium-sized wiki. Larger wikis will take a little more time.
Step 1: raw page sizes
The first step is to get your wiki's raw page sizes. For this, you need to go to Special:ShortPages on your wiki, where all the page sizes are listed behind the article names. From here, you have a couple of options to get to the raw page sizes:
The first two options will definitely do for small wikis with only a (couple of) dozen articles, but definitely aren't advised for any wiki bigger than that. Therefore, I will go step-by-step through how to use regular expressions for this. Credit for Regex help goes to Rappy!
Page sizes with regex
These are the steps to get your raw page sizes with regex:
Step 2: find average
Now that you have all raw numbers, you can calculate the average between them. As always, you can do this manually, but that may be a little time-consuming with bigger wikis. Therefore, there are two tools I think can be used:
Want me to prove that it works? Just for this blog, I have recalculated the average page size of the following wikias:
What about yours?
So want to try this out? Even if you don't, I'm quite curious about the average page length of your wiki :) feel free to let me know, to ask any questions if you don't understand this method, or to share your thoughts in general, in the comment section below.