Documentation icon Skabelondokumentation[vis] [redigér] [historik] [opfrisk]

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

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

Example

  • {{trim| abc}} produces abc.

See also

Template data

Dette er denne skabelons TemplateData-dokumentation, som bruges af VisualEditor og andre værktøjer.

Trim

The template trims whitespace from a string.

Skabelonparametre[Rediger TemplateData]

Denne skabelon foretrækker inline-formatering af parametre.

ParameterBeskrivelseTypeStatus
Alpha-numeric textstring

The string to be trimmed of whitespace

Strengpåkrævet