Zum Inhalt springen

Vorlage:Trim/Doku

Aus Wikivoyage

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 {{subst:trim}}, the resulting wikicode is "clean".

Usage

[Bearbeiten]

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

Example

[Bearbeiten]
  • {{trim| abc}} produces abc.

Template data

[Bearbeiten]

The template trims whitespace from a string.

Vorlagenparameter[Vorlagendaten bearbeiten]

ParameterBeschreibungTypStatus
String1

The string to be trimmed of whitespace

Mehrzeiliger Texterforderlich

See also

[Bearbeiten]

Siehe auch

[Bearbeiten]