User:Claus chr/DPL/Test: Difference between revisions
Appearance
< User:Claus chr | DPL
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Testing | == 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 = #\[ | includematch = #\[[Cc]ategory:# | ||
includemaxlength = 0 | includemaxlength = 0 | ||
resultsheader = The pages in the translation | 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 21: | Line 71: | ||
resultsheader = The pages in the translation system linking to Getting Help are:\n | resultsheader = The pages in the translation system linking to Getting Help are:\n | ||
format = ,\n* [[%PAGE%|%TITLE%]],, | format = ,\n* [[%PAGE%|%TITLE%]],, | ||
resultsheader=<pre><nowiki> | |||
resultsfooter=</nowiki></pre> | |||
</DPL> | </DPL> | ||
Line 170: | Line 222: | ||
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 07:35, 10 August 2023
Testing DPL
{{Search|\[\[Special:myLanguage/Applications}}
This only finds new style links, and conversely find links to subpages as well. Better use the LinksTo template
{{LinksTo|Applications}}