Difference between revisions of "Test addcategories"

From FollowTheScore
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Type:Test
+
{{Type Test
 
  |parameter = addcategories
 
  |parameter = addcategories
 
}}
 
}}
Line 8: Line 8:
 
<dpl>
 
<dpl>
 
   addcategories=true
 
   addcategories=true
   titlematch=%m%
+
   titlematch=%ma%
 
</dpl>
 
</dpl>
 
</nowiki></pre>
 
</nowiki></pre>
Line 14: Line 14:
 
<dpl>
 
<dpl>
 
   addcategories=true
 
   addcategories=true
   titlematch=%m%
+
   titlematch=%ma%
 
</dpl>
 
</dpl>
  
Line 33: Line 33:
 
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).
 
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>
+
<pre><nowiki>
debug=3
+
<dpl>
  namespace=
+
debug=3
  headingmode=H4
+
  namespace=
  ordermethod=category,sortkey
+
  headingmode=H4
  addcategories=true
+
  ordermethod=category,sortkey
  titlematch=%ma%
+
  addcategories=true
</dpl>
+
  titlematch=%ma%
 +
</dpl>
 +
</nowiki></pre>
  
== show categories without links ==
+
== show categories as plain text ==
 
<dpl>
 
<dpl>
 
   titlematch=Somalia
 
   titlematch=Somalia
Line 48: Line 50:
 
   addcategories=true
 
   addcategories=true
 
   listseparators=,\n* [[%PAGE%|%TITLE%]] &nbsp; %CATNAMES%,
 
   listseparators=,\n* [[%PAGE%|%TITLE%]] &nbsp; %CATNAMES%,
 +
  reset =links
 
</dpl>
 
</dpl>
 
<dpl>reset=all</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