Jump to content

User:Annew/DPL: Difference between revisions

From KDE UserBase Wiki
Annew (talk | contribs)
No edit summary
Annew (talk | contribs)
No edit summary
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 = %/en
   titlematch = %/de
   notnamespace = Translations
   notnamespace = Translations
   columns = 3
   columns = 3
   format = ,\n* [[%PAGE%|%TITLE%]],,
   format = ,\n* [[%PAGE%|%TITLE%]],,
   resultsheader = There are %TOTALPAGES% pages (partly) translated to English. These are:\n
   resultsheader = There are %TOTALPAGES% pages (partly) translated to German. These are:\n
</DPL></nowiki>}}
</DPL></nowiki>}}


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



Revision as of 13:24, 19 March 2011

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

To count translated pages in a specific language:

&lt;DPL&gt;
  titlematch = %/de
  notnamespace = Translations
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% pages (partly) translated to German. These are:\n
&lt;/DPL&gt;

There are 337 pages (partly) translated to German. These are:


Kopete Subpages in 3 columns

&lt;DPL&gt;
  titlematch = Kopete/%
  notnamespace = Translations
  columns = 3
  format = ,\n* [[%PAGE%|%TITLE%]],,
&lt;/DPL&gt;

Akonadi Subpages in Danish

&lt;DPL&gt;
  titlematch = Akonadi%/da
  notnamespace = Translations
  format = ,\n* [[%PAGE%|%TITLE%]],,
&lt;/DPL&gt;

Archived pages

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

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


NoIndexed pages

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

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


Remaining old-style translations

&lt;DPL&gt;
  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
&lt;/DPL&gt;

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

Pages with old i18n bar

&lt;DPL&gt;
  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
&lt;/DPL&gt;


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

&lt;DPL&gt;
  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
&lt;/DPL&gt;


Pages not updated since 1st July 2010

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

Extension:DynamicPageList3 (DPL3), version 3.6.4: 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

Listing Non-Translation Pages

&lt;DPL&gt;
  nottitlematch = %/__|%/zh-%|%(%)
  titlematch = Amarok%
  namespace = Main
  columns = 1
  format = ,\n* [[%PAGE%|%TITLE%]],,
  resultsheader = There are %TOTALPAGES% Amarok pages, not counting translations\n
&lt;/DPL&gt;
'"`UNIQ--DPL-00000027-QINU`"'