Revision as of 17:08, 22 July 2013 by Claus chr (talk | contribs)

Template:Search

Find pages containing a string: {{Search|string}} finds all pages containing the string. Searches are case sensitive. In order to find both xyz and Xyz use a regular expression: {{Search|[Xx]yz}}.

Regular expressions use a perl like syntax. Special characters like '[', '[','(' and ')' need to be escaped.

No wiki expansion takes place before passing arguments to the template.

Example: {{Search|1=Learn more}} gives

{{#dpl:

 |namespace = 
 |nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
 |titleregexp = ^[A-J]
 |include = *
 |includematch = @Learn [email protected]
 |includemaxlength = 0
 |format = ,\n* %TITLE%,,

}} {{#dpl:

 |namespace = 
 |nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
 |titleregexp = ^K[A-Z]
 |include = *
 |includematch = @Learn [email protected]
 |includemaxlength = 0
 |format = ,\n* %TITLE%,,

}} {{#dpl:

 |namespace = 
 |nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
 |titleregexp = ^K[a-ce-z]
 |include = *
 |includematch = @Learn [email protected]
 |includemaxlength = 0
 |format = ,\n* %TITLE%,,

}} {{#dpl:

 |namespace = 
 |nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
 |titleregexp = ^Kd
 |include = *
 |includematch = @Learn [email protected]
 |includemaxlength = 0
 |format = ,\n* %TITLE%,,

}} {{#dpl:

 |namespace = 
 |nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
 |titleregexp = ^[L-Z]
 |include = *
 |includematch = @Learn [email protected]
 |includemaxlength = 0
 |format = ,\n* %TITLE%,,

}}


Content is available under Creative Commons License SA 4.0 unless otherwise noted.
-->