Trim – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Text replacement - "<code>" to "<code style="display: block">")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{{1|}}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{1|}}}|{{{1|}}}}}</includeonly><noinclude>{{Doc/Template
<pre>
|descr= <pre>{{Trim| {{{parameter|}}} }}</pre>
{{Trim| {{{parameter|}}} }}
|param1= text
</pre>
|descr1= text to trim
 
|example1= <code style="display: block">   test   </code>
== Usage ==
|result1= <code style="display: block">   test   </code>
<nowiki>{{Trim|</nowiki>'''''text'''''}}
|example2= <code style="display: block"><nowiki>{{Trim|   test   }}</nowiki></code>
* text: the text to trim
|result2= <code style="display: block">{{Trim|   test   }}</code>
 
}}</noinclude>
{|class="wikitable"
|+ Examples
! Code
! Result
|-
| <code> test     </code>
| <code> test     </code>
|-
| <code><nowiki>{{Trim| test     }}</nowiki></code>
| <code>{{Trim| test     }}</code>
|}
 
[[Category:Templates]]
</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