Template:Trim

From Là gì Wiki
Revision as of 07:42, 29 January 2019 by Lordneo (talk | contribs) (Đã nhập 1 phiên bản)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


50px|link=|alt=Hình tượng tài liệu Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm tươi]

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

This is the TemplateData documentation for this template used by VisualEditor and other tools.

See the monthly error report for this template.

TemplateData for Trim

The template trims whitespace from a string.

Template parameters

ParameterDescriptionTypeStatus
String1

The string to be trimmed of whitespace

Default
empty
Example
empty
Auto value
empty
Stringrequired

See also


DMCA.com Protection Status