Difference between revisions of "RecentActivity"
From Organic Design wiki
(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 | ||
− | + | <source> | |
{{RecentActivity:type=edits}} | {{RecentActivity:type=edits}} | ||
− | </ | + | </source> |
;Show the last five articles that have been created | ;Show the last five articles that have been created | ||
− | + | <source> | |
{{RecentActivity:type=new}} | {{RecentActivity:type=new}} | ||
− | </ | + | </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 | ||
− | + | <source> | |
{{RecentActivity:type=new|user=Foo}} | {{RecentActivity:type=new|user=Foo}} | ||
− | </ | + | </source> |
;Show the last ten articles that have been edited | ;Show the last ten articles that have been edited | ||
− | + | <source> | |
{{RecentActivity:type=edits|count=10}} | {{RecentActivity:type=edits|count=10}} | ||
− | </ | + | </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) | ||
− | + | <source> | |
{{RecentActivity:type=edits|format=**}} | {{RecentActivity:type=edits|format=**}} | ||
− | </ | + | </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=**}}