Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Sum of hit counts in a namespace?

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


daviddoria at gmail

Jun 19, 2012, 7:46 PM

Post #1 of 2 (280 views)
Permalink
Sum of hit counts in a namespace?

I am looking to gather some statistics on the hit counts of pages of a
wiki. There is a "main page": http://www.vtk.org/Wiki/VTK/Examples/Cxx that
has a hit counter, but often users to directly to a sub page (e.g.
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere) so their
hit is not recorded on the "main page" hit counter, but rather on the sub
page's counter. To get an idea of the total number of hits, is there some
way to sum all of the hit counters occurring on pages "beneath"
VTK/Examples/Cxx ?

Thanks,

David
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


emufarmers at gmail

Jun 20, 2012, 12:57 AM

Post #2 of 2 (270 views)
Permalink
Re: Sum of hit counts in a namespace? [In reply to]

I don't know of any existing magic word for view counts on a page-by-page
basis, but you could create one, or just query the database for the
specific number you want:

SELECT SUM(page_counter) FROM page WHERE page_title LIKE "VTK/Examples/Cxx%"
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.