Template:Trim/doc

From Blockgame Wiki
Revision as of 10:13, 3 March 2024 by Nelas (talk | contribs) (Created page with "{{doc/start}} This template trims whitespace from the beginning and end of the supplied value. It works by using the simple hack of filtering it through the <code>#if</code> parser function. Usage: <nowiki>{{trim| value }}</nowiki> {{doc/end}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentation

This template trims whitespace from the beginning and end of the supplied value.

It works by using the simple hack of filtering it through the #if parser function.

Usage:

{{trim|  value }}

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.