Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Title disambig text/doc

Template page
Revision as of 17:18, 21 April 2026 by Khalid (talk | contribs) (Created page with "{{high-use}} {{Documentation subpage}} {{lua|Module:String}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === : <code>{{Tlx|Title disambig text|''Title (disambig)''}}</code> 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: : <code>{{Tlx|Title disambig text|<nowiki>{{PAGENAME}}<...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.


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