Skip to content

Instantly share code, notes, and snippets.

@chklauser
Created October 3, 2012 19:36
Show Gist options
  • Select an option

  • Save chklauser/3829294 to your computer and use it in GitHub Desktop.

Select an option

Save chklauser/3829294 to your computer and use it in GitHub Desktop.
Example of the history of a page-rename.
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.7/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.7/ http://www.mediawiki.org/xml/export-0.7.xsd" version="0.7" xml:lang="en">
<siteinfo>
<sitename>Wikipedia</sitename>
<base>http://en.wikipedia.org/wiki/Main_Page</base>
<generator>MediaWiki 1.20wmf12</generator>
<case>first-letter</case>
<namespaces>
<namespace key="-2" case="first-letter">Media</namespace>
<namespace key="-1" case="first-letter">Special</namespace>
<namespace key="0" case="first-letter" />
<namespace key="1" case="first-letter">Talk</namespace>
<namespace key="2" case="first-letter">User</namespace>
<namespace key="3" case="first-letter">User talk</namespace>
<namespace key="4" case="first-letter">Wikipedia</namespace>
<namespace key="5" case="first-letter">Wikipedia talk</namespace>
<namespace key="6" case="first-letter">File</namespace>
<namespace key="7" case="first-letter">File talk</namespace>
<namespace key="8" case="first-letter">MediaWiki</namespace>
<namespace key="9" case="first-letter">MediaWiki talk</namespace>
<namespace key="10" case="first-letter">Template</namespace>
<namespace key="11" case="first-letter">Template talk</namespace>
<namespace key="12" case="first-letter">Help</namespace>
<namespace key="13" case="first-letter">Help talk</namespace>
<namespace key="14" case="first-letter">Category</namespace>
<namespace key="15" case="first-letter">Category talk</namespace>
<namespace key="100" case="first-letter">Portal</namespace>
<namespace key="101" case="first-letter">Portal talk</namespace>
<namespace key="108" case="first-letter">Book</namespace>
<namespace key="109" case="first-letter">Book talk</namespace>
</namespaces>
</siteinfo>
<page>
<title>User:SealedSun/sandbox/OriginalTitle</title>
<ns>2</ns>
<id>37205045</id>
<redirect title="User:SealedSun/sandbox/NewTitle" />
<revision>
<id>515815673</id>
<timestamp>2012-10-03T16:24:20Z</timestamp>
<contributor>
<username>SealedSun</username>
<id>575157</id>
</contributor>
<comment>SealedSun moved page [[User:SealedSun/sandbox/OriginalTitle]] to [[User:SealedSun/sandbox/NewTitle]]: There is no reason in move!</comment>
<sha1>2hf11otsa0dutbcr0ln007cg9c6iasl</sha1>
<text xml:space="preserve" bytes="45">#REDIRECT [[User:SealedSun/sandbox/NewTitle]]</text>
</revision>
</page>
<page>
<title>User:SealedSun/sandbox/NewTitle</title>
<ns>2</ns>
<id>37205032</id>
<revision>
<id>515815332</id>
<timestamp>2012-10-03T16:21:41Z</timestamp>
<contributor>
<username>SealedSun</username>
<id>575157</id>
</contributor>
<comment>Create original page.</comment>
<sha1>1igjgclrwn369rhjdrigfcdprqacz5c</sha1>
<text xml:space="preserve" bytes="26">This is the original text.</text>
</revision>
<revision>
<id>515815412</id>
<parentid>515815332</parentid>
<timestamp>2012-10-03T16:22:14Z</timestamp>
<contributor>
<username>SealedSun</username>
<id>575157</id>
</contributor>
<comment>Add a bit of text.</comment>
<sha1>4osa0uyqkyqhwf5ztqpgqcuiy1g6cre</sha1>
<text xml:space="preserve" bytes="81">This is the original text.
This is some text that will be removed in the future.</text>
</revision>
<revision>
<id>515815672</id>
<parentid>515815412</parentid>
<timestamp>2012-10-03T16:24:20Z</timestamp>
<contributor>
<username>SealedSun</username>
<id>575157</id>
</contributor>
<minor/>
<comment>SealedSun moved page [[User:SealedSun/sandbox/OriginalTitle]] to [[User:SealedSun/sandbox/NewTitle]]: There is no reason in move!</comment>
<sha1>4osa0uyqkyqhwf5ztqpgqcuiy1g6cre</sha1>
<text xml:space="preserve" bytes="81">This is the original text.
This is some text that will be removed in the future.</text>
</revision>
</page>
</mediawiki>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment