Difference between revisions of "Template:String-handling templates"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(rm template that redirects to Template:Trim, reorg, add Template:Trim brackets)
(keep length templates in the same column)
Line 83: Line 83:
 
     | {{tl|replace}}      | Returns the string, after replacing ''all'' occurrences of a specified string with another string.
 
     | {{tl|replace}}      | Returns the string, after replacing ''all'' occurrences of a specified string with another string.
 
     | {{tl|str rep}}      | Returns the string, after replacing the first occurrence of a specified string with another string.
 
     | {{tl|str rep}}      | Returns the string, after replacing the first occurrence of a specified string with another string.
    | {{tl|str len}}      | Returns a string's length.
 
 
     }}
 
     }}
 
   |  <!---(Length)--->
 
   |  <!---(Length)--->
 
     {{Aligned table
 
     {{Aligned table
 
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;
 
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;
 +
    | {{tl|str len}}      | Returns a string's length.
 
     | {{tl|iflenge}}      | [if len]gth [g]reater than or [e]qual to.
 
     | {{tl|iflenge}}      | [if len]gth [g]reater than or [e]qual to.
 
     | {{tl|str ≥ len}}    | To check if a string is "longer or equally long" or "shorter" than a given length.
 
     | {{tl|str ≥ len}}    | To check if a string is "longer or equally long" or "shorter" than a given length.

Revision as of 11:49, 17 February 2016

Documentation icon Template documentation[create]