<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>progress</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="../../style.css" type="text/css" /> <link rel="stylesheet" href="../../local.css" type="text/css" /> <meta name="robots" content="noindex, follow" /> </head> <body> <div class="page"> <div class="pageheader"> <div class="header"> <span> <span class="parentlinks"> <a href="../../index.html">ikiwiki</a>/ <a href="../../ikiwiki.html">ikiwiki</a>/ <a href="../directive.html">directive</a>/ </span> <span class="title"> progress </span> </span> </div> </div> <div id="pagebody"> <div id="content" role="main"> <p>The <code>progress</code> directive is supplied by the <a href="http://ikiwiki.info/plugins/progress/">progress</a> plugin.</p> <p>This directive generates a progress bar.</p> <p>There are two possible parameter sets. The first is a single parameter "percent" which holds a percentage figure of how complete the progress bar is.</p> <p>The second possible set of parameters is a pair of <a href="../pagespec.html">PageSpec</a>s, <code>totalpages</code> and <code>donepages</code>. The directive counts the number of pages in each pagespec and shows the percentage of the total pages that are done.</p> <p>For example, to show what percentage of pages have discussion pages:</p> <pre><code>[[!progress totalpages="* and !*/Discussion" donepages="*/Discussion"]] </code></pre> <p>Rendering:</p> <div class="progress"> <div class="progress-done" style="width: 0%">0%</div> </div> </div> </div> <div id="footer" class="pagefooter" role="contentinfo"> <div id="pageinfo"> <div id="backlinks"> Links: <a href="../../plugins/progress.html">plugins/progress</a> </div> <div class="pagedate"> Last edited <span class="date">Tue Feb 26 23:01:54 2019</span> <!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> --> </div> </div> <!-- from ikiwiki --> </div> </div> </body> </html>