Plugin Stat

Introduced in Tiki4

Use this wiki plugin to show various statistics for an object.

Parameters

Introduced in Tiki 4. Required parameters are in bold.
Go to the source code
Preferences required: wikiplugin_stat

Parameters Accepted Values Description Default Since
type (blank)| article| article:trackeritem| article:trackeritem:wiki| article:wiki| article:wiki:trackeritem| trackeritem| trackeritem:article| trackeritem:article:wiki| trackeritem:wiki| trackeritem:wiki:article| wiki| wiki:article| wiki:article:trackeritem| wiki:trackeritem| wiki:trackeritem:article Colon-separated list of object type to show stats for. 4.0
parentId digits Enter a tracker ID to restrict stats to that tracker (for use with trackeritems only). 4.0
lastday a or v or both separated by a colon. Example: "a:v" or "v:a" Added and/or viewed in the last 24 hours (only added items shown for tracker items whether a (added) or v (viewed) or both is set) 4.0
lastweek a or v or both separated by a colon. Example: "a:v" or "v:a" Added and/or viewed in the last 7 days (only added items shown for tracker items whether a (added) or v (viewed) or both is set) 4.0
lastmonth a or v or both separated by a colon. Example: "a:v" or "v:a" Added and/or viewed last month (only added items shown for tracker items whether a (added) or v (viewed) or both is set) 4.0
lastyear a or v or both separated by a colon. Example: "a:v" or "v:a" Added and/or viewed in the last 365 days (only added items shown for tracker items whether a (added) or v (viewed) or both is set) 4.0
month a or v or both separated by a colon. Example: "a:v" or "v:a" Added and/or viewed since the beginning of the month (only added items shown for tracker items whether a (added) or v (viewed) or both is set) 4.0
week a or v or both separated by a colon. Example: "a:v" or "v:a" Added and/or viewed since the beginning of the week (only added items shown for tracker items whether a (added) or v (viewed) or both is set) 4.0
year a or v or both separated by a colon. Example: "a:v" or "v:a" Added and/or viewed since the beginning of the year (only added items shown for tracker items whether a (added) or v (viewed) or both is set) 4.0
day a or v or both separated by a colon. Example: "a:v" or "v:a" Added and/or viewed since the beginning of the day (only added items shown for tracker items whether a (added) or v (viewed) or both is set) 4.0


Limitation

  • viewed tracker items does not work, although prior to 6.1, only "v" could be used for any of the time period parameters, although the results would show added items. Beginning with 6.1, either a or v can be used, but only added items will be shown for trackeritems.

Example

This code:

{stat type="wiki" lastday="a:v" day="a:v" lastweek="a:v" week="a:v" lastmonth="a:v" month="a:v" lastyear="a:v" year="a:v"}

Would produce on this site:

  • Added wiki pages: 0
  • Viewed wiki pages: 0
  • Added wiki pages: 0
  • Viewed wiki pages: 0
  • Added wiki pages: 0
  • Viewed wiki pages: 0
  • Added wiki pages: 0
  • Viewed wiki pages: 0
  • Added wiki pages: 0
  • Viewed wiki pages: 0
  • Added wiki pages: 0
  • Viewed wiki pages: 0
  • Added wiki pages: 34
  • Viewed wiki pages: 0
  • Added wiki pages: 14
  • Viewed wiki pages: 0