Jump to content

User:Iritscen/PageCountAudit: Difference between revisions

m
wording
(updated notes based on examination of 1.20.3 code)
m (wording)
Line 1: Line 1:
==Magic words==
==Magic words==
These first two poorly-documented magic words provide easy answers to the amount of content on the wiki.
These first two magic words provide easy answers to the amount of content on the wiki, but are they accurate and useful?


'''NUMBEROFPAGES''': {{NUMBEROFPAGES}}
'''NUMBEROFPAGES''': {{NUMBEROFPAGES}}
Line 6: Line 6:
MW code says: Simply count all entries in page table.
MW code says: Simply count all entries in page table.


Iritscen says: This magic word now matches a sum of all PAGESINNS counts, including files and redirects.
Iritscen says: Though problematic in the past, this magic word now matches the grand total (see below) of all PAGESINNS counts, including files and redirects.


'''NUMBEROFARTICLES''': {{NUMBEROFARTICLES}}
'''NUMBEROFARTICLES''': {{NUMBEROFARTICLES}}
Line 77: Line 77:


==Conclusion==
==Conclusion==
NUMBEROFPAGES is worse than useless, and I cannot reconcile NUMBEROFARTICLES with PAGESINNS. On the other hand, PAGESINNS reconciles with AllPages, which makes it verifiable. So we need to get the true count by using PAGESINNS and subtracting redirects (which is unfortunate because the redirect part has to be counted manually).
NUMBEROFPAGES is too broad to be useful, and I cannot reconcile NUMBEROFARTICLES with PAGESINNS. On the other hand, PAGESINNS reconciles with AllPages, which makes it verifiable. So we need to get the true count by using PAGESINNS and subtracting redirects (which is unfortunate because the redirect part has to be counted manually).


Namespaces '''Main, User, BSL, OBD, XML, AE, and Oni2''' totaled using PAGESINNS: {{#expr:{{PAGESINNS:0}}+{{PAGESINNS:2}}+{{PAGESINNS:100}}+{{PAGESINNS:102}}+{{PAGESINNS:104}}+{{PAGESINNS:108}}+{{PAGESINNS:110}}}}
Namespaces '''Main, User, BSL, OBD, XML, AE, and Oni2''' totaled using PAGESINNS: {{#expr:{{PAGESINNS:0}}+{{PAGESINNS:2}}+{{PAGESINNS:100}}+{{PAGESINNS:102}}+{{PAGESINNS:104}}+{{PAGESINNS:108}}+{{PAGESINNS:110}}}}


'''''True count''''' (above total minus redirects in those namespaces): {{#expr:{{PAGESINNS:0}}+{{PAGESINNS:2}}+{{PAGESINNS:100}}+{{PAGESINNS:102}}+{{PAGESINNS:104}}+{{PAGESINNS:108}}+{{PAGESINNS:110}}-266-0-2-22-0-5-3}}
'''''True count''''' (above total minus redirects that I've counted in those namespaces): {{#expr:{{PAGESINNS:0}}+{{PAGESINNS:2}}+{{PAGESINNS:100}}+{{PAGESINNS:102}}+{{PAGESINNS:104}}+{{PAGESINNS:108}}+{{PAGESINNS:110}}-266-0-2-22-0-5-3}}