Difference between revisions of "Template:In title/sandbox"
imported>Cpiral |
imported>Cpiral (such as yesno-yes and yesno-no) |
||
| Line 1: | Line 1: | ||
<!-- Output a <div class= ...> if a bullet is needed (the default), else output a <span class= ...> | <!-- Output a <div class= ...> if a bullet is needed (the default), else output a <span class= ...> | ||
| − | --><{{#ifeq: | + | --><{{#ifeq: yes | {{ yesno-yes | {{{bullet}}} }} | div | span }} class="plainlinks selfreference <!-- |
If visibility in print is wanted, the bullet or label will not get the HTML "noprint" attribute. | If visibility in print is wanted, the bullet or label will not get the HTML "noprint" attribute. | ||
| − | -->{{#ifeq: | + | -->{{#ifeq: no | {{ yesno-no | {{{print}}} }} | noprint" | " }}><!-- |
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 | 2) used as internal wikilink, since it hides the external-link arrow | ||
| − | -->{{#ifeq: | + | -->{{#ifeq: yes | {{ yesno-yes | {{{bullet}}} }} | * }}<!-- |
-->[<!-- brackets that creates the link, no space allowed after it | -->[<!-- brackets that creates the link, no space allowed after it | ||
-->{{fullurl:Special:Search|search=<!--create the URL-style link to search, with a query |parameter= called "search" | -->{{fullurl:Special:Search|search=<!--create the URL-style link to search, with a query |parameter= called "search" | ||
| Line 13: | Line 13: | ||
-->{{{2|All 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: | + | --></{{#ifeq: yes | {{ yesno-yes | {{{bullet}}} }} | div | span }}><noinclude> |
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 06:28, 31 December 2015
| 50px | This is the template sandbox page for Template:In title (diff). See also the companion subpage for test cases. |
Contents
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
- On the page Wales,
{{In title}}produces All pages with titles containing Wales. {{In title|in Wales}}produces All pages with titles containing in Wales.
Warnings
For print versions, this template leaves an empty bullet. See the talk page and the sandbox for resolution.
See also
| The above documentation is transcluded from Template:In title/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |