Last modified: 2009-04-06 16:15:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5651, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3651 - PATCH: Minimal skin for use by PDAs, bots and dumps
PATCH: Minimal skin for use by PDAs, bots and dumps
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-08 14:33 UTC by Daniel Kinzler
Modified: 2009-04-06 16:15 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
skins/Raw.php - raw skin (new file, not patched against CVS but against a dummy file) (682 bytes, patch)
2005-10-08 14:35 UTC, Daniel Kinzler
Details
skins/Raw.php - IMPROVED raw skin (new file, not patched against CVS but against a dummy file) (1.65 KB, patch)
2005-10-08 15:28 UTC, Daniel Kinzler
Details

Description Daniel Kinzler 2005-10-08 14:33:35 UTC
Here's a trivial skin that adds close to no HTML around the article text. I
wrote it for including HTML image description in the image dump (work in
progress, feature request will follow sometime). It may also be usedful for
people who use PDAs to view a wiki, and also for bots (less cruft to parse, less
bytes to load).

patch to follow in a minute.
Comment 1 Daniel Kinzler 2005-10-08 14:35:11 UTC
Created attachment 953 [details]
skins/Raw.php - raw skin (new file, not patched against CVS but against a dummy file)
Comment 2 Daniel Kinzler 2005-10-08 15:28:38 UTC
Created attachment 955 [details]
skins/Raw.php - IMPROVED raw skin (new file, not patched against CVS but against a dummy file)

the new patch adds:

* DOCTYPE declaration and similar xhtml cruft
* http-equiv tags 
* interlanguage links

The output now validates as XHTML.
Comment 3 Mets501 2007-03-07 03:46:57 UTC
Can we think about getting this implemented?
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-03-07 04:00:02 UTC
Isn't this what action=render is for?
Comment 5 Gary van der Merwe 2007-05-25 07:20:08 UTC
Well action=render only allows you to view a page. This skin makes all pages minimal.
Comment 6 Melancholie 2008-05-16 07:05:08 UTC
This skin would reduce server traffic, resulting from those many wiki bots out there, a lot!

Test it with [[Volume]]!
*When editing with 'full' monobook skin the page has >70KB
*When removing all that unnecessary cruft the page has <10KB

All page requests (many!) and finally bot edits (rather few) would produce much less traffic!

Another idea would be to let bots edit through the new API (/w/api.php).
A XML output would be as minimalistic as this skin...
Comment 7 Nicolas Dumazet 2008-05-19 06:47:25 UTC
(In reply to comment #4)
> Isn't this what action=render is for?
> 

mmm... I do agree, but it does not work if you want to actually get the wikitext of the page / edit the page. The actual methode used by pywikipedia is action=edit, and it is quite slow.

Surely, we are working on a rewrite using the API, and our first results clearly indicate, if necessary, that this method is faster. But using the API to get the content does not make much sense if you eventually need to get action=edit to put your content...
Comment 8 Roan Kattouw 2008-05-19 13:37:56 UTC
(In reply to comment #7)
> Surely, we are working on a rewrite using the API, and our first results
> clearly indicate, if necessary, that this method is faster. But using the API
> to get the content does not make much sense if you eventually need to get
> action=edit to put your content...
> 

Actually, editing through the API was finished some time ago, and it'll be included in the 1.13 release. The point is getting it enabled on Wikipedia (or at least at TestWiki for a start), which Brion either hasn't had time for or is unwilling to do.
Comment 9 Mike.lifeguard 2008-11-22 19:35:16 UTC
(In reply to comment #0)
> Here's a trivial skin that adds close to no HTML around the article text. I
> wrote it for including HTML image description in the image dump (work in
> progress, feature request will follow sometime). It may also be usedful for
> people who use PDAs to view a wiki, and also for bots (less cruft to parse, less
> bytes to load).
> 
> patch to follow in a minute.

*bots -> API - now r/w on WMF wikis
*small screens -> special skin - now live on WMF wikis
*I don't understand your third use case.
Comment 10 Chad H. 2009-04-06 16:15:51 UTC
I'm going to mark this fixed per comment 9. We have the API for bots, and the minimal skin/mobile interface are both deployed by now. Specific issues with those things can be filed, but the general "make it" has been completed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links