Difference between revisions of "Extension DPL"

From FollowTheScore
Jump to: navigation, search
Line 2: Line 2:
 
This is the most important extension we provide. The name of this website (''dpldemo'') is derived from the idea to demonstrate the many uses of DPL. DPL is a true monster in terms of functionality. Although there is a [[DPL:Manual|detailed DPL manual]] most people will find it easier to look for an existing '''DPL example''' which is similar to their needs.
 
This is the most important extension we provide. The name of this website (''dpldemo'') is derived from the idea to demonstrate the many uses of DPL. DPL is a true monster in terms of functionality. Although there is a [[DPL:Manual|detailed DPL manual]] most people will find it easier to look for an existing '''DPL example''' which is similar to their needs.
  
Nevertheless: I put a lot of effort into the [[DPL:Manual|manual]] - so please read!
+
Once you have seen the examples you may want to
  
== How to select articles ==
+
<br/>
  
== Show template values ==
+
<center><big>'''read the [[DPL:Manual|manual]] or take the [[Dynamic Page List|systematic approach]].'''</big></center>
 +
 
 +
__NOTOC__
 +
 
 +
== Examples: selecting articles ==
 +
 
 +
=== List articles by category ===
 +
 
 +
* Create a list of articles belonging to a certain category [[DPL Example 005]]
 +
* Create a list of articles belonging or not belonging to certain categories [[DPL Example 006]]
 +
* List articles belonging to subcategories [[DPL Example 007]]
 +
 
 +
=== Find articles which have been changed recently ===
 +
 
 +
* Find articles which have (not) been changed recently [[DPL Example 016]]
 +
 
 +
 
 +
== Examples: defining the amount of output ==
 +
 
 +
=== Show template values ===
  
 
* Create a table of articles where the columns show parameter values of template calls [[DPL Example 001]]
 
* Create a table of articles where the columns show parameter values of template calls [[DPL Example 001]]
Line 13: Line 32:
 
* change the sequence of fields and apply a nested DPL within a phantom template [[DPL Example 004]]
 
* change the sequence of fields and apply a nested DPL within a phantom template [[DPL Example 004]]
  
== List articles by category ==
+
=== Show chapter content ===
 +
 
 +
* Show the content of a certain chapter of some articles [[DPL Example 011]]
 +
* Show the content of a certain chapter of some articles if a given text pattern occurs [[DPL Example 012]]
  
* Create a list of articles belonging to a certain category [[DPL Example 005]]
+
=== Filter transcluded contents ===
* Create a list of articles belonging or not belonging to certain categories [[DPL Example 006]]
+
 
* List articles belonging to subcategories [[DPL Example 007]]
+
* Suppress unwanted parts of content (text, links, catgeory assignments) transcluded from articles [[DPL Example 015]]
 +
 
 +
 
 +
== Examples: defining output layout ==
  
== Tree output ==
+
=== Tree output ===
  
 
* category tree [[DPL Example 008]]
 
* category tree [[DPL Example 008]]
Line 25: Line 50:
 
* tree of relations, templates and categories for a given page [[DPL Example 010]]
 
* tree of relations, templates and categories for a given page [[DPL Example 010]]
  
== Show chapter content ==
+
=== Table output ===
  
* Show the content of a certain chapter of some articles [[DPL Example 011]]
 
* Show the content of a certain chapter of some articles if a given text pattern occurs [[DPL Example 012]]
 
  
== Split large result sets into several pages ==
+
== Examples: Other features ==
 +
 
 +
=== Split large result sets into several pages ===
  
 
* Flip through a long result set [[DPL Example 013]]
 
* Flip through a long result set [[DPL Example 013]]
  
== Load DPL result set into an ARRAY for further manipulation ==
+
=== Load DPL result set into an ARRAY for further manipulation ===
  
 
* Transfer the complete DPL result to an array using [http://www.mediawiki.org/wiki/Extension:ArrayExtension ArrayExtension] [[DPL Example 014]]
 
* Transfer the complete DPL result to an array using [http://www.mediawiki.org/wiki/Extension:ArrayExtension ArrayExtension] [[DPL Example 014]]
  
== Filtering transcluded contents ==
+
=== Create a permuted index of template calls ===
  
* Suppress unwanted parts of content (text, links, catgeory assignments) transcluded from articles [[DPL Example 015]]
+
* List articles ordered by the values they use to call a certain template [[DPL Example 017]]
  
== Find articles which have been changed recently ==
 
  
* Find articles which have (not) been changed recently [[DPL Example 016]]
+
== Other examples ==
  
== Create a permuted index of template calls ==
+
* Examples
 
+
** [[Example 1|simple example]]
* List articles ordered by the values they use to call a certain template [[DPL Example 017]]
+
** [[Example 2|realistic example]]
 +
** [[Example 3|other examples]]
 +
** [[Example 4|treeview example]]

Revision as of 20:08, 21 May 2009

As its name (Dynamic Page Lister) implies, DPL is a report generator for MediaWikis. This is the most important extension we provide. The name of this website (dpldemo) is derived from the idea to demonstrate the many uses of DPL. DPL is a true monster in terms of functionality. Although there is a detailed DPL manual most people will find it easier to look for an existing DPL example which is similar to their needs.

Once you have seen the examples you may want to


read the manual or take the systematic approach.


Examples: selecting articles

List articles by category

Find articles which have been changed recently


Examples: defining the amount of output

Show template values

  • Create a table of articles where the columns show parameter values of template calls DPL Example 001
  • Make that table sortable and define a headline for the first column DPL Example 002
  • Add meta data (hit count) and apply individual formatting to the fields DPL Example 003
  • change the sequence of fields and apply a nested DPL within a phantom template DPL Example 004

Show chapter content

  • Show the content of a certain chapter of some articles DPL Example 011
  • Show the content of a certain chapter of some articles if a given text pattern occurs DPL Example 012

Filter transcluded contents

  • Suppress unwanted parts of content (text, links, catgeory assignments) transcluded from articles DPL Example 015


Examples: defining output layout

Tree output

Table output

Examples: Other features

Split large result sets into several pages

Load DPL result set into an ARRAY for further manipulation

Create a permuted index of template calls

  • List articles ordered by the values they use to call a certain template DPL Example 017


Other examples