Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4126972
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:06:10+00:00 2026-05-21T00:06:10+00:00

We have a MediaWiki wiki. I’d like to be able to report how much

  • 0

We have a MediaWiki wiki. I’d like to be able to report how much collaboration is going on and I thought of the following graph: number of authors per page. So the data would be like this:

#Pages #Authors
20     1
10     2
25     3

etc. This would show that 20 pages have only 1 author, 10 have 2, 25 have 3, …

Does anyone know of a way of getting this information?

This information would also somehow need to be shown over time – so if anyone has information on how to do this I’d be grateful. (E.g. last months 25% of pages had 2 or more authors, this month it is 30%).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T00:06:11+00:00Added an answer on May 21, 2026 at 12:06 am

    This not exactly what you wanted, but it might be a good start. It’s a simple special page whose only purpose is to display page names and number of authors.

    $wgAutoloadClasses['SpecialPagesAuthors'] = $IP . '/additions.php';
    $wgSpecialPages['PagesAuthors'] = 'SpecialPagesAuthors';
    
    class SpecialPagesAuthors extends SpecialPage {
        function __construct() {
            parent::__construct( 'PagesAuthors' );
        }
    

    This is basically just registering the page.

        function execute( $par ) {
            global $wgOut;
    
            $dbr = wfGetDB( DB_SLAVE );
    
            $output = <<<WIKITEXT
    {| class="wikitable"
    ! Page !! Authors
    
    WIKITEXT;
    

    We put everything in a nice table.

            $query_result = $dbr->select(
                array( 'revision', 'page' ),
                array( 'rev_page', 'page_id', 'page_namespace', 'page_title',
                    'COUNT(DISTINCT(rev_user_text)) AS unique_authors' ),
                null,
                __METHOD__,
                array( 'GROUP BY' => 'rev_page', 'ORDER BY' => 'unique_authors DESC' ),
                array( 'page' => array( 'LEFT JOIN', 'page_id=rev_page' ) )
            );
    

    Here we query the database for pages and number of authors (which is essentially the number of unique user names and IPs who edited the page).

            foreach( $query_result as $row ) {
                $title = Title::newFromRow( $row );
                $page_title = $title->getPrefixedText();
                $output .= <<<WIKITEXT
    |-
    | {$page_title} || {$row->unique_authors}
    
    WIKITEXT;
            }
    
            $dbr->freeResult( $query_result );
    

    Here we output the page name and number of authors to the table and free the DB query result.

            $output .= "|}";
    
            $this->setHeaders();
            $wgOut->addWikiText( $output );
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have some xml containing things like the following mediawiki markup: ...collected in
I would like to have a subscription sponsored wiki in MediaWiki. I want the
I can't get MediaWiki to work on Nginx. I have it in my /var/www/domain.com/htdocs/wiki
Hi i have following Problem. I write a Mediawiki Extension where i need some
We have a MediaWiki wiki in which we make extensive use of templates. These
We have two mediawiki (like wikipedia) installations. One is public and one is internal.
Current versions of MediaWiki have the front page accessible via http://www.example.com/wiki/index.php/Main_Page Instead of the
Does anyone have any experience converting a SocialText wiki into a MediaWiki? Is there
i have set up Wiki:Family using the tutorial #2 specified here http://www.mediawiki.org/wiki/Wiki_family Specifically, i
I have a private wiki running in localhost. I use MediaWiki 1.19 and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.