Last modified: 2014-04-22 07:39:37 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 10026 - Auto-Anchoring for text other than Headings
Auto-Anchoring for text other than Headings
Status: NEW
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-05-24 17:53 UTC by David
Modified: 2014-04-22 07:39 UTC (History)
0 users

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


Description David 2007-05-24 17:53:40 UTC
One thing I like about the headings is that, if I have the following:

:<nowiki>==='''[[some page|Header Text]] More ''Text'''''===</nowiki>

MediaWiki is smart enough to strip out all the markup and hyperlinking from the text to create an anchor with the name "Header_Text_More_Text."  If MediaWiki have a mechanic (outside of using headers) or extension for boiling markup down to just the resulting text?  If not can anyone point to me where in the source code it does this so I can extract it and use in an extension?

I'd like to see an auto-anchoring mechanic for text other than headings.  For instance, suppose I have a table:

|+ Sample Table
! table || header
| table || data

What I'd like to do is to anchor the caption text, like so:

|+ ""Sample Table""
! table || header
| table || data

I know I could easily use span tags, but (A) this method would be far more convenient, (B) it would emphasize the fact that one doesn't need to know HTML to markup an article, (C) although I could create an extension to do this, the core MediaWiki code would be able to keep track of anchors with potentially the same name.
Comment 1 Andre Klapper 2014-04-22 07:39:37 UTC
As nobody else has requested this and as a workaround is available (using span tags), I wonder if this should become a RESOLVED WORKSFORME or even WONTFIX.

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