Trim – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add Template:Doc/Template usage)
m (Text replacement - "<code>" to "<code style="display: block">")
 
Line 3: Line 3:
|param1= text
|param1= text
|descr1= text to trim
|descr1= text to trim
|example1= <code>  test  </code>
|example1= <code style="display: block">  test  </code>
|result1= <code>  test  </code>
|result1= <code style="display: block">  test  </code>
|example2= <code><nowiki>{{Trim|  test  }}</nowiki></code>
|example2= <code style="display: block"><nowiki>{{Trim|  test  }}</nowiki></code>
|result2= <code>{{Trim|  test  }}</code>
|result2= <code style="display: block">{{Trim|  test  }}</code>
}}</noinclude>
}}</noinclude>

Latest revision as of 11:53, 11 January 2023

{{Trim| {{{parameter|}}} }}

This template is used on these pages.

Usage

{{Trim|text}}

  • text: text to trim
Examples
Code Result
test test
{{Trim| test }} test