Template:Title without disambig/doc

From 'City of Adelaide' History and Genealogy Site
Jump to navigation Jump to search

{{#invoke:Message box|mbox}} {{#invoke:Lua banner|main}}

Removes disambiguation part from page titles, if there is one. More precisely, finds first ( ... ) in the parameter and removes it.

Usage

{{title without disambig|page title}}

Examples:

  • {{title without disambig|foo (bar)}} → "{{#Invoke:String|replace|foo (bar)|%s%(.*%)||plain=false}}"
  • {{title without disambig|foo bar}} → "{{#Invoke:String|replace|foo bar|%s%(.*%)||plain=false}}"

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Title without disambig

<templatedata> {

       "description": "Removes parenthetical part from page titles, if there is one.",
       "params": {
               "1": {
                       "label": "Page Title",
                       "description": "Page title which may contain parts in brackets which will be removed.",
                       "type": "string",
                       "required": true
               }
       }

} </templatedata>


See also

{{#invoke:Navbox|navbox}}