Search results
Results from the WOW.Com Content Network
This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be named |1= if its value contains a = character. You may substitute this template—that is, if this template is used as {}, the resulting wikicode is "clean".
The Template:Str_number/trim extracts a number at the start of parameter 1. 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.
A template to give the <count> substring of characters from the start of the trimmed string Template parameters [Edit template data] Parameter Description Type Status String 1 The string to be trimmed and counted String required Count 2 Gives the <count> substring of characters from the start of the trimmed string Number required See also Bugzilla:22555 (historical; need for correcting padleft ...
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.
Template:String split is a convenience wrapper for the split function in Module:String2.. The split function splits text at boundaries specified by separator and returns the chunk for the index idx (starting at 1).
This template removes the first word of the first parameter. Use |1= for the first parameter if the string may contain an equals sign (=). By default, words are delimited by spaces, but the optional parameter |sep= can set the separator to any character.
{{String-handling templates | state = collapsed}} will show the template collapsed, i.e. hidden apart from its title bar. {{ String-handling templates | state = autocollapse }} will show the template autocollapsed, i.e. if there is another collapsible item on the page (a navbox, sidebar , or table with the collapsible attribute ), it is hidden ...
The value of the text parameter may be anything that resolves to a string, such as: Immediate text entered directly into the parameter field: {{str rep|Dogs chase cats. . Cats chase mice.|