Template:Search: Difference between revisions

From KDE UserBase Wiki
(Changed namespace parameter to work with DPL 2.0)
(Modified to accomodate the growing number of Kdenlive pages)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#dpl:
{{#dpl:
  |namespace =
  |nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
  |titlematch = ^[A-J]
  |include = *
  |includematch = @{{{1}}}@
  |includemaxlength = 0
  |format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
}}
{{#dpl:
  |namespace =
  |nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
  |titlematch = ^K[A-Z]
  |include = *
  |includematch = @{{{1}}}@
  |includemaxlength = 0
  |format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
}}
{{#dpl:
  |namespace =
  |nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
  |titlematch = ^K[a-ce-z]
  |include = *
  |includematch = @{{{1}}}@
  |includemaxlength = 0
  |format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
}}
{{#dpl:
  |namespace =
  |nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
  |titlematch = ^Kd
  |include = *
  |includematch = @{{{1}}}@
  |includemaxlength = 0
  |format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
}}
{{#dpl:
  |namespace =
  |nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
  |titlematch = ^[L-Z]
  |include = *
  |includematch = @{{{1}}}@
  |includemaxlength = 0
  |format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
}}
</includeonly><noinclude>
<!--{{#dpl:
   |namespace =  
   |namespace =  
   |nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
   |nottitleregexp = .*((/[a-z][a-z](.{{!}}-..)?){{!}}([ _][(][a-z][a-z][)]))$
Line 26: Line 72:
   |includemaxlength = 0
   |includemaxlength = 0
   |format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
   |format = ,\n* [[%PAGE%{{!}}%TITLE%]],,
}}
}}-->
</includeonly><noinclude>
Find pages containing a string: <code><nowiki>{{Search|</nowiki>'''''string'''''<nowiki>}}</nowiki></code> finds all pages containing the '''''string'''''. 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|</nowiki>'''''string'''''<nowiki>}}</nowiki></code> finds all pages containing the '''''string'''''. 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:56, 22 July 2013

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