Template:Trim: Difference between revisions

From Colonia Wiki
colonia-mc>FANDOM
No edit summary
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{{1}}}|}}</includeonly><noinclude>
<includeonly>{{safesubst:#if:1|{{{x|{{{1|}}}}}}}}</includeonly><noinclude>
{{documentation}}</noinclude>
 
{{Documentation}}
</noinclude>

Latest revision as of 17:08, 5 October 2021


Description

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.

Syntax
{{trim| value }}