* Progressbar plugin?
[ikiwiki] / doc / todo / progressbar_plugin.mdwn
1 I would like to add next plugin to Ikiwiki. It's `progressbar`
2 (or simply `progress`, I'm not sure what plugin name better is). I know that
3 [DokuWiki](http://wiki.splitbrain.org/plugin:progressbar) has similar plugin,
4 so I think it can be useful also for Ikiwiki users.
5
6 Here is proposition of the plugin syntax:
7
8     \[[!progress done=50]]
9
10 A here is its HTML result:
11
12     <div class="progress">
13       <div class="progress-done" style="width: 50%">50%</div>
14     </div>
15
16 Of course, `done` argument is integer from 0 to 100. 
17
18 Default CSS styles for the plugin can be like below:
19
20     div.progress {
21             border: 1px solid #ddd;
22             /* border: 2px solid #ddd; */
23             width: 200px;
24             background: #fff;
25             padding: 2px;
26             /* padding: 0px; */
27             border: 2px solid #aaa;
28             background: #eee;
29     }
30     div.progress-done {
31             height: 14px;
32             background: #ff6600;
33             font-size: 12px;
34             text-align: center;
35             vertical-align: middle;
36     }
37
38 You can use alternative, commented CSS code for `div.progress` if you dislike
39 padding around done strip.
40
41 Any comments? --[[PaweÅ‚|ptecza]]