Difference between revisions of "Template:Trim"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Maintenance script-gpuser
(Automated Import)
>Eave
m (simplifying logic)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{{1}}}|}}</includeonly><noinclude>
+
<includeonly>{{#if:||{{{1}}}}}</includeonly><noinclude>{{doc}}[[Category:Formatting templates]]</noinclude>
{{doc}}
 
[[Category:Formatting templates|{{PAGENAME}}]]</noinclude>
 

Latest revision as of 03:56, 14 July 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 }}