Difference between revisions of "Extension DPL"

From FollowTheScore
Jump to: navigation, search
Line 6: Line 6:
 
<br/>
 
<br/>
  
<center><big>read the '''[[DPL:Manual|manual]]''' or take the '''[[Dynamic Page List|systematic approach]].'''</big></center>
+
<center>read the <big>'''[[DPL:Manual|manual]]'''</big> or take the <big>'''[[Dynamic Page List|systematic approach]].'''</big></center>
  
 
__NOTOC__
 
__NOTOC__
Line 24: Line 24:
 
=== Show the context of an article ===
 
=== Show the context of an article ===
  
 +
* Print a list of pages, templates, categories and images which are related to a certain article [[DPL Example 018]]
 +
 +
=== Show Images ===
 +
 +
* List images which are part of a certain article [[DPL Example 019]]
  
* Print a list of pages, templates, categories and images which are related to a certain article [[DPL Example 018]]
 
  
 
== Examples: defining the amount of output ==
 
== Examples: defining the amount of output ==

Revision as of 19:33, 26 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

Show the context of an article

  • Print a list of pages, templates, categories and images which are related to a certain article DPL Example 018

Show Images


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

Other examples, showing meta data, content, images etc.


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