Bug 205901

Summary: Appearance of the Wikipedia applet is broken with non-default MediaWiki skins
Product: [Applications] amarok Reporter: Stefan Majewsky <majewsky>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal CC: simon.esneault
Priority: NOR    
Version: 2.3-GIT   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Stefan Majewsky 2009-09-01 17:28:38 UTC
Version:           2.2-GIT (using KDE 4.3.0)
Installed from:    SuSE RPMs

I'm participating in what Wikipedia calls "beta test", which means that I've selected some new skin for Wikipedia. Because of KCookieJar, this setting is also shared with Amarok. The new skin seems to emit slightly different input, because the parser in WikipediaEngine::wikiParse() partially fails: The result still looks like the normal Wikipedia webpage, including space for the menu bar at the left, though all menu elements and the Wikipedia logo are correctly hidden. It just looks suboptimal.

Looking at WikipediaEngine::wikiUrl, I see that no skin is specified manually. Instead of URLs like http://en.wikipedia.org/wiki/The_Beatles, you should use: http://en.wikipedia.org/w/index.php?title=The_Beatles&useskin=monobook - This includes a fixed skin, which your parser can be tailored towards.
Comment 1 Simon ESNEAULT 2009-09-03 09:38:14 UTC
Good suggestion, it's now in trunk, thanks
-Simon