( ! ) Warning: A non-numeric value encountered in /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php on line 722
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
40.01543430512MediaWiki->performRequest( ).../MediaWiki.php:861
50.01573445200MediaWiki->performAction( ).../MediaWiki.php:294
60.01603445504ViewAction->show( ).../MediaWiki.php:500
70.01603445504Article->view( ).../ViewAction.php:68
80.04964662288PoolWorkArticleView->execute( ).../Article.php:604
90.04974667168PoolWorkArticleView->doWork( ).../PoolCounterWork.php:123
100.04974667424WikitextContent->getParserOutput( ).../PoolWorkArticleView.php:144
110.04974669448WikitextContent->fillParserOutput( ).../AbstractContent.php:516
120.04974669448Parser->parse( ).../WikitextContent.php:323
130.04994676864Parser->internalParse( ).../Parser.php:443
140.04994676912Parser->replaceVariables( ).../Parser.php:1293
150.05254679024PPFrame_DOM->expand( ).../Parser.php:2942
160.05954725856Parser->extensionSubstitution( ).../Preprocessor_DOM.php:1362
170.05964726056ExtDynamicPageList::dplTag( ).../Parser.php:3888
180.05964726056ExtDynamicPageList::executeTag( ).../DPLSetup.php:1298
190.05984800984DPLMain::dynamicPageList( ).../DPLSetup.php:1311
200.06314842904DPL->__construct( ).../DPLMain.php:3143
210.06314850720DPL->formatList( ).../DPL.php:234

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php:722) in /srv/www/mediawiki/mediawiki/includes/WebResponse.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
42.416912499736MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.416912499736OutputPage->output( ).../MediaWiki.php:868
62.416912516312WebResponse->header( ).../OutputPage.php:2340
72.417012516424header ( ).../WebResponse.php:46

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php:722) in /srv/www/mediawiki/mediawiki/includes/WebResponse.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
42.416912499736MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.416912499736OutputPage->output( ).../MediaWiki.php:868
62.417212516408WebResponse->header( ).../OutputPage.php:2341
72.417212516408header ( ).../WebResponse.php:46

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php:722) in /srv/www/mediawiki/mediawiki/includes/WebResponse.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
42.416912499736MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.416912499736OutputPage->output( ).../MediaWiki.php:868
62.417412516360WebResponse->header( ).../OutputPage.php:2345
72.417412516360header ( ).../WebResponse.php:46

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php:722) in /srv/www/mediawiki/mediawiki/includes/WebResponse.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
42.416912499736MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.416912499736OutputPage->output( ).../MediaWiki.php:868
62.417812540992WebResponse->header( ).../OutputPage.php:2363
72.417912540992header ( ).../WebResponse.php:46
User:Claus chr/DPL - KDE UserBase Wiki
< User:Claus chr
Revision as of 19:45, 7 September 2011 by Claus chr (talk | contribs) (Searching for pages containing a certain text string)
Reference: DPL Manual
See also Pipesmoker's notes and this page of examples
Example UI on this Template:Catlist page


Searching for pages containing a certain text string

Matching content in pages: You need to include the contents of pages in this page (include = * does that) and then do a perl-like regexp on their contents to filter interesting pages (includematch = ...). If you are searching in translated pages (fx all Danish pages) it is often advantageous to have namespace = Translations set; otherwise you will get both all full pages and all translation units containing matching text — that could be a very long output.

<DPL>
  titlematch = %/da
  namespace = Translations
  include = *
  includematch = /[Aa]pplikation/
  includemaxlength = 0
  resultsheader = Danish translation units containing the string "applikation"
  format = ,\n* [[%PAGE%|%TITLE%]]\n,,
</DPL>


Warning.png
Warning
There is something very, very wrong with this query!


Find discussion threads contributed by a user

<DPL>
  namespace = Talk | Thread
  createdby = AmirHP
</DPL>

All English manual pages

