DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:top

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
plugin:top [2015-02-18 12:38] – [Configuration and Settings] grosseplugin:top [2018-05-29 23:47] – [Installation] Klap-in
Line 1: Line 1:
-====== top Plugin ======+====== Top Plugin ======
  
 ---- plugin ---- ---- plugin ----
Line 6: Line 6:
 email      : gohr@cosmocode.de email      : gohr@cosmocode.de
 type       : action, syntax type       : action, syntax
-lastupdate : 2014-10-08 +lastupdate : 2016-01-13 
-compatible : Hrun+compatible : Detritus, Hrun
 depends    : sqlite depends    : sqlite
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : +tags       : statistics
  
 downloadurl: https://github.com/cosmocode/dokuwiki-plugin-top/zipball/master downloadurl: https://github.com/cosmocode/dokuwiki-plugin-top/zipball/master
Line 27: Line 27:
   * [[plugin:sqlite|sqlite plugin]]   * [[plugin:sqlite|sqlite plugin]]
  
-Install the plugin using the [[plugin:extension|Extension Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 42: Line 42:
 Show the top ten visted pages since (and including) January 2014 in the english namespace (if the translation plugin is installed): Show the top ten visted pages since (and including) January 2014 in the english namespace (if the translation plugin is installed):
 <code>{{top|month=201401,lang=en}}</code> <code>{{top|month=201401,lang=en}}</code>
 +
 +
 ===== Syntax ===== ===== Syntax =====
 Inserting the tag ''<nowiki>{{top}}</nowiki>'' will create a list of the top ten most visited pages. Inserting the tag ''<nowiki>{{top}}</nowiki>'' will create a list of the top ten most visited pages.
 <code wiki> <code wiki>
-{{top[|[lang=$langprefix[,]][month=$startmonth]}}+{{top[|[lang=$langprefix[,]][month=$startmonth[,]][tag=ol[,]][score=true]}}
 </code> </code>
  
-It includes two options.+It includes four options.
  
 ==== lang ==== ==== lang ====
Line 65: Line 67:
  
  
 +==== list items ====
 +By default the list uses bullet points, which can be changed to a numbered list by adding the ''tag=ol'' option:
 +<code>{{top|tag=ol}}</code>
 +
 +==== score ====
 +You can show the score of each item by adding the ''score=true'' option:
 +<code>{{top|score=true}}</code> 
 +or for example as a numbered list 
 +<code>{{top|tag=ol,score=true}}</code>
  
 +===== Troubleshooting =====
 +==== If top displays nothing ====
 +=== Restricted to publicly-accessible pages? ===
 +Check ''plugin»top»show_only_public'' setting; if enabled, but you have no publicly-accessible pages in your wiki, you will see nothing. This is expected behaviour.
  
 ===== Development ===== ===== Development =====
plugin/top.txt · Last modified: 2021-10-15 05:25 by goldseed

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