Template:Strip whitespace/doc

Template page
< Template:Strip whitespace
Revision as of 14:06, 21 January 2023 by Momo (talk | contribs) (Created page with "{{Documentation}} This template removes all whitespace in a string. == Usage == {{tlx|strip whitespace|text}} = <var>text</var> with any whitespace removed. == Examples == *"{{tlx|strip whitespace|Z-Type is the best}}" produces "{{strip whitespace|Z-Type is the best}}" *"{{tlx|strip whitespace| Z-Type nice }}" produces "{{strip whitespace| Z-Type nice }}" *"{{tlx|strip whitespace|Best car in the city is the Z-Type }}" produces "{{strip whitespace|Best car in the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template:Strip whitespace invokes function replace in Module:String using Lua.

This template removes all whitespace in a string.

Usage

{{strip whitespace|<text>}} = text with any whitespace removed.

Examples

See also

  • {{Trim}} - used to remove leading and trailing whitespace