Template:Trim

From Stalburg Wiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter.

Note: Pipe characters (|) must be escaped as {{!}} or {{pipe}}, and equals signs must be escaped as {{=}} (those inside tags may need to be escaped as well, e.g. <div style{{=}}"...">), except for ones inside <nowiki>, <pre>, <math>, and <syntaxhighlight> tags.