Jump to content

Template:Template usage: Difference between revisions

From Fifth Empire Wiki
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''' "<kbd>{{{pattern}}}</kbd>".
|{{FULLPAGENAME}} = Phase one of two: '''a test regexp''' /<kbd>{{{pattern}}}</kbd>/.


|#default = Readied '''a tested regexp''' "<kbd>{{{pattern}}}</kbd>".}}<!--
|#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/.   
  Its in "quotes" to allow for spaces in the pattern.
   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:"/regexp/" part.
   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

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