Jump to content

User:Iritscen/TestSpace: Difference between revisions

→‎Page count project: notes from the MW code
(→‎Page count project: notes from the MW code)
Line 33: Line 33:
==Page count project==
==Page count project==
NUMBEROFPAGES: {{NUMBEROFPAGES}}
NUMBEROFPAGES: {{NUMBEROFPAGES}}
Code: Simply counts all entries in page table.


NUMBEROFARTICLES: {{NUMBEROFARTICLES}} -- supposedly this does not count pages which do not have inter-wiki links in them; there are 107 dead-end pages as of 4/22/12
NUMBEROFARTICLES: {{NUMBEROFARTICLES}} -- supposedly this does not count pages which do not have inter-wiki links in them; there are 107 dead-end pages as of 4/22/12
Code: 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.


Redirects: 357 as of 4/22/12
Redirects: 357 as of 4/22/12