Template:Title disambig text/doc
Jump to navigation
Jump to search
{{#invoke:Message box|mbox}} {{#invoke:Lua banner|main}}
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.
Examples
- {{Title disambig text|Title (whatever)}} → {{#invoke:String|match|Title (whatever)|%((.-)%)||-1|ignore_errors=true}}
- {{Title disambig text|[[Title (whatever)]]}} → {{#invoke:String|match|Title (whatever)|%((.-)%)||-1|ignore_errors=true}}
See also
{{#invoke:Navbox|navbox}}