Zum Inhalt springen

Vorlage:Trim

Aus Wikivoyage
Dokumentation für die Vorlage {{Trim}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]

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

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

Example

  • {{trim| abc}} produces abc.

Template data

The template trims whitespace from a string.

Vorlagenparameter[Vorlagendaten bearbeiten]

ParameterBeschreibungTypStatus
String1

The string to be trimmed of whitespace

Mehrzeiliger Texterforderlich

See also


Siehe auch

Hinweise