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 revision Previous revision
Next revision
Previous revision
plugin:top [2015-02-18 12:38]
grosse [Configuration and Settings]
plugin:top [2018-12-07 10:16] (current)
Barbara [Top Plugin]
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 20: Line 20:
 screenshot_img :  screenshot_img : 
 ---- ----
-[[http://​www.cosmocode.de/​en/​open-source/​dokuwiki-plugins/​|{{ http://​cosmocode.de/​static/​img/​dokuwiki/​dwplugins.png?​recache|A CosmoCode Plugin}}]]+[[https://​www.cosmocode.de/​en/​open-source/​dokuwiki-plugins/​|{{ http://​cosmocode.de/​static/​img/​dokuwiki/​dwplugins.png?​recache|A CosmoCode Plugin}}]]
  
 ===== Installation ===== ===== Installation =====
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.1424259520.txt.gz · Last modified: 2015-02-18 12:38 by grosse