Template:StripFormatting

From OpenMedia
Revision as of 19:35, 29 September 2013 by Andreas Plank (Talk | contribs) (fix ' replace → only ''' and '' bit no ')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Convert a formatted text, including at present bold, italic and underline (other formats to be added as needed) into a link-usable text. Assumming the author indicates accents with underline and uses both wiki and HTML code for italics this template works as following:

''Genus sp<u>e</u>cies'' ssp. <i>subspecies</i> → Genus species ssp. subspecies

Technical Note:
following tags are removed: <i>, <u>, <sub>, <sup>, ' and <span style="font-variant:small-caps"> (s. Template:Smallcaps)