DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:explain

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:explain [2019-08-02 01:22] – [Very simple ODT-Plugin support] mekineerplugin:explain [2024-01-08 16:01] (current) Aleksandr
Line 19: Line 19:
  
 Just like for the acronyms you can define a file containing a table which declares terms, a short explanation and two links to a longer definition. This automatically works for all those terms in the whole wiki. Just like for the acronyms you can define a file containing a table which declares terms, a short explanation and two links to a longer definition. This automatically works for all those terms in the whole wiki.
 +
 +[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ https://www.cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
  
 ===== Download and Installation ===== ===== Download and Installation =====
-[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ http://cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]] 
  
 Search and install the plugin using the [[plugin:extension|Extension Manager]]. 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.
Line 85: Line 86:
 Edward Barker Edward Barker
  
-==== Edit the conf/explain.conf file as if regular Dokuwiki page ====+==== Edit the conf/explain.conf File as a Dokuwiki Page via Symlink ====
  
-Base on the style of plugins, I have changed the CSS to plugins/explain/style.css as below: +The file can be [[https://www.namecheap.com/support/knowledgebase/article.aspx/9561/29/how-to-create-a-symbolic-link-in-cpanel |symlinked]] / soft linked to a page and edited via dokuwiki.  The same can be done for the hints of the standard acronyms.conf editing. 
-<code css> + 
-  div.dokuwiki a.explain { +The TAB character can't be used for editing within the browser, as it just skips to the next field.  The solution is to change the delimiter from a TAB to something else.\\ 
-    color: __black__; +Thanks to https://www.fiverr.com/dvdias\\ 
-    border-bottom: 1px dotted __black__; +Instead of the CSV code below, I chose to use 4 whitespace characters as the delimiter, by changing line 53 from:\\ 
-    padding-top: 0; +    $parts = explode("\t", $line); 
-  } +to: 
-   +    $parts = explode("    ", $line);
-  div.dokuwiki a.explain:hover { +
-    background-color: __light__; +
-  } +
-</code> +
-I have also changed the code a little bit to use comma separated instead of TAB separated s.t. the file can be [[https://www.namecheap.com/support/knowledgebase/article.aspx/9561/29/how-to-create-a-symbolic-link-in-cpanel |symlinked]] / soft linked to a page and edited via dokuwiki.  The same can be done for the hints of the standard acronyms.conf editing.+
  
 +Which is a lot easier than the CSV code below.  Maybe needs deleting as it is for a much older version of explain plugin?  I can't say I understand the purpose.
 <code php> <code php>
 <?php <?php
Line 221: Line 218:
 </code> </code>
  
 +Base on the style of plugins, I have changed the CSS to plugins/explain/style.css as below:
 +<code css>
 +  div.dokuwiki a.explain {
 +    color: __black__;
 +    border-bottom: 1px dotted __black__;
 +    padding-top: 0;
 +  }
 +  
 +  div.dokuwiki a.explain:hover {
 +    background-color: __light__;
 +  }
 +</code>
  
-Ken Cheung 2007-04-30+Ken Cheung 2007-04-30\\ 
 +Marcos Reyes 2019-08-01
  
 ==== regular expressions ==== ==== regular expressions ====
Line 363: Line 373:
 -- Alois Hockenschlohe, Germany -- Alois Hockenschlohe, Germany
  
-Feature request: provide a configuration option to choose the delimiter (instead of tab-only)and to allow you to set dokuwiki page as the configuration file AlternativelyI'll create a symlink and just need someone with PHP skillz to update the above code to use a different syntax How about the definition list plugin syntax?  Wouldn'that be super special?+==== Ignore this Word ==== 
 + 
 +I love the pluginthank you! One question, or maybe it'request... Some terms may be used in the 'English' sense of the wordwhen it is the second instance of the term it doesn't matter but when it is the first it will be highlighted. This is expected behaviour but incorrect in terms of this particular use caseIs there a way to 'mark' a term as 'ignore this' so it isn'highlighted and the next instance of the term is? 
 + 
 +[[user>lizat|Liz T]] //2020-12-03// 
 + 
  
--- M R, mekineer.com 
plugin/explain.1564701732.txt.gz · Last modified: 2019-08-02 01:22 by mekineer

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