DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:dokupp

Differences

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

Link to this comparison view

Next revision
Previous revision
plugin:dokupp [2011-02-02 21:24] – created ryan.chappelleplugin:dokupp [2018-05-30 22:02] (current) – [DokuPP Plugin] Klap-in
Line 1: Line 1:
-====== dokupp Plugin ======+====== DokuPP Plugin ====== 
 ---- plugin ---- ---- plugin ----
-description: Provides automatic counters +description: DokuPP (DokuPlusPlus) provides automatic counters 
-author     : Luis Machuca Bezzaza  +author     : Luis Machuca Bezzaza 
-email      : luis [dot] machuca [at] gulix [dot] cl +email      : luis.machuca [at] gulix.cl
 type       : Syntax type       : Syntax
-lastupdate : 2011-02-02 +lastupdate : 2013-09-29 
-compatible : ≥ //Lemming//+compatible : Lemming
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : autonumbering 
-tags       : numbering formatting+tags       : numbering formatting counter
  
-downloadurl: http://ryan.gulix.cl/dw/_media/desarrollo/dokuwiki/dw-plugin-dokupp-latest.zip +downloadurl: http://chiselapp.com/user/lmachucab/repository/dokuwiki-plugin-dokupp/zip/dw-dokupp.zip?uuid=trunk 
-bugtracker : # eg. http://github.com/ryan.chappelle/dokuwiki-plugin-dokupp/issues +bugtracker : https://chiselapp.com/user/lmachucab/repository/dokuwiki-plugin-dokupp/reportlist 
-sourcerepo : # eg. http://github.com/ryan.chappelle/dokuwiki-plugin-dokupp/+sourcerepo : http://chiselapp.com/user/lmachucab/repository/dokuwiki-plugin-dokupp/
 donationurl:  donationurl: 
 ---- ----
 +
 +This plugin basically allows one to set up "magic counters" to provide numbering of items (nearly) anywhere one wants. If at some point you need to break and continue a numbered list and the list formatting plugins do not look like they would provide this easily, for example, then perhaps you can try this one!
  
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin 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
 + 
 +:!: The author strongly recommends uninstalling previous versions of this plugin before installing to prevent class name conflicts.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
  
-See the plugin in action [[http://ryan.gulix.cl/dw/desarrollo/dokuwiki/plugin-dokupp|in the Official Demo Page]].+See the plugin in action [[http://ryan.gulix.cl/dw/desarrollo/dokuwiki/plugin-dokupp|in the Official Demo Page]]. FIXME
  
-You use the ''@#@'' tag in order to insert an automatic counter. Every time you invoke this syntax, the counter is increased and the next number is displayed.+===Counter=== 
 +You use the ''@#@'' tag in order to insert an automatic counter. Every time you invoke this syntax, the counter is increased and the next number is displayed. 
  
 <code> <code>
-The following shows the number @#@, and this @#@ showed the next number. After all that comes @#@.+This creates a row of numbers starting at zero:  
 +@#@, @#@@#@, @#@, @#@, @#@ and @#@. 
 +</code> 
 +Using this snippet you should see: 
 +<code> 
 +This creates a row of numbers starting at zero:  
 +0, 1, 2, 3, 4, 5 and 6.
 </code> </code>
  
-If the counter was initialized to //5//, for example, you should see this:+===Select and Setup=== 
 +You can create your own, named counter, and assign an initial value to it. When you select a counter by nameall subsequent invocations of ''@#@'' syntax will refer to that counter until you decide to select another one.
  
 <code> <code>
-The following shows the number 5, and this 6 showed the next number. After all that comes 7.+Select (or create) a counter named 'houses', starting at one: @#houses=1@ 
 +Select (or create) a counter named 'trees', starting at seven: @#trees=7@ 
 +Select the 'houses' counter again, continue where it left: @#houses=@ 
 +Select the default, unnamed counter, continue where it left: @#=@ 
 +</code> 
 + 
 +Counter names must be single words in lowercase (eg.: "''itemperemployee'' not ''item_per_employee'' or ''ItemPerEmployee''). 
 + 
 +The **default (unnamed)** counter starts at zero. To start it at a higher value select it with a new number: ''@#=//number//@''
 + 
 +<code> 
 +@#=5@ 
 +The following shows the number @#@, and this @#@ showed the next number.  
 +After all that comes @#@. 
 +</code> 
 + 
 +Half way the counter was initialized to //5//, for example, you should see this: 
 + 
 +<code> 
 +The following shows the number 5, and this 6 showed the next number.  
 +After all that comes 7.
 </code> </code>
  
Line 41: Line 74:
 ===== Syntax ===== ===== Syntax =====
  
-In the current version (''dokupp-0'') the following syntax is allowed:+In the current version (2013-09) the following syntax is allowed:
  
-  * Use ''@#=//number//@'' to (re)initialize the counter.+  * Use ''@#=//number//@'' to (re)initialize the default counter.  
 +    * When left out the counter starts at zero 
 +    * You can reinitialize the counter as much as you like.
   * Use ''@#@'' to invoke the counter and display its current value.   * Use ''@#@'' to invoke the counter and display its current value.
 +  * Use ''@#name@'' to select a new counter.
 +    * You can reinitialize them as much as you like as well: ''@#name=7@''.
  
-Initializing the counter (this produces no observable output by default):+ 
 +**Initializing the counter** (this produces no observable output by default):
 <code> <code>
 @#=5@  // initializes with the value 5// @#=5@  // initializes with the value 5//
 </code> </code>
  
- +**Invoking the counter**:
-Invoking the counter:+
 <code> <code>
-The following shows the number @#@, and this @#@ showed the next number. After all that comes @#@.+The following shows the number @#@, and this @#@ showed the next number. 
 +After all that comes @#@.
 </code> </code>
  
-Only one counter can exist in a page. :!: Using insertion plugins like [[doku>plugin:include]] may break the display of the counter.+====Limitations==== 
 +<del>Only one counter can exist in a page</del>Not anymore! **Rejoice**! 
 + 
 +:!: Using insertion plugins like [[plugin:include]] may break the display of the counter.
  
 ===== Development ===== ===== Development =====
  
-This plugin is currently experimental and it is in very early stage of development. Check the official demo page in order to see what do I have in store for this plugin.+Caveats, sample snapshots and a ChangeLog are provided at the official demo site
  
-Caveats, bugs and fixes, sample snapshots and a ChangeLog are provided at the official demo site. +Issues can be submitted to the source repo's tracker (following or commenting on issues requires a login).
- +
-^ Other Plugins by\\ Luis Machuca:   | [[doku>plugin:progrecss]]\\ [[doku>plugin:tooltip]]\\ [[doku>plugin:clock]]\\ [[doku>plugin:divalign2]]\\ [[doku>plugin:countdown]]\\ [[doku>plugin:noiewarning]]\\ [[doku>plugin:hide]]\\ [[doku>plugin:gil]]   |+
  
 ===== FAQ ===== ===== FAQ =====
Line 74: Line 113:
  
 No discussion yet? No discussion yet?
- 
- 
  
plugin/dokupp.1296678299.txt.gz · Last modified: 2011-02-02 21:24 by ryan.chappelle

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