Template:Title disambig text

Revision as of 02:00, 8 March 2022 by Wikipedia>Neveselbert (safesubst)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Title disambig text/doc" to edit its documentation if it is available. (How does this work?)

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