Template:Title disambig text/doc
Template page
More actions
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |

This is a template documentation subpage for Template:Title disambig text.
It contains usage information, categories, interlanguage links and other content that is not part of the original template page.
It contains usage information, categories, interlanguage links and other content that is not part of the original template page.
| File:Lua logo.svg | This template uses Lua. Its code can be found under Module:Module:String. |
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.
Write this to use the current page as title:
{{Title disambig text|{{PAGENAME}}}}
Examples
{{Title disambig text|Title (whatever)}}→ whatever{{Title disambig text|[[Title (whatever)]]}}→ whatever
See also
Template:String-handling templates