Template:Search: Difference between revisions

From KDE UserBase Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<DPL>
<DPL>
  debug = 5
debug = 5
   namespace = Main
   namespace = Main
   nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
   nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
Line 8: Line 8:
   includematch = @{{{1}}}@
   includematch = @{{{1}}}@
   includemaxlength = 0
   includemaxlength = 0
  resultsheader=«pre»«nowiki»
resultsfooter=«/nowiki»«/pre»
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
</DPL>
</DPL>

Revision as of 07:02, 20 August 2012

Find pages containing a string: {{Search|xyz}} finds all pages containing the string xyz. 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.