Last modified: 2014-04-22 07:39:37 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.
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.