<DPL>
  titlematch = %/Manual%
  nottitlematch = %/__|%/__-__|%/___|% (%
  namespace = | User | Draft
  resultsheader = Manual Pages:
  format = ,\n* [[%PAGE%|%TITLE%]]\n,,
</DPL>


All English pages linking to a given page

The LinksTo template is describes and tested here: User:Claus_chr/DPL/Test

There are 264 pages beginning with A-J

There are 325 pages beginning with KA-KZ

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

There are 309 pages beginning with Kd

There are 409 pages beginning with L-Z


Kopete Subpages in 3 columns

<DPL>
  titlematch = Kopete/%
  notnamespace = Translations
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
</DPL>

Akonadi Subpages in Danish

<DPL>
  titlematch = Akonadi%/da
  notnamespace = Translations
  format = ,\n* [[%PAGE%|%TITLE%]],,
</DPL>

Archived pages

<DPL>
  titlematch = %
  namespace = Archive
  columns = 2
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages in the Archive namespace. These are:\n
</DPL>

NoIndexed pages

<DPL>
  titlematch = %
  category = Noindexed_pages
  columns = 2
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages in the Archive namespace. These are:\n
</DPL>

Ignoring Deleted Pages

"As for DPL. If you hit a page with ?action=purge attached to the URL (i.e. http://en.wikinews.org/wiki/Template:Latest_news?action=purge ), it will dump all the removed pages."

Remaining old-style translations

<DPL>
  titlematch = %_(%)
  notcategory = Template
  notnamespace = Thread
  notnamespace = Summary
  columns = 2
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages (partly) remaining in old-style translations. These are:\n
</DPL>

Pages with old i18n bar

<DPL>
  titlematch = %
  namespace = Main
  uses = Template:I18n/Language Navigation Bar
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages that still display the old i18n language bar\n
</DPL>

Pages with old i18n bar but w/o old-way-translated ones

<DPL>
  nottitlematch = %_(%)
  namespace = Main
  uses = Template:I18n/Language Navigation Bar
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% relevant pages that still display the old i18n language bar\n
</DPL>

Pages not updated since 1st July 2010

<DPL>
  namespace = Main
  lastrevisionbefore = 201007010000
  columns = 2
  ordermethod=lastedit
  format = ,\n* (%DATE%) [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages without recent updates\n
</DPL>

Listing Non-Translation Pages

<DPL>
  nottitlematch = %/__|%/zh-%|%(%)
  titlematch = Amarok%
  namespace = Main
  columns = 1
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% Amarok pages, not counting translations\n
</DPL>

List all pages in a specific namespace

<DPL>
  nottitlematch = %/__|%/zh-%|%pt-%|%(%)
  namespace = MediaWiki
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = These %TOTALPAGES% pages are in the Mediawiki namespace\n
</DPL>

To count translated pages in a specific language:

<DPL>
  titlematch = %/en
  notnamespace = Translations
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages (partly) translated to English. These are:\n
</DPL>



Content is available under Creative Commons License SA 4.0 unless otherwise noted.

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php:722) in /srv/www/mediawiki/mediawiki/includes/WebResponse.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
42.416912499736MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.416912499736OutputPage->output( ).../MediaWiki.php:868
62.486313364424OutputPage->sendCacheControl( ).../OutputPage.php:2403
72.486413365824WebResponse->header( ).../OutputPage.php:2221
82.486413365824header ( ).../WebResponse.php:46

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php:722) in /srv/www/mediawiki/mediawiki/includes/WebResponse.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
42.416912499736MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.416912499736OutputPage->output( ).../MediaWiki.php:868
62.486313364424OutputPage->sendCacheControl( ).../OutputPage.php:2403
72.486613365784WebResponse->header( ).../OutputPage.php:2276
82.486613365784header ( ).../WebResponse.php:46

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php:722) in /srv/www/mediawiki/mediawiki/includes/WebResponse.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
42.416912499736MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.416912499736OutputPage->output( ).../MediaWiki.php:868
62.486313364424OutputPage->sendCacheControl( ).../OutputPage.php:2403
72.486813382104WebResponse->header( ).../OutputPage.php:2277
82.486813382104header ( ).../WebResponse.php:46

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php:722) in /srv/www/mediawiki/mediawiki/includes/WebResponse.php on line 46
Call Stack
#TimeMemoryFunctionLocation
10.0000399288{main}( ).../index.php:0
20.01183156048MediaWiki->run( ).../index.php:42
30.01193156304MediaWiki->main( ).../MediaWiki.php:524
42.416912499736MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.416912499736OutputPage->output( ).../MediaWiki.php:868
62.486313364424OutputPage->sendCacheControl( ).../OutputPage.php:2403
72.487013382104WebResponse->header( ).../OutputPage.php:2278
82.487013382104header ( ).../WebResponse.php:46