Template:Trim

From Guild Wars Wiki 中文站
Jump to navigationJump to search


Description

{{trim|<text>}}
{{trim|text=<text>}}

This template trims leading and trailing white space from the given text.

Parameters

unnamed parameter 1
text
The text the template should work with.

Example

"{{trim|        some text        }}"

results in:

"some text"