https://bugzilla.wikimedia.org/show_bug.cgi?id=39954
Web browser: ---
Bug #: 39954
Summary: MediaWiki's info action headers need anchors
Product: MediaWiki
Version: unspecified
Platform: All
URL: https://www.mediawiki.org/wiki/MediaWiki?action=info
OS/Version: All
Status: NEW
Keywords: easy
Severity: normal
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
The headers of MediaWiki's info action should have anchors, similar to anchors
created by wikitext headers (i.e., "== Foo =="). The current HTML output of
<https://www.mediawiki.org/wiki/MediaWiki?action=info> looks like this (for a
particular section header):
---
<h2>Edit history</h2>
---
Ideally it would look something like this:
---
<h2> <span class="mw-headline" id="Edit_history">Edit history</span></h2>
---
Looking at the InfoAction.php code
(<https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/actions/InfoAction.php>),
it seems it's already using addHeader. So perhaps there's a flag that can be
passed to this function to add the span/CSS id? Or perhaps $wgParser needs to
be called? I'm not sure.
It shouldn't be too difficult to add an anchor here, though. It'll need to be
auto-generated to account for localization/customization of the interface
messages, though. Marking this as easy.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l