Difference between revisions of "Test addfirstcategorydate"

From FollowTheScore
Jump to: navigation, search
Line 1: Line 1:
 
== show the date when an article was added to a category ==
 
== show the date when an article was added to a category ==
  
This requires exactly one category to be selected.
+
You should use only one category to be selected.
  
 
<pre><nowiki>
 
<pre><nowiki>
 
<DPL>
 
<DPL>
   category=African Union member states  
+
   category=African Union member states
 
   addfirstcategorydate=true
 
   addfirstcategorydate=true
 
</DPL>
 
</DPL>
Line 11: Line 11:
  
 
<DPL>  
 
<DPL>  
   category=African Union member states  
+
   category=African Union member states
 
   addfirstcategorydate=true
 
   addfirstcategorydate=true
 +
</DPL>
 +
 +
== show the date when an article was added to one of more categories ==
 +
 +
Since DPL 0.9.7 you can use addfirstcatgeorydate with more than one catgegory in your query.
 +
If you specify more than one category there are two cases:
 +
* each article belongs only to ONE of your categories
 +
** then the result is clear
 +
* there are articles which belong to more than one of your categories
 +
** in this case the result will be ambiguous (one of the catgeories will be taken by random)
 +
 +
<pre><nowiki>
 +
<DPL>
 +
  category=African Union member states|Fictitious country
 +
  addfirstcategorydate=true
 +
</DPL>
 +
</nowiki></pre>
 +
 +
<DPL>
 +
  category=African Union member states|Fictitious country
 +
  addfirstcategorydate=true
 +
  addcategories=true
 
</DPL>
 
</DPL>

Revision as of 11:28, 1 March 2007

show the date when an article was added to a category

You should use only one category to be selected.

<DPL>
   category=African Union member states
   addfirstcategorydate=true
</DPL>

Extension:DynamicPageList (DPL), version 3.2.1: Warning: No parameter option supplied for ' '. (Missing '=')

show the date when an article was added to one of more categories

Since DPL 0.9.7 you can use addfirstcatgeorydate with more than one catgegory in your query. If you specify more than one category there are two cases:

  • each article belongs only to ONE of your categories
    • then the result is clear
  • there are articles which belong to more than one of your categories
    • in this case the result will be ambiguous (one of the catgeories will be taken by random)
<DPL>
   category=African Union member states|Fictitious country
   addfirstcategorydate=true
</DPL>

Extension:DynamicPageList (DPL), version 3.2.1: Warning: No parameter option supplied for ' '. (Missing '=')