Search results
Results From The WOW.Com Content Network
A template to find the numeric position of first appearance of ''sub_string'' in ''text'' Template parameters [Edit template data] Parameter Description Type Status Text 1 The text to search within String required Sub_string 2 The string to be searched within the text String required See also
The simplest operation is taking a substring, a snippet of the string taken at a certain offset (called an "index") from the start or end. There are a number of legacy templates offering this but for new code use {{#invoke:String|sub|string|startIndex|endIndex}}. The indices are one-based (meaning the first is number one), inclusive (meaning ...
For help with and a list and description of these templates, see Help:Manipulating strings and the navbox of string handling templates.. Per this Phabricator thread, Wikimedia has decided to NOT use the StringFunctions extension.
Base 1: the first character is numbered 1, and so on. Any leading or trailing whitespace is removed from the string before searching. If the requested position is negative, this function will search the string counting from the last character. In other words, number = -1 is the same as asking for the last character of the string.
The template takes a substring of ''text'' starting at ''start'' and containing ''length'' characters. Template parameters [Edit template data] Parameter Description Type Status Text 1 The substring to be trimmed. String required Numeric position 2 Numeric position of the starting character within the string Number required Count 3 Number of characters for the substring Number required See also
AOL Mail welcomes Verizon customers to our safe and delightful email experience!
This template selects a sub-string from the target string based on selected indices. The indices are 1-based. If the end index is omitted, it returns the rest of the string.
It takes a string as parameter, and returns the string trimmed to the beginning number if non-numeric text does not appear before the first number. Examples {{Str number/trim}} →