Jump to content

Template:Template usage: Difference between revisions

From Fifth Empire Wiki
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 acts as the all-important Filter.
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, use only hastemplate.
-->{{#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

Phase one of two: a test regexp "{{{pattern}}}". Perform a search for template Val on just this page.