( ! ) Warning: A non-numeric value encountered in /srv/www/mediawiki/mediawiki/extensions/DynamicPageList/DPL.php on line 722
Call Stack
#TimeMemoryFunctionLocation
10.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
40.02383430504MediaWiki->performRequest( ).../MediaWiki.php:861
50.02443445192MediaWiki->performAction( ).../MediaWiki.php:294
60.02473445496ViewAction->show( ).../MediaWiki.php:500
70.02473445496Article->view( ).../ViewAction.php:68
80.02633451944Article->showDiffPage( ).../Article.php:464
90.02863573256DifferenceEngine->showDiffPage( ).../Article.php:737
100.07034668744DifferenceEngine->renderNewRevision( ).../DifferenceEngine.php:480
110.07084668952DifferenceEngine->getParserOutput( ).../DifferenceEngine.php:629
120.07114672280WikiPage->getParserOutput( ).../DifferenceEngine.php:661
130.07144679808PoolWorkArticleView->execute( ).../WikiPage.php:1134
140.07154684688PoolWorkArticleView->doWork( ).../PoolCounterWork.php:123
150.07274690048WikitextContent->getParserOutput( ).../PoolWorkArticleView.php:144
160.07284692072WikitextContent->fillParserOutput( ).../AbstractContent.php:516
170.07284692072Parser->parse( ).../WikitextContent.php:323
180.07294699488Parser->internalParse( ).../Parser.php:443
190.07294699536Parser->replaceVariables( ).../Parser.php:1293
200.07554701648PPFrame_DOM->expand( ).../Parser.php:2942
210.08264817232Parser->extensionSubstitution( ).../Preprocessor_DOM.php:1362
220.08274817432ExtDynamicPageList::dplTag( ).../Parser.php:3888
230.08274817432ExtDynamicPageList::executeTag( ).../DPLSetup.php:1298
240.08294826824DPLMain::dynamicPageList( ).../DPLSetup.php:1311
250.08704868712DPL->__construct( ).../DPLMain.php:3143
260.08714876528DPL->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.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
42.393312519440MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.393312519440OutputPage->output( ).../MediaWiki.php:868
62.393412536016WebResponse->header( ).../OutputPage.php:2340
72.393412536128header ( ).../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.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
42.393312519440MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.393312519440OutputPage->output( ).../MediaWiki.php:868
62.393612536112WebResponse->header( ).../OutputPage.php:2341
72.393612536112header ( ).../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.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
42.393312519440MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.393312519440OutputPage->output( ).../MediaWiki.php:868
62.393712536064WebResponse->header( ).../OutputPage.php:2345
72.393712536064header ( ).../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.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
42.393312519440MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.393312519440OutputPage->output( ).../MediaWiki.php:868
62.394212560696WebResponse->header( ).../OutputPage.php:2363
72.394212560696header ( ).../WebResponse.php:46
Difference between revisions of "User:Claus chr/DPL" - KDE UserBase Wiki
(Searching for pages containing a certain text string)
Line 35: Line 35:
  
 
{{Warning|1=There is something very, very wrong with this query!}}
 
{{Warning|1=There is something very, very wrong with this query!}}
 +
 +
== Find discussion threads contributed by a user ==
 +
 +
{{Input|1=<nowiki>
 +
<DPL>
 +
  namespace = Talk | Thread
 +
  createdby = AmirHP
 +
</DPL>
 +
</nowiki>}}
 +
 +
<DPL>
 +
  namespace = Talk | Thread
 +
  createdby = AmirHP
 +
</DPL>
  
 
== All English manual pages ==
 
== All English manual pages ==

Revision as of 19:45, 7 September 2011

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 266 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.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
42.393312519440MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.393312519440OutputPage->output( ).../MediaWiki.php:868
62.466613385064OutputPage->sendCacheControl( ).../OutputPage.php:2403
72.466713386464WebResponse->header( ).../OutputPage.php:2221
82.466713386464header ( ).../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.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
42.393312519440MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.393312519440OutputPage->output( ).../MediaWiki.php:868
62.466613385064OutputPage->sendCacheControl( ).../OutputPage.php:2403
72.466913402808WebResponse->header( ).../OutputPage.php:2276
82.466913402808header ( ).../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.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
42.393312519440MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.393312519440OutputPage->output( ).../MediaWiki.php:868
62.466613385064OutputPage->sendCacheControl( ).../OutputPage.php:2403
72.467113402744WebResponse->header( ).../OutputPage.php:2277
82.467113402744header ( ).../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.0001399280{main}( ).../index.php:0
20.01843156040MediaWiki->run( ).../index.php:42
30.01873156296MediaWiki->main( ).../MediaWiki.php:524
42.393312519440MediaWiki->{closure:/srv/www/mediawiki/mediawiki/includes/MediaWiki.php:866-872}( ).../MediaWiki.php:880
52.393312519440OutputPage->output( ).../MediaWiki.php:868
62.466613385064OutputPage->sendCacheControl( ).../OutputPage.php:2403
72.467313402744WebResponse->header( ).../OutputPage.php:2278
82.467313402744header ( ).../WebResponse.php:46