Last modified: 2011-03-13 18:04:55 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 T23797, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21797 - CSS classes indicating the namespace linked to
CSS classes indicating the namespace linked to
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-08 17:55 UTC by René Kijewski
Modified: 2011-03-13 18:04 UTC (History)
2 users (show)

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


Attachments

Description René Kijewski 2009-12-08 17:55:58 UTC
It would be often helpful, if a wikilink [[User:s.b.]] would render a code like <a href="..." class="ns-2">...</a> to let JavaScripts more easily iterate over a certain kind of links. This should of cause not interfere with the existing CSS classes "new", "mw-redirect" and whatsoever.
E.g. for scripts that highlight links to admins' user pages.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2009-12-08 17:58:46 UTC
We output too many classes already; this would be excessive.  WONTFIX, IMO.  If this would be useful, you can parse the href to get the namespace, given wgServer and a list of all namespaces.
Comment 2 Chad H. 2009-12-08 18:17:28 UTC
Closing WONTFIX per comment #1, which I agree with wholeheartedly. The class creep needs to stop.
Comment 3 René Kijewski 2009-12-08 18:20:56 UTC
(In reply to comment #1)
> We output too many classes already; this would be excessive.  WONTFIX, IMO.  If
> this would be useful, you can parse the href to get the namespace, given
> wgServer and a list of all namespaces.
> 

I don't think it would be excessive. At most there would be 15 (well gzip'able) characters more per link. Even if there are a hundred links on a page, it still produces less characters than the <head> section.
My proposal could be used together with CSS only as well. So it would do something for the usability campaign just as well ...
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2009-12-08 18:23:10 UTC
Yes, every little change like this only adds a few more bytes.  Add them together and you get a lot more bytes.  The <head> is atrociously large as well.

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


Navigation
Links