Template:Title without disambig/doc
< Template:Title without disambig
Revision as of 11:57, 21 March 2013 by Unknown user (talk)
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
- Template:PAGENAMEBASE: uses the name of the current page as the input string.
Description of all string templates