Author: ui2t5v002
Description:
Similar to {{urlencode: }}, I'd like a parserfunction for stripping wikimarkup
and HTML from text. For instance:
The quick brown fox --> The quick brown fox
The [[quick]] [[brown]] [[fox]] --> The quick brown fox
CO<sub>2</sub> --> CO2
My specific application is for generating machine-readable COinS tags from
citation templates. For instance, if someone cites the book:
title = [[Aristotle for Everybody]]: Difficult Thought Made Easy
edition = 6<sup>th</sup> edition
which we have an article for, it shows up in the citation template with a link,
which is great. But in the machine-readable citation information, it needs to
become plain text:
Aristotle for Everybody: Difficult Thought Made Easy
6th edition
This would also be useful for templates where parameters need to be linked in
one place but not in another, are linked by the template itself, but people
often link their parameters by accident, etc. It might be useful for automated
linking to section anchors with markup, too?
Test with <sub>sub</sub> and <sup>sup</sup>
has the anchor
#Test_with_sub_and_sup
for instance.
I'm sure there are many other template-related functions that would be helped by
this, too.
Version: unspecified
Severity: enhancement
URL: http://www.mediawiki.org/wiki/Extension:Strip_Markup