Template:String-handling templates: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Ahecht rm template that redirects to Template:Trim, reorg, add Template:Trim brackets |
meta>Ahecht 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. |