:Template:In title/doc

{{Documentation subpage}}

{{for|searching instead for page titles that begin with a word or part of a word|Template:Look from}}

{{high risk}}

Usage

In a See also section, use the following wikitext to create a link to a search for page titles which contain the given word or phrase:

* {{ In title | title phrase | label }}

The default behavior of this template is searching for the entire pagename of the page you add it to.

Add the title phrase parameter to search for something other than the entire pagename.

:If you use the title-phrase parameter, do not use quotation marks, as they are ignored. (The intitle search parameter does not recognise quotation marks in the title anyway, but it does require them around a phrase, and these are added automatically.)

The default label is {{font color|blue|All pages with titles containing search term}}. Add your own label in the label parameter to change this.

Use the parameter {{para|plural|yes}} to add a second search by appending "s" to the search term. Any other plural forms will not be created with this parameter.

The parameter {{para|noquote|yes}} can be added to suppress quotation marks around the search term; this is required if the search term contains a wildcard: {{tlx|in title|visib*|noquote{{=}}yes}} produces: {{in title|visib*|noquote=yes}}

= Examples =

  • On the page Wales, {{tlc|In title}} produces {{In title|Wales}}.
  • On the page Daytona 500, {{tlc|In title}} produces {{In title|Daytona 500}}.
  • {{tlc|In title|Babe Ruth}} produces {{In title|Babe Ruth}}.
  • {{tlc|In title|Somersworth|Search for Somersworth-related articles}} produces {{In title|Somersworth|Search for Somersworth-related articles}}.
  • {{tlc|1=In title|2=River|3=plural=yes}} produces {{In title|River|plural=yes}}.
  • {{tlc|1=In title|2=River|3=Pages with "River" in the title}} produces {{In title|River|Pages with "River" in the title}}.

= Warnings =

For print versions, this template leaves an empty bullet. See the talk page and the sandbox for resolution.

= Related =

To instead search for page titles that begin with a given word, or part of that word, use {{tl|look from}}.

TemplateData

{{TemplateData header}}

{

"params": {

"1": {

"label": "Title phrase",

"type": "string",

"suggested": true,

"description": "The phrase to generate a link for."

},

"2": {

"label": "Label",

"type": "string",

"suggested": true,

"description": "The label to override the generated text."

},

"plural": {

"label": "Plural?",

"type": "boolean",

"autovalue": "yes",

"description": "Outputs a second link for the plural version of the title phrase."

}

},

"format": "inline",

"description": "Creates text and a link to an intitle: search on Wikipedia."

}

See also