Last modified: 2014-04-22 07:39:37 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 T12026, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
1.21.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links