DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:qc

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
plugin:qc [2015-02-26 13:37] grosseplugin:qc [2024-01-07 14:00] (current) Aleksandr
Line 6: Line 6:
 email      : dokuwiki@cosmocode.de email      : dokuwiki@cosmocode.de
 type       : render, syntax type       : render, syntax
-lastupdate : 2015-02-26 +lastupdate : 2023-12-02 
-compatible : 2009-12-25+anteaterrincewind+compatible : Frusterick MannersGreebo!Hogfather
 depends    :  depends    : 
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : quality, !experimental, gardening, statistics+tags       : quality, gardening, statistics
 downloadurl: https://github.com/cosmocode/qc/zipball/master downloadurl: https://github.com/cosmocode/qc/zipball/master
 sourcerepo : https://github.com/cosmocode/qc sourcerepo : https://github.com/cosmocode/qc
Line 17: Line 17:
 ---- ----
  
-[[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/|{{ https://www.cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
-====== Installation ======+
  
-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.+===== Installation ===== 
 + 
 +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 After installation you need to put the quality check into your template's ''main.php'' (should be somewhere above the page content): After installation you need to put the quality check into your template's ''main.php'' (should be somewhere above the page content):
Line 27: Line 28:
     //Quality Control     //Quality Control
     $qc = plugin_load('helper','qc');     $qc = plugin_load('helper','qc');
-    $qc->tpl();+    if ($qc) $qc->tpl();
 ?> ?>
 </code> </code>
  
-====== Configuration & Usage ====== +===== Configuration & Usage =====
-===== Configuration =====+
  
 +==== Configuration ====
  
-The plugin adds a options to the config manager where the look of the quality bar can be adjusted.+The plugin adds an option to the config manager where the look of the quality bar can be adjusted.
  
 You can set the color of the generated text to match your template and choose from different icon sets. You can set the color of the generated text to match your template and choose from different icon sets.
-===== Disabling Checks on a Page ===== 
  
 +==== Disabling Checks on a Page ====
  
-You can disable the quality check on a page by putting a ~~NOQC~~ macro somewhere into the page. +You can disable the quality check on a page by putting a ''%%~~NOQC~~%%'' macro somewhere into the page.
-===== Currently Implemented Checks =====+
  
 +==== Currently Implemented Checks ====
  
 The following checks are currently used to determine the structural quality: The following checks are currently used to determine the structural quality:
  
-  * Number of FIXMEs+  * Number of %%FIXMEs%%
   * No Main Headline   * No Main Headline
   * Too many Main Headlines   * Too many Main Headlines
Line 66: Line 67:
   * No Backlinks   * No Backlinks
  
-===== Admin page ====+==== Admin page ====
  
 Moderators and administrators find a quality report on the admin page. This report lists the worst 25 wiki pages known to the quality plugin with their current quality score and <nowiki>FIXME</nowiki> count. Moderators and administrators find a quality report on the admin page. This report lists the worst 25 wiki pages known to the quality plugin with their current quality score and <nowiki>FIXME</nowiki> count.
  
 +===== Development =====
  
-====== Development ======+==== Change Log ====
  
- 
-===== Change Log ===== 
 {{rss>https://github.com/cosmocode/qc/commits/master.atom date}} {{rss>https://github.com/cosmocode/qc/commits/master.atom date}}
  
-===== Known Bugs and Issues =====+==== Known Bugs and Issues ====
  
 Please report bugs and issues at: https://github.com/cosmocode/qc/issues Please report bugs and issues at: https://github.com/cosmocode/qc/issues
  
- +===== Discussion =====
-====== Discussion ======+
  
 The QC helper use a ondemande build'in image with gd. The QC helper use a ondemande build'in image with gd.
  
-HTML entities like &eacute;(é) won't be correctly encode.+HTML entities like ''&eacute;''(é) won't be correctly encode.
  
-To solve it, in the icon.php file, you can change the line 91 :+To solve it, in the ''icon.php'' file, you can change the line 91:
  
-Previous : +Previous: 
-<code php> +<code php>list($x,$y) = textbox($img,0,2,$qc->getLang('i_qcscore'),$c_text);</code> 
-  list($x,$y) = textbox($img,0,2,$qc->getLang('i_qcscore'),$c_text); + 
-</code> +Change: 
-Change : +<code php>list($x,$y) = textbox($img,0,2,html_entity_decode($qc->getLang('i_qcscore')),$c_text);</code>
-<code php> +
-  list($x,$y) = textbox($img,0,2,html_entity_decode($qc->getLang('i_qcscore')),$c_text); +
-</code>+
  
plugin/qc.1424954222.txt.gz · Last modified: 2015-02-26 13:37 by grosse

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