Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 23:54, 20 May 2023 by wikipedia>Mifield (add high-use template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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