Philip P. Ide

Author, programmer, science enthusiast, half-wit.
Life is sweet. Have you tasted it lately?

User Tools

Site Tools


blog:articles:software:doku_dlcounter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
blog:articles:software:doku_dlcounter [2019/05/14 16:29] – created Phil Ideblog:articles:software:doku_dlcounter [2019/05/20 14:55] (current) – [Displaying in Tables] Phil Ide
Line 12: Line 12:
 <HTML> <HTML>
 <table class=infobox> <table class=infobox>
-<tr><th align=right>Last updated</th><td> 2019-05-14</td></tr> +<tr><th align=right>Last updated</th><td> 2019-05-15</td></tr> 
-<tr><th align=right>Provides</th><td> Syntax</td></tr>+<tr><th align=right>Provides</th><td> Syntax, Action</td></tr>
 <tr><th align=right>Author</th><td> Phil Ide</td></tr> <tr><th align=right>Author</th><td> Phil Ide</td></tr>
 </table> </table>
Line 49: Line 49:
  
 An example in a more realistic use-case: An example in a more realistic use-case:
-<code>..blah blah blah widget.zip ({{dlcounter>file?software:downloads:widget.zip}} downloads).</code>+<code>..blah blah blah widget.zip (**{{dlcounter>file?software:downloads:widget.zip}}** downloads).</code>
 which  might output:\\ which  might output:\\
->..blah blah blah widget.zip (15 downloads).+>..blah blah blah widget.zip (**15** downloads).
  
 Note that if you request data for a file that doesn't exist, the plugin returns zero and not an error. It only knows about files that have been downloaded since the plugin was installed, so assumes everything else hasn't been downloaded yet, whether it is a real file or you've typed the name incorrectly or provided the wrong path. Note that if you request data for a file that doesn't exist, the plugin returns zero and not an error. It only knows about files that have been downloaded since the plugin was installed, so assumes everything else hasn't been downloaded yet, whether it is a real file or you've typed the name incorrectly or provided the wrong path.
Line 95: Line 95:
 Note that if you use the ''strip'' parameter to remove path information, the filename will still be emboldened unless you use the ''nobold'' option. Note that if you use the ''strip'' parameter to remove path information, the filename will still be emboldened unless you use the ''nobold'' option.
  
-Sorting is performed on the column named in the command, e.g. if you specify ''name?sort'', the filenames will be sorted, and ''count?sort'' will result in the counters being sorted.+Sorting is performed on the column named in the command, e.g. if you specify ''name?sort'', the filenames will be sorted, and ''count?sort'' will result in the counters being sorted. Sorting on names uses the filename first and the path as a subsort.
  
 Parameters should be separated from each other by a space. Parameters should be separated from each other by a space.
Line 113: Line 113:
  
 An example of table output: An example of table output:
-<code>{{dlcounter>count?rsort strip left tleft}}</code>+<code>{{dlcounter>count?rsort strip left hleft}}</code>
 results in: results in:
 <HTML> <HTML>
blog/articles/software/doku_dlcounter.1557851392.txt.gz · Last modified: 2019/05/14 16:29 by Phil Ide

Except where otherwise noted, content on this wiki is licensed under the following license: Copyright © Phil Ide
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki