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

From blackwiki
Jump to navigation Jump to search
imported>Cpiral
(+ inline version when nobullet is affirmed)
imported>Cpiral
(add comments)
Line 1: Line 1:
<{{#ifeq: on | {{ yesno-no | {{{nobullet|}}} | yes = on }} | span | div }} class="plainlinks selfreference noprint"><!-- Now it can be  
+
<!-- Output a <div class=noprint> (so a bullet will render as "noprint") if parameter nobullet is no, (the default),
 +
or  output a <span class=noprint> for an inline search link, with out a bullet, that will dissappear in print.
 +
--><{{#ifeq: on | {{ yesno-no | {{{nobullet|}}} | yes = on }} | span | div }} class="plainlinks selfreference noprint"><!--  
 +
Now it can be  
 
1) used in articles, since it now has "noprint" to disappear in print media
 
1) used in articles, since it now has "noprint" to disappear in print media
2) used as internal wikilink, since it hides the external-link arrow, like template Plainlinks
+
2) used as internal wikilink, since it hides the external-link arrow
 
-->{{#ifeq: on | {{ yesno-no | {{{nobullet|}}} | yes = on }} || * }}<!--
 
-->{{#ifeq: on | {{ yesno-no | {{{nobullet|}}} | yes = on }} || * }}<!--
 
-->[<!-- brackets that creates the link, no space allowed after it
 
-->[<!-- brackets that creates the link, no space allowed after it
Line 8: Line 11:
 
   -->}}}}<!-- end fullurl and urlencode
 
   -->}}}}<!-- end fullurl and urlencode
 
--> <!-- Now for the label. It is created by a space
 
--> <!-- Now for the label. It is created by a space
   -->{{{2|Pages with titles containing ''{{{1|{{PAGENAME}}}}}''}}}<!--
+
   -->{{{2|All pages with titles containing ''{{{1|{{PAGENAME}}}}}''}}}<!--
 
-->]<!-- closing bracket that creates the link
 
-->]<!-- closing bracket that creates the link
 
--></{{#ifeq: on | {{ yesno-no | {{{nobullet|}}} | yes = on }} | span | div }}><noinclude>
 
--></{{#ifeq: on | {{ yesno-no | {{{nobullet|}}} | yes = on }} | span | div }}><noinclude>

Revision as of 07:26, 27 December 2015

50px Template documentation[view] [edit] [history] [purge]

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