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
  |namespace = Main
  |nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
  |titlematch = A%{{!}}B%{{!}}C%{{!}}D%{{!}}E%{{!}}F%{{!}}G%{{!}}H%{{!}}I%{{!}}J%
  |include = *
  |includematch = @{{{1}}}@
  |includemaxlength = 0
  |format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
}}
{{#dpl:
   namespace = Main
   namespace = Main
   nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
   nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
   titlematch = A%|B%|C%|D%|E%|F%|G%|H%|I%|J%
   titlematch = K%
   include = *
   include = *
   includematch = @{{{1}}}@
   includematch = @{{{1}}}@
   includemaxlength = 0
   includemaxlength = 0
  resultsheader=«pre»«nowiki»
   format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
  resultsfooter=«/nowiki»«/pre»
}}
   format = ,\n* [[%PAGE%|%TITLE%]],,
{{#dpl:
</DPL>
<DPL>
   namespace = Main
   namespace = Main
   nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
   nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?)|([ {{!}}_][(][a-z][a-z][)]))$
   titlematch = K%
   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%]],,
</DPL>
}}
<DPL>
  debug = 5
  namespace = Main
  nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
  titlematch = L%|M%|N%|O%|P%|Q%|R%|S%|T%|U%|V%|W%|X%|Y%|Z%
  include = *
  includematch = @Learn more@
  includemaxlength = 0
  format = ,\n* [[%PAGE%|%TITLE%]],,
</DPL>
</includeonly><noinclude>
</includeonly><noinclude>
Find pages containing a string: <code><nowiki>{{Search|xyz}}</nowiki></code> finds all pages containing the string ''xyz''. Searches are case sensitive. In order to find both ''xyz'' and ''Xyz'' use a regular expression: <code><nowiki>{{Search|[Xx]yz}}</nowiki></code>.
Find pages containing a string: <code><nowiki>{{Search|xyz}}</nowiki></code> finds all pages containing the string ''xyz''. Searches are case sensitive. In order to find both ''xyz'' and ''Xyz'' use a regular expression: <code><nowiki>{{Search|[Xx]yz}}</nowiki></code>.

Revision as of 16:27, 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.


Extension:DynamicPageList3 (DPL3), version 3.5.3: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants

Extension:DynamicPageList3 (DPL3), version 3.5.3: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants