DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authorstats

authorstats Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" yes

plugin Plugin that outputs statistics about the wiki's authors

Last updated on
2022-03-12
Provides
Syntax
Repository
Source
Requires
pagelist

Similar to statdisplay, stats

Tagged with authors, report, statistics, users

Description

Plugin that outputs metrics about the wiki's authors. Simply save a page including the code <AUTHORSTATS #> (read the Syntax section) to generate a table containing the desired statistics.

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

NOTE: This plugin Requires PHP 5.3+ due using namespaces

Example of Usage

Saving a page including in the code <AUTHORSTATS> and <AUTHORSTATS 16>.
This will submit two tables. One with metrics since the beginning of the wiki and one with metrics for the last 16 months.

The generated tables as expected.

Current Year Contributions Graph

Syntax

Simple Description

<AUTHORSTATS #>

# is optional and could be any number of months in which you want to output metrics. If it is omitted, the page will output the metrics since the beginning of the wiki.

Current Year-to-Date Contributions Graph

<AUTHORSTATS YEARGRAPH>

BNF Description

[authorstats_syntax] ::= '<AUTHORSTATS>'
                       | '<AUTHORSTATS [num]>'
                       | '<AUTHORSTATS YEARGRAPH>'
                       | '<AUTHORSTATS YEARGRAPH [num]>'
                       | '<AUTHORSTATS YEARGRAPH [num] [sort]>'
[num]  ::= integer
[sort] ::= 'asc'
         | 'ascending'
         | 'desc'
         | 'descending'
         | 'rev'
         | 'reverse'

Acknowledgements

Bugs and Issues

To inform us about a bug or even send me a patch please use GitHub's Issue tracking interface.

Discussion

1. SORTABLE For sorting you need to install sortablejs plugin and use it as follows:

<sortable  1=alpha 2=numeric  3=numeric 4=numeric 5=numeric 6=numeric 7=numeric>
<AUTHORSTATS> 
</sortable>

2. <AUTHORSTATS YEARGRAPH #y [sort]> to display yeargraph of year #yr

<AUTHORSTATS YEARGRAPH>
<AUTHORSTATS YEARGRAPH 2>
<AUTHORSTATS YEARGRAPH 2 desc>
plugin/authorstats.txt · Last modified: 2022-03-13 05:38 by conx

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki