19,095
edits
(→Page count project: general wrap-up) |
m (→Magic words: words more goodened) |
||
Line 33: | Line 33: | ||
==Page count project== | ==Page count project== | ||
===Magic words=== | ===Magic words=== | ||
These poorly- | These first two poorly-documented magic words provide easy answers to the amount of content on the wiki. However, unless they are based on something logical that I haven't discovered yet, they are completely useless. | ||
'''NUMBEROFPAGES''': {{NUMBEROFPAGES}} | '''NUMBEROFPAGES''': {{NUMBEROFPAGES}} | ||
Line 45: | Line 45: | ||
MW code says: Get all entries in page table are in content namespaces (see $wgContentNamespaces) and are not redirects, then get distinct count of entries in pagelinks table, pl_from field, that match those page ids. | MW code says: Get all entries in page table are in content namespaces (see $wgContentNamespaces) and are not redirects, then get distinct count of entries in pagelinks table, pl_from field, that match those page ids. | ||
Iritscen says: Supposedly this does not count pages which have no inter-wiki links in them, and the code seems to verify that. One would expect that this number would therefore | Iritscen says: Supposedly this does not count pages which have no inter-wiki links in them, and the code seems to verify that. One would expect that this number would therefore agree with PAGESINNS when one adds in the pages listed on [[Special:DeadendPages]]; however, there were 107 dead-end pages as of 4/22/12. Adding these back in still leads to a lower result than using PAGESINNS less redirects, so I consider NUMBEROFARTICLES too suspect to use. | ||
'''PAGESINNS''', AKA PAGESINNAMESPACE: These counts agree with the number of pages displayed for | '''PAGESINNS''', AKA PAGESINNAMESPACE: These counts agree with the number of pages displayed for each namespace on the [[Special:AllPages]] page, which provides some much-needed verifiability. However, since Allpages counts redirect pages, that means that PAGESINNS does too. Therefore, we can't use a straight sum of PAGESINNS results as our page count. | ||
PAGESINNS breakdown: | PAGESINNS breakdown: | ||
*Namespace '''{{ns:-2}}''' has ID -2, but we can't get a page count | *Namespace '''{{ns:-2}}''' has ID -2, but we can't get a page count | ||
*Namespace '''{{ns:-1}}''' has ID -1, but we can't get a page count | *Namespace '''{{ns:-1}}''' has ID -1, but we can't get a page count | ||
*Namespace '''Main''' does not return an ID number, but apparently it's 0, because <nowiki>{{PAGESINNS:0}}</nowiki> returns {{PAGESINNS:0}} pages, which agrees with [[Special:AllPages]] | *Namespace '''Main''' does not return an ID number, but apparently it's 0, because <nowiki>{{PAGESINNS:0}}</nowiki> returns {{PAGESINNS:0}} pages, which agrees with [[Special:AllPages]] | ||
*Namespace '''{{ns:1}}''' has ID 1 and {{PAGESINNS:1}} pages | *Namespace '''{{ns:1}}''' has ID 1 and {{PAGESINNS:1}} pages |