Template:Template usage: Difference between revisions
Appearance
comments, whitespace, "quotes" added |
No edit summary |
||
| Line 8: | Line 8: | ||
--><span class="plainlinks">[{{fullurl:Special:Search|search={{urlencode: | --><span class="plainlinks">[{{fullurl:Special:Search|search={{urlencode: | ||
hastemplate:{{{template|Val}}}<!-- hastemplate | hastemplate:{{{template|Val}}} <!-- hastemplate, an all-important filter. | ||
A filter is always recommended for, what is expected, an insource:/regexp pattern/. | A filter is always recommended for, what is expected, an insource:/regexp pattern/. | ||
-->{{#if:{{{pattern|}}}<!--If no pattern, | -->{{#if:{{{pattern|}}}<!-- Do insource. If no pattern, hastemplate is done. | ||
-->| insource:"/\{<!-- 1st a space. Start "/\{regexp/" with escaped curly bracket. | -->| insource:"/\{<!-- 1st a space. Start "/\{regexp/" with escaped curly bracket. | ||
-->[{{#invoke:String|sub<!-- | -->[{{#invoke:String|sub<!-- | ||
Revision as of 00:50, 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.