Difference between revisions of "Test addcategories"

From FollowTheScore
Jump to: navigation, search
(show articles and their categories, grouped by categories)
Line 1: Line 1:
=== show articles and their categories ===
+
{{Type:Test
 +
|parameter = addcategories
 +
}}
  
Note: We search all articles containing "m" somewhere in the name to avoid a huge result list.
+
== show articles and their categories ==
  
 
<pre><nowiki>
 
<pre><nowiki>
Line 15: Line 17:
 
</dpl>
 
</dpl>
  
=== show articles and their categories, grouped by categories ===
+
== show articles and their categories, grouped by categories ==
  
 
The following report has a bug which depends on the version of MySQL you use.
 
The following report has a bug which depends on the version of MySQL you use.
 
Note: Again, we restrict the search to articles containing "ma" somewhere in the name
 
  
 
<pre><nowiki>
 
<pre><nowiki>

Revision as of 22:09, 3 March 2007

Template:Type:Test

show articles and their categories

<dpl>
  addcategories=true
  titlematch=%m%
</dpl>

show articles and their categories, grouped by categories

The following report has a bug which depends on the version of MySQL you use.

<dpl>
  namespace=
  headingmode=H4
  ordermethod=category,sortkey
  addcategories=true
  titlematch=%ma%
</dpl>

For some strange reason in MySQL 4.x (running on this server) the result is too large: the identical SQL statement works correctly on MySQL 5.0; maybe the reason lies in the existence of the view which is needed to support uncategorized pages (this view is not present in this web site).

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