Template:Template usage: Difference between revisions
Appearance
quotes don't work as stated? |
No edit summary |
||
| Line 3: | Line 3: | ||
<onlyinclude>{{#switch: {{{prefix|{{FULLPAGENAME}}}}} | <onlyinclude>{{#switch: {{{prefix|{{FULLPAGENAME}}}}} | ||
|{{FULLPAGENAME}} = Phase one of two: '''a test regexp''' | |{{FULLPAGENAME}} = Phase one of two: '''a test regexp''' /<kbd>{{{pattern}}}</kbd>/. | ||
|#default = Readied '''a tested regexp''' | |#default = Readied '''a tested regexp''' /<kbd>{{{pattern}}}</kbd>/.}}<!-- | ||
--><span class="plainlinks">[{{fullurl:Special:Search|search={{urlencode: | --><span class="plainlinks">[{{fullurl:Special:Search|search={{urlencode: | ||
| Line 22: | Line 22: | ||
-->{{{pattern}}}/<!--User part: the sub-pattern regexp, match within template. | -->{{{pattern}}}/<!--User part: the sub-pattern regexp, match within template. | ||
And you see the ending / of the regexp/. | And you see the ending / of the regexp/. | ||
Now add a filter to the search domain. These are expensive searches. | Now add a filter to the search domain. These are expensive searches. | ||
Start with a space. | Start with a space. | ||
-->}}<!-- end of #if: pattern, there's nothing to do if no pattern is given. | -->}}<!-- end of #if: pattern, there's nothing to do if no pattern is given. | ||
There's only hastemplate part, but nothing to do for insource: | There's only hastemplate part, but nothing to do for insource:/regexp/ part. | ||
Always do the ''prefix:'' search parameter. | Always do the ''prefix:'' search parameter. | ||
Never let all namespaces be searched at once because user defaults to that. | Never let all namespaces be searched at once because user defaults to that. | ||
Revision as of 02:05, 24 June 2015
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]
Phase one of two: a test regexp /{{{pattern}}}/. Perform a search for template Val on just this page.