Difference between revisions of "Template:Trim"

From Space Engineers Wiki
Jump to: navigation, search
(Created page with "<onlyinclude>{{#if: true|{{{1}}}}}</onlyinclude> Shortcut template to trim start and end whitespace when conventional ways fail. Usage: <code><nowiki>{{trim|text with extra...")
 
m
 
Line 6: Line 6:
  
 
{| class="wikitable"
 
{| class="wikitable"
 +
|+Without trim
 
|   
 
|   
  
  
Example of
+
Example of extra whitespace
extra whitespace
 
  
  
 
|}
 
|}
 
With ''trim'':
 
  
 
{| class="wikitable"
 
{| class="wikitable"
 +
|+ With trim
 
|{{trim|   
 
|{{trim|   
  
  
Example of
+
Example of extra whitespace
extra whitespace
 
  
 
}}
 
}}
 
|}
 
|}
 
[[Category:Templates]]
 
[[Category:Templates]]

Latest revision as of 15:28, 4 April 2020

{{{1}}}

Shortcut template to trim start and end whitespace when conventional ways fail.

Usage: {{trim|text with extra whitespace}}

Without trim


Example of extra whitespace


With trim
Example of extra whitespace