Skabelon:Trim

Fra Wikipedia, den frie encyklopædi
Gå til: navigation, søg


[vis] [rediger]Template-info.svg Skabeloninformation
Bemærk! Bemærk!
– This template is for trimming whitespace from strings, for the maintenance tag for images, see {{trimming}}


This template trims whitespace from a string. The string should be passed as the first unnamed parameter. You may substitute this template - that is, if used as Skabelon:Tlxs, the resulting wikicode is "clean".

Usage[redigér | redigér wikikode]

{{trim|text}} = text with any leading or trailing whitespace removed.

Example[redigér | redigér wikikode]

  • {{trim| abc}} produces abc.

Template data[redigér | redigér wikikode]

The template trims whitespace from a string.

Template parameters
Parameter Description Type Default Auto value Status
Alpha-numeric text string The string to be trimmed of whitespace string empty empty required

See also[redigér | redigér wikikode]

Skabelon:Navbox string handling templates