Template:Title without disambig/doc

< Template:Title without disambig
Revision as of 11:57, 21 March 2013 by Unknown user (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Mbox

Removes disambiguation part from page titles, if there is one. More precisely, finds first ( in the parameter and removes everything from position one character before it (that one character should be usually a space).

Usage

{{title without disambig|page title}}

Examples:

  • {{title without disambig|foo (bar)}} → "foo"
  • {{title without disambig|foo bar}} → "foo bar"

Note: This template uses {{str find}}, so it doesn't find brackets more than 50 characters from beginning of the string.

See also

Description of all string templates