Template:Title disambig text
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
File:Lua-logo-nolabel.svg | This template uses Lua: |
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
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 to the /doc subpage. Subpages of this template. |