Difference between revisions of "Template:In title/doc"

From blackwiki
Jump to navigation Jump to search
imported>Paine Ellsworth
m (update /doc)
imported>Geekdiva
m (Copy and readability edits. Template:For.)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{for|searching instead for page titles that begin with a word or part of a word|Template:Look from}}
  
=== Usage ===
+
== Usage ==
In a "See also" section:
+
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:
 
  <nowiki />* {<nowiki />{ In title | ''title phrase'' | ''label'' }}
 
  <nowiki />* {<nowiki />{ In title | ''title phrase'' | ''label'' }}
  
Creates a link to search for page titles which contain the given word or phrase.  
+
The default behavior of this template is searching for the entire [[Wikipedia:Pagename|pagename]] of the page you add it to.
  
The default behavior of this template is searching for the entire [[Wikipedia:Pagename|pagename]].  Add the ''title phrase'' parameter to search for if that is needed instead. 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.
+
Add the ''title phrase'' parameter to search for if that is needed instead. 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.
  
 
If you use the title-phrase parameter, do not use quotation marks. 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.)
 
If you use the title-phrase parameter, do not use quotation marks. 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.)
  
Use the parameter {{para|plural|yes}} to include the plural form of the word (only those formed by appending "-s") in the search. {{tlc|1=In title|2=River|3=plural=yes}} produces {{In title|River|plural=yes}}.
+
Use the parameter {{para|plural|yes}} to include in the search a second term made by appending "s" to the first. Any other [[Plural form|plural forms]] will not be created with this parameter. of  {{tlc|1=In title|2=River|3=plural=yes}} produces {{In title|River|plural=yes}}.
  
 
To instead search for page titles that begin with a given word, or part of that word, use {{tl|look from}}.
 
To instead search for page titles that begin with a given word, or part of that word, use {{tl|look from}}.

Revision as of 20:10, 25 December 2018

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 if that is needed instead. The default label is All pages with titles containing search term. Add your own label in the label parameter to change this.

If you use the title-phrase parameter, do not use quotation marks. 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.)

Use the parameter |plural=yes to include in the search a second term made by appending "s" to the first. Any other plural forms will not be created with this parameter. of {{In title|River|plural=yes}} produces [[Special:Search/intitle:"River"Template:SpOR intitle:"Rivers"|All pages with titles containing RiverTemplate:Spor Rivers]].

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

Examples

Warnings

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

See also