Module:HTMLParse/doc
Jump to navigation
Jump to search
This is the documentation page for Module:HTMLParse
Documentation
[purge]
This module parses and manipulates HTML strings.
There is currently only 1 function:
- pluralize
Pluralize
Pluralizes an HTML string by inserting an "s" between the final alphabetic character and closing tag </
For example, <span>book</span>
becomes <span>books</span>
Won't pluralize anything that already ends in "s"
Usage
{{#invoke: HTMLParse | pluralize | html = (html string here) }}
Examples
{{#invoke: HTMLParse | pluralize | html = {{favilink | antimatter cell}} }} | antimatter cells |
{{#invoke: HTMLParse | pluralize | html = <span style="color:red">big </span><span style="color:blue">book</span> }} | big books |