Template:Trim/doc

From Stalburg Wiki
< Template:Trim
Revision as of 00:49, 24 January 2025 by ABC-DEFG (talk | contribs) (Make documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.