Module:String/doc: Difference between revisions
From Neodyland Wiki
More actions
m linkfix |
m +link |
||
| Line 2: | Line 2: | ||
{{mdl|module=string}} | {{mdl|module=string}} | ||
This module is intended to provide access to basic string functions | This module is intended to provide access to basic string functions | ||
{{Cols | |||
| | |||
* {{T0|Str crop|+}} | |||
* {{T0|Str endswith|-}} | |||
* {{T0|Str find|-}} | |||
* {{T0|Str if empty|-}} | |||
* {{T0|Str index|-}} | |||
* {{T0|Str index any|-}} | |||
* {{T0|Str index/getchar|-}} | |||
| | |||
* {{T0|Str index/logic|-}} | |||
* {{T0|Str left|-}} | |||
* {{T0|Str len/core|-}} | |||
* {{T0|Str letter/trim|-}} | |||
* {{T0|Str mulrepc|-}} | |||
* {{T0|Str num char|-}} | |||
* {{T0|Str rep|-}} | |||
| | |||
* {{T0|Str repc|-}} | |||
* {{T0|Str right|-}} | |||
* {{T0|Str rightc|-}} | |||
* {{T0|Str rightmost|-}} | |||
* {{T0|Str ≤ len|-}} | |||
* {{T0|Str ≤ ≥ len|-}} | |||
* {{T0|Str ≥ len|-}} | |||
}} | |||
Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, MediaWiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace. | Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, MediaWiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace.<br>For example, when a pattern should be replaced by something, that replacement may be wished by a space (whitespace), or by an empty string (removed whtespace). | ||
=== Global options === | === Global options === | ||