Difference between revisions of "Test addcategories"

From FollowTheScore
Jump to: navigation, search
(New page: ordermethod=category,lastedit headingmode=H4 addpagesize=true addpagecounter=true adduser=true addeditdate=true titlematch=%ma% ===articles by user and date of last edit=== ...)
 
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
   ordermethod=category,lastedit
+
{{Type Test
 +
|parameter = addcategories
 +
}}
 +
 
 +
== show articles and their categories ==
 +
 
 +
<pre><nowiki>
 +
<dpl>
 +
   addcategories=true
 +
  titlematch=%ma%
 +
</dpl>
 +
</nowiki></pre>
 +
 
 +
<dpl>
 +
  addcategories=true
 +
  titlematch=%ma%
 +
</dpl>
 +
 
 +
== show articles and their categories, grouped by categories ==
 +
 
 +
The following report has a bug which depends on the version of MySQL you use.
 +
 
 +
<pre><nowiki>
 +
<dpl>
 +
  namespace=
 
   headingmode=H4
 
   headingmode=H4
   addpagesize=true
+
   ordermethod=category,sortkey
   addpagecounter=true
+
   addcategories=true
  adduser=true
 
  addeditdate=true
 
 
   titlematch=%ma%
 
   titlematch=%ma%
 +
</dpl>
 +
</nowiki></pre>
  
===articles by user and date of last edit===
+
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).
  
Note: We search all articles containing "m" somewhere in the name to avoid a huge result list.
+
<pre><nowiki>
 +
<dpl>
 +
debug=3
 +
  namespace=
 +
  headingmode=H4
 +
  ordermethod=category,sortkey
 +
  addcategories=true
 +
  titlematch=%ma%
 +
</dpl>
 +
</nowiki></pre>
  
 +
== show categories as plain text ==
 
<dpl>
 
<dpl>
   headingmode=H5
+
   titlematch=Somalia
 +
  mode=userformat
 
   addcategories=true
 
   addcategories=true
   titlematch=%m%
+
   listseparators=,\n* [[%PAGE%|%TITLE%]] &nbsp; %CATNAMES%,
 +
  reset =links
 
</dpl>
 
</dpl>

Latest revision as of 11:48, 28 January 2008

Test addcategories

show articles and their categories

<dpl>
  addcategories=true
  titlematch=%ma%
</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).

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

show categories as plain text

  • Somalia   African Union member states, Arab League, Divided regions, East Africa, Pages with broken file links, Somalia