Last modified: 2010-05-15 15:29:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 243 - Add anchor tags to the headers used on category pages
Add anchor tags to the headers used on category pages
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-08-28 21:03 UTC by Angela
Modified: 2010-05-15 15:29 UTC (History)
1 user (show)

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


Description Angela 2004-08-28 21:03:11 UTC
Please add id names to the headers in CategoryPage.php so that sections such as
"Subcategories" and "Articles in category whatever" can be linked to. For
example, 		$r .= "<h2 id=\"{$h}\">{$h}</h2>\n" ;
instead of 
$r .= "<h2>{$h}</h2>\n" ;

This would be useful for categories with a lot of text before the list of
articles begins so people can add links like [[#Articles in category
Whatever|See list of articles in this category]] at the top of the page. People
might not know to scroll to the end otherwise.
Comment 1 Chris Wood 2004-08-30 09:20:40 UTC
Yeah, we need ids for all (H2 or lower) headers (as a matter of principle).

I've been thinking about navigation too - how about a default template for
categories, something like:
''Main article:'' [[Music]] (if there is an article called "Music" exists)
*[[#Subcategories|Subcategories]] (if there are subcategories)
*[[#Articles in category "Music"|List of articles in this category]]
Comment 2 Ævar Arnfjörð Bjarmason 2005-04-09 01:09:20 UTC
id="Subcategories" and id="Articles" perhaps?
Comment 3 Evil Mr Henry 2005-07-09 21:23:58 UTC
In columnList(), line 259:
$r .= "<h3

function shortList( $articles, $articles_start_char ) {
        $r = "<h3
        $r .= '<ul><li>'.$articles[0].'</li>';
        for ($index = 1; $index < count($articles); $index++ )
             if ($articles_start_char[$index] != $articles_start_char[$index - 1])
             $r .= "</ul><h3

             $r .= "<li>{$articles[$index]}</li>";
             $r .= '</ul>';
             return $r;
Comment 4 Duncan Harris 2007-01-06 12:36:03 UTC
They are implemented.  Use the following:

* Subcategories (#mw-subcategories)
* Pages (#mw-pages)
* Media (#mw-category-media)
* Parent categories (#catlinks)
Comment 5 Chris Wood 2007-01-07 00:45:50 UTC
Just to clarify, these are the id attributes of the div surrounding each H2 section.

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