Template:Search link: Difference between revisions
Appearance
Add back in deprecated parameter names for special users, while retaining the new parameter names that match the new family of search link templates |
|||
| Line 2: | Line 2: | ||
| 1={{Warning|{{tl|Search link}} should not be used in [[WP:WIAA|articles]] as links to "search result pages" are among the [[WP:LINKSTOAVOID|links normally to be avoided]].}} | | 1={{Warning|{{tl|Search link}} should not be used in [[WP:WIAA|articles]] as links to "search result pages" are among the [[WP:LINKSTOAVOID|links normally to be avoided]].}} | ||
| 2=<span class="plainlinks">[{{fullurl:Special:Search|search=<!-- | | 2=<span class="plainlinks">[{{fullurl:Special:Search|search=<!-- | ||
-->{{urlencode:{{{query|{{{1|}}}}}}}}<!-- Given query | -->{{urlencode:{{{query|{{{text|{{{1|}}}}}}}}}}}<!-- Given query | ||
-->{{#if:{{{ns|}}} <!-- ns = all / ns0=1&ns5=1 --> | -->{{#if:{{{ns|}}} <!-- ns = all / ns0=1&ns5=1 --> | ||
| {{#ifeq: {{{ns}}} | all | | {{#ifeq: {{{ns}}} | all | ||
| Line 54: | Line 54: | ||
-->|{{#invoke:String|replace | -->|{{#invoke:String|replace | ||
|{{#if: | |{{#if: | ||
{{{label|{{{2|}}}}}}<!-- If a label is given, --> | {{{label|{{{link|{{{2|}}}}}}}}}<!-- If a label is given, --> | ||
|<nowiki />{{{label|{{{2|}}}}}}<!-- protect it from a leading * or # --> | |<nowiki />{{{label|{{{link|{{{2|}}}}}}}}}<!-- protect it from a leading * or # --> | ||
|<nowiki />{{{query|{{{1|}}}}}}<!-- by using <nowiki /> (Help:wikitext) | |<nowiki />{{{query|{{{text|{{{1|}}}}}}}}}<!-- by using <nowiki /> (Help:wikitext) | ||
-->}}<!-- | -->}}<!-- | ||
-->|[|[}}<!-- ] with its html symbol | -->|[|[}}<!-- ] with its html symbol | ||
Revision as of 03:47, 30 July 2015
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]