Difference between revisions of "User:Claus chr/DPL/Test"

Jump to: navigation, search
(Testing of LinksTo template)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Testing of LinksTo template ==
+
== Testing DPL ==
  
 +
{{Input|1=<nowiki>{{Search|\[\[Special:myLanguage/Applications}}</nowiki>}}
 +
 +
{{Search|\[\[Special:myLanguage/Applications}}
 +
 +
This only finds new style links, and conversely find links to subpages as well. Better use the LinksTo template
 +
 +
{{Input|1=<nowiki>{{LinksTo|Applications}}</nowiki>}}
 +
 +
{{LinksTo|Applications}}
 +
 +
<!--
 
{{Input|1=<nowiki>
 
{{Input|1=<nowiki>
 
<DPL>
 
<DPL>
 
   namespace=Main |User
 
   namespace=Main |User
   nottitleregexp = .*(/..(-..)?|_[(].*[)])$
+
   nottitleregexp = .*(/..(.|-..)?|_[(].*[)])$
 +
  titlematch = A%|B%|C%|D%|E%|F%|G%|H%|I%|J%
 
   include = *
 
   include = *
   includematch = #\[\[[Ss]pecial\:[mM]y[lL]anguage/Getting[_ ]Help|\[\[Getting[_ ]Help#
+
   includematch = #\[[Cc]ategory:#
 
   includemaxlength = 0
 
   includemaxlength = 0
   resultsheader = The pages in the translation system linking to Getting Help are:\n
+
   resultsheader = The pages in the translation containing a category statement (A-J): %TOTALPAGES%\n
 
   format = ,\n* [[%PAGE%|%TITLE%]],,
 
   format = ,\n* [[%PAGE%|%TITLE%]],,
 
</DPL>
 
</DPL>
 
</nowiki>}}
 
</nowiki>}}
  
 +
<DPL>
 +
  namespace=Main
 +
  nottitleregexp = .*(/..(.|-..)?|_[(].*[)])$
 +
  titlematch = A%|B%|C%|D%|E%|F%|G%|H%|I%|J%
 +
  include = *
 +
  includematch = #\[[Cc]ategory:#
 +
  includemaxlength = 0
 +
  resultsheader = The pages in the translation containing a category statement (A-J):%TOTALPAGES%\n
 +
  format = ,\n* [[%PAGE%|%TITLE%]],,
 +
</DPL>
 +
----
 +
<DPL>
 +
  namespace=Main
 +
  nottitleregexp = .*((/[a-z][a-z](.|-..)?)|([ _][(][a-z][a-z][)]))$
 +
  titlematch = K%
 +
  include = *
 +
  includematch = #\[[Cc]ategory:#
 +
  includemaxlength = 0
 +
  resultsheader = The pages in the translation containing a category statement (K):%TOTALPAGES%\n
 +
  format = ,\n* [[%PAGE%|%TITLE%]],,
 +
</DPL>
 +
----
 +
<DPL>
 +
  namespace=Main
 +
  nottitleregexp = .*(/..(.|-..)?|_[(].*[)])$
 +
  titlematch = L%|M%|N%|O%|P%|Q%|R%|S%|T%|U%|V%|W%|X%|Y%|Z%
 +
  include = *
 +
  includematch = #\[[Cc]ategory:#
 +
  includemaxlength = 0
 +
  resultsheader = The pages in the translation containing a category statement (L-Z):%TOTALPAGES%\n
 +
  format = ,\n* [[%PAGE%|%TITLE%]],,
 +
</DPL>
 +
->>
 +
<!--
 
<DPL>
 
<DPL>
 
   namespace=Main|User
 
   namespace=Main|User
Line 172: Line 218:
  
 
The first search excludes most translated pages, namely those ending on <tt>/la</tt> with ''la'' a two letter language code; the second search is identical except that it excludes all translated pages including remaining old style translations. You would expect the latter search to find fewer matches not more since it searches among fewer pages. On the other hand, if some capacity is exceeded by the search then the first search would run out of space first and so find fewer hits.
 
The first search excludes most translated pages, namely those ending on <tt>/la</tt> with ''la'' a two letter language code; the second search is identical except that it excludes all translated pages including remaining old style translations. You would expect the latter search to find fewer matches not more since it searches among fewer pages. On the other hand, if some capacity is exceeded by the search then the first search would run out of space first and so find fewer hits.
 +
-->

Latest revision as of 10:20, 16 September 2012

Testing DPL

{{Search|\[\[Special:myLanguage/Applications}}


There are 265 pages beginning with A-J

There are 324 pages beginning with KA-KZ

There are 287 pages beginning with Ka-Kz but not Kd

There are 307 pages beginning with Kd

There are 403 pages beginning with L-Z

This only finds new style links, and conversely find links to subpages as well. Better use the LinksTo template

{{LinksTo|Applications}}

There are 265 pages beginning with A-J

There are 324 pages beginning with KA-KZ

There are 287 pages beginning with Ka-Kc or Ke-Kz

There are 307 pages beginning with Kd

There are 401 pages beginning with L-Z



This page was last edited on 16 September 2012, at 10:20. Content is available under Creative Commons License SA 4.0 unless otherwise noted.