Difference between revisions of "Test addfirstcategorydate"

From FollowTheScore
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{Type Test
 +
|parameter = addfirstcategorydate
 +
}}
 
== 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 14:
  
 
<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 addfirstcategorydate 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 (probably the date of the last assigment of that article to one of the categories will be taken)
 +
 +
<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
 +
  reset=all
 
</DPL>
 
</DPL>

Latest revision as of 11:47, 28 January 2008

Test addfirstcategorydate

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 addfirstcategorydate 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 (probably the date of the last assigment of that article to one of the categories will be taken)
<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 '=')