Difference between revisions of "Template:String-handling templates"
From Ava Zinn Wiki
[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. | ||
− | |||
}} | }} | ||
| <!---(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
|
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |