Difference between revisions of "Template:Trim"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Maintenance script-gpuser
(Automated Import)
>TheSatanicSanta
m
Line 1: Line 1:
 
<includeonly>{{#if:{{{1|}}}|{{{1}}}|}}</includeonly><noinclude>
 
<includeonly>{{#if:{{{1|}}}|{{{1}}}|}}</includeonly><noinclude>
 
{{doc}}
 
{{doc}}
[[Category:Formatting templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Formatting templates]]</noinclude>

Revision as of 14:01, 7 April 2020

50px 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 }}