Template:Trim/doc: Difference between revisions
Template page
More actions
fandomwiki>Game widow 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 <tt>#if</tt> parse..." |
Koza1brada (talk | contribs) m 3 revisions imported: Try to import fandom pages (manual dump, 9) |
||
| (2 intermediate revisions by 2 users 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 < | 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 11:10, 7 August 2025
{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}
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.