Template:Search: Difference between revisions

From KDE UserBase Wiki
(Created page with "<includeonly> <DPL> namespace = Main nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$ titlematch = A%|B%|C%|D%|E%|F%|G%|H%|I%|J% include = * includ...")
 
No edit summary
Line 5: Line 5:
   titlematch = A%|B%|C%|D%|E%|F%|G%|H%|I%|J%
   titlematch = A%|B%|C%|D%|E%|F%|G%|H%|I%|J%
   include = *
   include = *
   includematch = ¤{{{1}}}¤
   includematch = @{{{1}}}@
   includemaxlength = 0
   includemaxlength = 0
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
Line 14: Line 14:
   titlematch = K%
   titlematch = K%
   include = *
   include = *
   includematch = ¤{{{1}}}¤
   includematch = @{{{1}}}@
   includemaxlength = 0
   includemaxlength = 0
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
Line 23: Line 23:
   titlematch = L%|M%|N%|O%|P%|Q%|R%|S%|T%|U%|V%|W%|X%|Y%|Z%
   titlematch = L%|M%|N%|O%|P%|Q%|R%|S%|T%|U%|V%|W%|X%|Y%|Z%
   include = *
   include = *
   includematch = ¤{{{1}}}¤
   includematch = @{{{1}}}@
   includemaxlength = 0
   includemaxlength = 0
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
Line 33: Line 33:


No wiki expansion takes place before passing arguments to the template.
No wiki expansion takes place before passing arguments to the template.
[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Revision as of 06:54, 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.