Template:In title: Difference between revisions
add css class "selfreference" |
server-independent link; quoting title consistent with {{lookfrom}} |
||
Line 1: | Line 1: | ||
<includeonly |
<includeonly>[[Special:Search/intitle:"{{{1|{{PAGENAME}}}}}"|All pages with titles containing "{{{1|{{PAGENAME}}}}}"]]</includeonly><noinclude> |
||
{{documentation}} |
{{documentation}} |
||
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
Revision as of 13:35, 23 September 2009
This template is used on approximately 23,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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 All pages with titles containing search term. Add your own label in the label parameter to change this.
Use the parameter |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 |noquote=yes
can be added to suppress quotation marks around the search term; this is required if the search term contains a wildcard: {{in title|visib*|noquote=yes}}
produces: All pages with titles containing "visib*"
Examples
- On the page Wales,
{{In title}}
produces All pages with titles containing "Wales". - On the page Daytona 500,
{{In title}}
produces All pages with titles containing "Daytona 500". {{In title|Babe Ruth}}
produces All pages with titles containing "Babe Ruth".{{In title|Somersworth|Search for Somersworth-related articles}}
produces All pages with titles containing "Somersworth".{{In title|River|plural=yes}}
produces All pages with titles containing "River".{{In title|River|Pages with "River" in the title}}
produces All pages with titles containing "River".
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 {{look from}}.
TemplateData
TemplateData for In title
Creates text and a link to an intitle: search on Wikipedia.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title phrase | 1 | The phrase to generate a link for. | String | suggested |
Label | 2 | The label to override the generated text. | String | suggested |
Plural? | plural | Outputs a second link for the plural version of the title phrase.
| Boolean | optional |