Difference between revisions of "Template:Trim/doc"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Maintenance script-gpuser
(Automated Import)
>Pcjbot
m
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{doc/start}}
 
{{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 <tt>#if</tt> parser function.
+
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:
 
Usage:
 
  <nowiki>{{trim|  value }}</nowiki>
 
  <nowiki>{{trim|  value }}</nowiki>
 
{{doc/end}}
 
{{doc/end}}

Latest revision as of 23:00, 13 November 2018

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