Difference between revisions of "Example 3"

From FollowTheScore
Jump to: navigation, search
 
(8 intermediate revisions by 3 users not shown)
Line 13: Line 13:
 
   ordermethod = lastedit
 
   ordermethod = lastedit
 
   order = ascending
 
   order = ascending
   resultsheader = ====latest edits:====
+
   resultsheader = ====latest edits:====\n
 
   shownamespace = false
 
   shownamespace = false
 
   addeditdate = true
 
   addeditdate = true
Line 24: Line 24:
 
   ordermethod = lastedit
 
   ordermethod = lastedit
 
   order = ascending
 
   order = ascending
   resultsheader = ====latest edits:====
+
   resultsheader = ====latest edits:====\n
 
   shownamespace = false
 
   shownamespace = false
 
   addeditdate = true
 
   addeditdate = true
Line 48: Line 48:
 
<pre><nowiki>
 
<pre><nowiki>
 
<DPL>
 
<DPL>
   namespace=Image
+
   namespace=File
 
   mode=userformat
 
   mode=userformat
 
   listseparators=<gallery>,%PAGE%\n,,</gallery>
 
   listseparators=<gallery>,%PAGE%\n,,</gallery>
Line 55: Line 55:
  
 
<DPL>
 
<DPL>
   namespace=Image
+
   namespace=File
 
   mode=userformat
 
   mode=userformat
 
   listseparators=<gallery>,%PAGE%\n,,</gallery>
 
   listseparators=<gallery>,%PAGE%\n,,</gallery>
 
</DPL>
 
</DPL>
 +
 +
===Image gallery with alternative syntax===
 +
This allows passing of parameters et.c.
 +
<pre><nowiki>
 +
{{#dpl:
 +
  |namespace=File
 +
  |format=«gallery»,%PAGE%¦%NR%. %TITLE%\n,,«/gallery»
 +
}}
 +
</nowiki></pre>
 +
{{#dpl:
 +
  |namespace=File
 +
  |format=«gallery»,%PAGE%¦%NR%. %TITLE%\n,,«/gallery»
 +
}}
  
 
== Show number of articles instead of name list ==
 
== Show number of articles instead of name list ==
Line 67: Line 80:
 
{{#dpl:category=African Union member states|resultsheader=There are %PAGES% articles on OAU member states.|mode=userformat}}
 
{{#dpl:category=African Union member states|resultsheader=There are %PAGES% articles on OAU member states.|mode=userformat}}
  
 +
<!--
  
 
== Multi column output and article numbers ==
 
== Multi column output and article numbers ==
Line 207: Line 221:
 
<dpl>
 
<dpl>
 
   namespace=
 
   namespace=
 +
  titlematch=B%
 
   addpagesize=true
 
   addpagesize=true
 
   ordermethod=size
 
   ordermethod=size
Line 217: Line 232:
 
<dpl>
 
<dpl>
 
   namespace=
 
   namespace=
 +
  titlematch=B%
 
   addpagesize=true
 
   addpagesize=true
 
   ordermethod=size
 
   ordermethod=size
Line 223: Line 239:
 
   columns=4
 
   columns=4
 
</dpl>
 
</dpl>
 +
 +
<dpl>reset=all</dpl>
 +
 +
-->

Latest revision as of 09:17, 8 February 2011

Find Articles which have at least / at most [n] categories

Members of the OAU with at least 3 categories, at most 6:

{{#dpl:categoriesminmax=3,6|category=African Union member states|addpagesize=true}}


Show date and user of latest edit for country articles

<DPL>
  category = Fictitious country
  ordermethod = lastedit
  order = ascending
  resultsheader = ====latest edits:====\n
  shownamespace = false
  addeditdate = true
  adduser = true
  mode = ordered
</DPL>

latest edits:

  1. 2009-04-14 16:02:23 DPL Example 007 main page 1 . . Bwyseur
  2. 2009-04-14 16:32:28 Nigunda . . Kw123
  3. 2010-01-19 15:41:07 Somango . . Gero
  4. 2010-01-19 15:49:26 Nigunda Test . . Gero

Find uncategorized articles

Note: the following statement works only if you created a special SQL view in the wiki database. You need admin rights (including "CREATE VIEW permissions") for this. This demo site runs on a server where the author does not have such rights. So you will see an error message ...

<dpl>
  category=
</dpl>

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option for parameter 'category'.


Extension:DynamicPageList (DPL), version 3.2.1: 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


Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.

Produce an image gallery

<DPL>
  namespace=File
  mode=userformat
  listseparators=<gallery>,%PAGE%\n,,</gallery>
</DPL>

Image gallery with alternative syntax

This allows passing of parameters et.c.

{{#dpl:
   |namespace=File
   |format=«gallery»,%PAGE%¦%NR%. %TITLE%\n,,«/gallery»
}}

Show number of articles instead of name list

{{#dpl:category=African Union member states|resultsheader=There are %PAGES% articles on OAU member states.|mode=userformat}}

There are 4 articles on OAU member states.