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

From Wikispooks
Jump to navigation Jump to search
m (1 revision imported)
 
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
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.

Latest revision as of 03:39, 7 March 2016

Template documentation[create]