User:Annew/DPL: Difference between revisions

From KDE UserBase Wiki
Line 4: Line 4:
==To count translated pages in a specific language:==
==To count translated pages in a specific language:==
{{Input|1=<nowiki><DPL>
{{Input|1=<nowiki><DPL>
   titlematch = %/bg
   titlematch = %/gl
   notnamespace = Translations
   notnamespace = Translations
   columns = 3
   columns = 3
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
   resultsheader = There are %TOTALPAGES% pages (partly) translated to Bulgarian. These are:\n
   resultsheader = There are %TOTALPAGES% pages (partly) translated to Galician. These are:\n
</DPL></nowiki>}}
</DPL></nowiki>}}


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


-----------------
-----------------
==Kopete Subpages in 3 columns==
==Kopete Subpages in 3 columns==



Revision as of 11:24, 11 February 2011

Reference: DPL Manual
See also Pipesmoker's notes and this page of examples

To count translated pages in a specific language:

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

There are 64 pages (partly) translated to Galician. These are:


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>

There are 755 pages in the Archive namespace. These are:


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>

There are 10 pages in the Category:Noindexed_pages. These are:


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>

There are 1069 pages (partly) remaining in old-style translations. These are:

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>

Extension:DynamicPageList3 (DPL3), version 3.5.3: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants