Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to show "who contributed to this line" of each line of a page of Wikipedia or of a MediaWiki site?

It would show per page and would be similar to the subversion blame tool.

share|improve this question

migrated from superuser.com Jun 4 '11 at 6:14

This question came from our site for computer enthusiasts and power users.

Do you want to find the first occurrence of a specific word or phrase in a page's revision history, or is this question about something else? There must be some way to download the full revision history for a specific page, but I haven't found it yet. – Anderson Green Nov 26 '12 at 17:59
Yeah that's about right. – rogerdpack Nov 26 '12 at 18:01
It's very easy to do this using WikiBlame, as explained here: webapps.stackexchange.com/a/35914/20087 – Anderson Green Nov 26 '12 at 19:19
Wow that's pretty close. Looks like that one drills in to find the committer of "given words" in the wiki page, maybe it could be modified to show the entire page :) – rogerdpack Nov 26 '12 at 19:55
It already shows the revision where the text was added, so you can just click on that link to see what the entire page looked like when the text was added. – Anderson Green Nov 26 '12 at 20:02
up vote 0 down vote accepted

I often need something like this as well, but it looks like there's no ready solution.

What I've done is written a script that helps me grab revisions using the MediaWiki API and import them to the Bazaar version control system. bzr qblame article.wiki, then gives a nice view of who changed what. The script is not really ready for release, but I've uploaded it to Pastebin, in case anyone is sufficiently interested. The script adds to a mercurial repo, which can then be converted to Bazaar.

share|improve this answer

http://search.cpan.org/~daxim/Mediawiki-Blame-0.0.3/lib/Mediawiki/Blame.pm appears to support exactly this. Unfortunately, it's just a perl module, not a user-friendly command, so it's going to be a bit harder to use than one might want …

share|improve this answer
But one could make a web frontend for that module, similar to wikipedia.ramselehof.de/wikiblame.php – Nemo Nov 24 '15 at 13:37

Another not very user friendly solution would be the mw-to-git extension for git, which would presumably allow you to run git blame on a page.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.