Search results
Results from the WOW.Com Content Network
This template is used on 206,000+ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage.
It is much easier to find and use an existing template than to write complex code to do it all in one place. Look for a template that will do what you want all in one go. For example, rather than taking the final six characters of a string and checking if they are equal to "navbox", use {{str endswith|string|navbox}}.
{{#invoke:String|endswith|source_str|search_string}} OR {{#invoke:String|endswith|source= source_string |pattern= search_string}} Returns "yes" if the source string ends with the search string. Use named parameters to have the strings trimmed before use. Despite the parameter name, search_string is not a Lua pattern, it is interpreted literally.
This module is intended to provide access to basic string functions. 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
The title function capitalises the first letter of each word in the text, apart from a number of short words listed in The U.S. Government Printing Office Style Manual §3.49 "Center and side heads": a, an, the, at, by, for, in, of, on, to, up, and, as, but, or, and nor.
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.
This allows PHP to perform string interpolation in double quoted strings, where backslash is supported as an escape character. No escaping or interpolation is done on strings delimited by single quotes. PHP also supports a C-like sprintf function. Code can be modularized into functions defined with keyword function.
Wrap the string in quotes; quotes can be chosen for a specific language. 1 Input text (will be automatically trimmed); may be empty. 2 (optional) the ISO 639 language code for the quote marks; should be one of the supported languages (in German) 3 (optional) 2 for second level quotes. This means the single quote marks in a statement such as ...