Your IP address will be publicly visible if you make any edits.
Template:Trim/doc
Template page
More actions
Revision as of 23:48, 14 February 2025 by Prd(talk | contribs)(Created page with "{{notice|This template is for trimming whitespace from strings. For the maintenance tag for images, see {{tl|trimming}}}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be named {{para|1}} if its value contains a <code>=</code> character. You may substitute this templa...")
This template is for trimming whitespace from strings. For the maintenance tag for images, see {{trimming}}
This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be named |1= if its value contains a = character.
You may substitute this template—that is, if this template is used as {{subst:trim}}, the resulting wikicode is "clean".
Usage
{{trim|text}} = text with any leading or trailing whitespace removed.