User:Claus chr/DPL: Difference between revisions

From KDE UserBase Wiki
(Created page with ":Reference: [http://semeb.com/dpldemo/index.php?title=DPL:Manual DPL Manual] :See also Pipesmoker's notes and [http://semeb.com/dpldemo/ind...")
 
No edit summary
Line 2: Line 2:
:See also [[User:Pipesmoker/Dynamic_Page_Lists|Pipesmoker's notes]] and [http://semeb.com/dpldemo/index.php?title=Extension_DPL this page of examples]
:See also [[User:Pipesmoker/Dynamic_Page_Lists|Pipesmoker's notes]] and [http://semeb.com/dpldemo/index.php?title=Extension_DPL this page of examples]
:Example UI on [http://semeb.com/dpldemo/index.php?title=Template:Catlist this Template:Catlist page]
:Example UI on [http://semeb.com/dpldemo/index.php?title=Template:Catlist this Template:Catlist page]
==To count translated pages in a specific language:==
{{Input|1=<nowiki><DPL>
  titlematch = %/en
  notnamespace = Translations
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages (partly) translated to English. These are:\n
</DPL></nowiki>}}
<DPL>
  titlematch = %/en
  notnamespace = Translations
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages (partly) translated to English. These are:\n
</DPL>


-----------------
-----------------
Line 31: Line 13:
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
</DPL></nowiki>}}
</DPL></nowiki>}}
<DPL>
 
  titlematch = Kopete/%
  notnamespace = Translations
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
</DPL>
--------------
==Akonadi Subpages in Danish==
==Akonadi Subpages in Danish==


Line 45: Line 21:
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
</DPL></nowiki>}}
</DPL></nowiki>}}
<DPL>
 
  titlematch = Akonadi%/da
  notnamespace = Translations
  format = ,\n* [[%PAGE%|%TITLE%]],,
</DPL>
---------------
==Archived pages==
==Archived pages==


Line 61: Line 32:
</DPL></nowiki>}}
</DPL></nowiki>}}


<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==
==NoIndexed pages==
{{Input|1=<nowiki><DPL>
{{Input|1=<nowiki><DPL>
Line 77: Line 40:
   resultsheader = There are %TOTALPAGES% pages in the Archive namespace. These are:\n
   resultsheader = There are %TOTALPAGES% pages in the Archive namespace. These are:\n
</DPL></nowiki>}}
</DPL></nowiki>}}
<DPL>
  titlematch = %
  category = Noindexed_pages
  columns = 2
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages in the Category:Noindexed_pages. These are:\n
</DPL>
---------------


==Ignoring Deleted Pages==
==Ignoring Deleted Pages==
Line 104: Line 57:
   resultsheader = There are %TOTALPAGES% pages (partly) remaining in old-style translations. These are:\n
   resultsheader = There are %TOTALPAGES% pages (partly) remaining in old-style translations. These are:\n
</DPL></nowiki>}}
</DPL></nowiki>}}
<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==
==Pages with old i18n bar==
Line 125: Line 68:
   resultsheader = There are %TOTALPAGES% pages that still display the old i18n language bar\n
   resultsheader = There are %TOTALPAGES% pages that still display the old i18n language bar\n
</DPL></nowiki>}}
</DPL></nowiki>}}
<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==
==Pages with old i18n bar but w/o old-way-translated ones==
Line 145: Line 79:
   resultsheader = There are %TOTALPAGES% relevant pages that still display the old i18n language bar\n
   resultsheader = There are %TOTALPAGES% relevant pages that still display the old i18n language bar\n
</DPL></nowiki>}}
</DPL></nowiki>}}
<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==
==Pages not updated since 1st July 2010==
Line 165: Line 90:
   resultsheader = There are %TOTALPAGES% pages without recent updates\n
   resultsheader = There are %TOTALPAGES% pages without recent updates\n
</DPL></nowiki>}}
</DPL></nowiki>}}
<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 ==
== Listing Non-Translation Pages ==
Line 185: Line 101:
</DPL></nowiki>}}
</DPL></nowiki>}}


<DPL>
== List all pages in a specific namespace ==
 
{{Input|1=<nowiki><DPL>
   nottitlematch = %/__|%/zh-%|%pt-%|%(%)
   nottitlematch = %/__|%/zh-%|%pt-%|%(%)
  titlematch = Amarok%
   namespace = MediaWiki
   namespace = Main
   columns = 3
   columns = 3
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
   resultsheader = There are %TOTALPAGES% Amarok pages, not counting translations\n
   resultsheader = These %TOTALPAGES% pages are in the Mediawiki namespace\n
</DPL>
</DPL></nowiki>}}


== List all pages in a specific namespace ==
==To count translated pages in a specific language:==


{{Input|1=<nowiki><DPL>
{{Input|1=<nowiki><DPL>
   nottitlematch = %/__|%/zh-%|%pt-%|%(%)
   titlematch = %/en
   namespace = MediaWiki
   notnamespace = Translations
   columns = 3
   columns = 3
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
   resultsheader = These %TOTALPAGES% pages are in the Mediawiki namespace\n
   resultsheader = There are %TOTALPAGES% pages (partly) translated to English. These are:\n
</DPL></nowiki>}}
</DPL></nowiki>}}


<DPL>
<DPL>
   nottitlematch = %/__|%/zh-%|%pt-%|%(%)
   titlematch = %/en
   namespace = MediaWiki
   notnamespace = Translations
   columns = 3
   columns = 3
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
   resultsheader = These %TOTALPAGES% pages are in the Mediawiki namespace\n
   resultsheader = There are %TOTALPAGES% pages (partly) translated to English. These are:\n
</DPL>
</DPL>

Revision as of 12:08, 12 June 2011

Reference: DPL Manual
See also Pipesmoker's notes and this page of examples
Example UI on this Template:Catlist page

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>

There are 832 pages (partly) translated to English. These are: