You are not currently logged in. Are you accessing the unsecure (http) portal? Click here to switch to the secure portal. |
Template:Title disambig text
Contents
Usage
{{Title disambig text|Title (disambig)}}
If page title is of the form Title (disambig), this function will return disambig. If no parenthetical expression is present, returns an empty string.
Note: do not use linked titles.
Limitations
- Up to 50 characters in the input string. Will return an empty string if Title has more than 50 characters, and error "max index is 50 for str_sub" if disambig has more than 50 characters.
- Limited set of characters.
- Expensive.
Examples
- {{Title disambig text|Title (whatever)}} → whatever
- {{Title disambig text|[[Title (whatever)]]}} → whatever)]
- {{Title disambig text|123456789.123456789.123456789.123456789.123456789.123456789. (whatever)}} →
- {{Title disambig text|Title (123456789.123456789.123456789.123456789.123456789.123456789.)}} → 123456789.123456789.123456789.123456789.123max index is 50 for str_sub
See also
- {{Str endswith}}
The above documentation is transcluded from Template:Title disambig text/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |