Template:Title disambig text/doc: Difference between revisions
Content deleted Content added
|nocategory=true to prevent this page from being marked as a page with an error. |
m →Limitations: Fix typos |
||
Line 13: | Line 13: | ||
=== Limitations === |
=== Limitations === |
||
* Up to 50 |
* Up to 50 characters in the input string. Will return an empty string if ''Title'' has more than 50 characters, and error '''''"<font color=#CC1100>max index is 50 for str_sub</font>"''''' if ''disambig'' has more than 50 characters. |
||
* Limited set of characters. |
* Limited set of characters. |
||
* Expensive. |
* Expensive. |
Revision as of 22:55, 12 June 2010
This is a documentation subpage for Template:Title disambig text. It may contain usage information, categories and other content that is not part of the original template page. |
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)}} → whatever
- {{Title disambig text|Title (123456789.123456789.123456789.123456789.123456789.123456789.)}} → 123456789.123456789.123456789.123456789.123456789.123456789.
See also
- {{Str endswith}}