Difference between revisions of "RecentActivity"

From Organic Design
(intro)
 
(Change source-code blocks to standard format)
 
Line 3: Line 3:
  
 
;Show the last five articles that have been edited
 
;Show the last five articles that have been edited
{{code|<pre>
+
<source>
 
{{RecentActivity:type=edits}}
 
{{RecentActivity:type=edits}}
</pre>}}
+
</source>
  
  
 
;Show the last five articles that have been created
 
;Show the last five articles that have been created
{{code|<pre>
+
<source>
 
{{RecentActivity:type=new}}
 
{{RecentActivity:type=new}}
</pre>}}
+
</source>
  
  
 
;Show the last five articles that have been created by user Foo
 
;Show the last five articles that have been created by user Foo
{{code|<pre>
+
<source>
 
{{RecentActivity:type=new|user=Foo}}
 
{{RecentActivity:type=new|user=Foo}}
</pre>}}
+
</source>
  
  
 
;Show the last ten articles that have been edited
 
;Show the last ten articles that have been edited
{{code|<pre>
+
<source>
 
{{RecentActivity:type=edits|count=10}}
 
{{RecentActivity:type=edits|count=10}}
</pre>}}
+
</source>
  
  
 
;Show the last five articles that have been edited, each preceded by two asterisks (useful for putting in treeviews)
 
;Show the last five articles that have been edited, each preceded by two asterisks (useful for putting in treeviews)
{{code|<pre>
+
<source>
 
{{RecentActivity:type=edits|format=**}}
 
{{RecentActivity:type=edits|format=**}}
</pre>}}
+
</source>

Latest revision as of 18:11, 22 May 2015

The RecentActivity extension allows the generation of lists of recently created articles or recent edits either by anyone, or by a specific user. By default it will give five results ordered by most recent first in a bullet list format. Here's some example usage:


Show the last five articles that have been edited
{{RecentActivity:type=edits}}


Show the last five articles that have been created
{{RecentActivity:type=new}}


Show the last five articles that have been created by user Foo
{{RecentActivity:type=new|user=Foo}}


Show the last ten articles that have been edited
{{RecentActivity:type=edits|count=10}}


Show the last five articles that have been edited, each preceded by two asterisks (useful for putting in treeviews)
{{RecentActivity:type=edits|format=**}}