Hi all. My apologies if this is not the right group.
I'm trying to find the official MediaWiki version which Wikipedia uses.
According to http://en.wikipedia.org/wiki/Wikipedia:About, Wikipedia is running MediaWiki version 1.18wmf1 (r104604).
However, when I download r104604, I get a version that is close to Wikipedia, but not quite.
For example, when parsing the following text: a<sup>2</sub>b MediaWiki produces "a<sup>2</sub>b</sup>" Wikipedia produces "a<sup>2</sup>b</p>"
Wikipedia converts the </sub> tag to a </sup> tag. You can see this in http://en.wikipedia.org/wiki/Algebraic_geometry with the following excerpt: rectangular box ''a''<sup>2</sub>''b'' I've noticed other discrepancies as well (so far about a dozen). I list 2 more below. I can list more if anyone is interested, or think it's relevant.
I'm new to MediaWiki development, so I might be doing something stupid. However, I've gone through other versions (svn commands listed below), and I can't figure it out. I've spent well over an hour on it.
Can any one point me in the right direction?
Thanks.
SVN commands official release (r104604): svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3@104604 wiki bleeding edge release: svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3 wiki latest trunk release?: svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3@105083 wiki
Urls for testing behavior. I've been using the "Show preview" button (it invokes the same code in Parser.php/Sanitizer.php). Modify the localhost url as per your environment. http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=submi... http://localhost/wiki/index.php?title=Main_Page&action=submit
Other divergent behavior == <span/> converted to <span></span> == Text : <span id="a" /> MediaWiki: <span id="a" /> Wikipedia: <span id="a"></span> Ref : http://en.wikipedia.org/wiki/Altaic_languages Excerpt:
<!-- NOTE: Please leave the following id's which were the previous titles of this section. Many pages link to these section titles. --><span id="Controversy" /> <span id="The controversy over Altaic" />
== Empty tags pruned === Text : a '' '' b MediaWiki: a <i> </i> b Wikipedia: a b Ref : http://en.wikipedia.org/wiki/Arkansas Excerpt :
'''53.21%''' '' ''505,823
WMF uses a specific branch which is based on, but not exactly the same as the official 1.18 release. It is one of these two branches: http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/1.18wmf1/ http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf-deployment/ Although I do not know offhand which one.
-- Dan Collins
On Sat, Dec 3, 2011 at 5:12 PM, gnosygnu gnosygnu@gmail.com wrote:
Hi all. My apologies if this is not the right group.
I'm trying to find the official MediaWiki version which Wikipedia uses.
According to http://en.wikipedia.org/wiki/Wikipedia:About, Wikipedia is running MediaWiki version 1.18wmf1 (r104604).
However, when I download r104604, I get a version that is close to Wikipedia, but not quite.
For example, when parsing the following text: a<sup>2</sub>b MediaWiki produces "a<sup>2</sub>b</sup>" Wikipedia produces "a<sup>2</sup>b</p>"
Wikipedia converts the </sub> tag to a </sup> tag. You can see this in http://en.wikipedia.org/wiki/Algebraic_geometry with the following excerpt: rectangular box ''a''<sup>2</sub>''b'' I've noticed other discrepancies as well (so far about a dozen). I list 2 more below. I can list more if anyone is interested, or think it's relevant.
I'm new to MediaWiki development, so I might be doing something stupid. However, I've gone through other versions (svn commands listed below), and I can't figure it out. I've spent well over an hour on it.
Can any one point me in the right direction?
Thanks.
SVN commands official release (r104604): svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3@104604 wiki bleeding edge release: svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3 wiki latest trunk release?: svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3@105083 wiki
Urls for testing behavior. I've been using the "Show preview" button (it invokes the same code in Parser.php/Sanitizer.php). Modify the localhost url as per your environment. http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=submi... http://localhost/wiki/index.php?title=Main_Page&action=submit
Other divergent behavior == <span/> converted to <span></span> == Text : <span id="a" /> MediaWiki: <span id="a" /> Wikipedia: <span id="a"></span> Ref : http://en.wikipedia.org/wiki/Altaic_languages Excerpt:
<!-- NOTE: Please leave the following id's which were the previous titles of this section. Many pages link to these section titles. --><span id="Controversy" /> <span id="The controversy over Altaic" />
== Empty tags pruned === Text : a '' '' b MediaWiki: a <i> </i> b Wikipedia: a b Ref : http://en.wikipedia.org/wiki/Arkansas Excerpt :
'''53.21%''' '' ''505,823
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Sat, Dec 3, 2011 at 5:18 PM, Dan Collins en.wp.st47@gmail.com wrote:
WMF uses a specific branch which is based on, but not exactly the same as the official 1.18 release. It is one of these two branches: http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/1.18wmf1/ http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf-deployment/ Although I do not know offhand which one.
-- Dan Collins
That second branch hasn't been updated since 1.16, so I'm guessing it's the first branch, /wmf/1.18wmf1/: http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/1.18wmf1/
-- Dan Collins
Thanks for the quick response!
Unfortunately, neither makes a difference. (For some reason, I started with deployment first). The behavior above is still the same.
For the record, I used these commands:
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf-deployment wiki svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/1.18wmf1 wiki svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/1.18wmf1@104604 wiki
Thanks
On Sat, Dec 3, 2011 at 5:20 PM, Dan Collins en.wp.st47@gmail.com wrote:
On Sat, Dec 3, 2011 at 5:18 PM, Dan Collins en.wp.st47@gmail.com wrote:
WMF uses a specific branch which is based on, but not exactly the same as the official 1.18 release. It is one of these two branches: http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/1.18wmf1/ http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf-deployment/ Although I do not know offhand which one.
-- Dan Collins
That second branch hasn't been updated since 1.16, so I'm guessing it's the first branch, /wmf/1.18wmf1/: http://svn.wikimedia.org/svnroot/mediawiki/branches/wmf/1.18wmf1/
-- Dan Collins
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Sat, Dec 3, 2011 at 17:12, gnosygnu gnosygnu@gmail.com wrote:
Hi all. My apologies if this is not the right group.
I'm trying to find the official MediaWiki version which Wikipedia uses.
According to http://en.wikipedia.org/wiki/Wikipedia:About, Wikipedia is running MediaWiki version 1.18wmf1 (r104604).
However, when I download r104604, I get a version that is close to Wikipedia, but not quite.
For example, when parsing the following text: a<sup>2</sub>b MediaWiki produces "a<sup>2</sub>b</sup>" Wikipedia produces "a<sup>2</sup>b</p>"
Wikipedia converts the </sub> tag to a </sup> tag. You can see this in http://en.wikipedia.org/wiki/Algebraic_geometry with the following excerpt: rectangular box ''a''<sup>2</sub>''b'' I've noticed other discrepancies as well (so far about a dozen). I list 2 more below. I can list more if anyone is interested, or think it's relevant.
I'm new to MediaWiki development, so I might be doing something stupid. However, I've gone through other versions (svn commands listed below), and I can't figure it out. I've spent well over an hour on it.
Can any one point me in the right direction?
My first guess is that it's related to the use of HTML Tidy. Seems to be enabled currently on the WMF cluster: see $wgUseTidy @ http://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php
-Jeremy
wikitech-l@lists.wikimedia.org