DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:colortag

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:colortag [2012-05-18 17:30] – [colortag Plugin] 95.24.227.143plugin:colortag [2023-04-26 18:52] (current) – screenshot Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: +description: Adds <colortag> syntax
 author     : jno  author     : jno 
 email      : jno@pisem.net  email      : jno@pisem.net 
-type       : syntx +type       : syntax 
-lastupdate : 2012-05-18 +lastupdate : 2019-03-26 
-compatible : 2010-11-07, 2011-04-22, 2012-01-25a+compatible : 2010-11-07, 2011-04-22, 2011-05-25, 2012-01-25a
 depends    :  depends    : 
 conflicts  conflicts 
Line 13: Line 13:
 tags       : tags tags       : tags
  
-downloadurl: http://jno.homeip.net/colortag.zip+downloadurl: https://github.com/jn0/colortag/zipball/master 
 +bugtracker :  
 +sourcerepo : https://github.com/jn0/colortag 
 +donationurl:  
 + 
 +screenshot_img: https://trello.com/1/cards/5b5f612eb27400430f509709/attachments/5b5f62926adf4e308f57f70b/download/colortag.png
 ---- ----
  
-Compatible: 
-  * 2010-11-07 
-  * 2011-04-22 
-  * 2011-05-25 
-  * 2012-01-25a 
 ===== Installation ===== ===== Installation =====
  
-:!: **External requirements:** This plugin requires no additional components. +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
- +
-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.+
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
  
-[[http://jno.homeip.net/dokuwiki/doku.php?id=nk082|Live demo]] +[[https://jno.undo.it/dokuwiki/doku.php?id=nk082|Live demo]]. FIXME
-====From this code:==== +
-{{http://img854.imageshack.us/img854/8112/colortaginactionsrc.png | the source}}+
  
-====one may get this picture:==== +==== From this code ==== 
-{{http://img695.imageshack.us/img695/2974/colortaginaction.png | the render}}+ 
 +<code> 
 +* <colortag char=+>brown,black,brown</colortag> 2×100Ом 
 +* <colortag>brown,black,red</colortag> 1×1кОм 
 +* <colortag>orange,orange,red</colortag> 1×3.3кОм 
 +* <colortag>brown,black,orange</colortag> 2×10кОм 
 +* <colortag>red,magenta,red</colortag> 1×2.7кОм 
 +* <colortag>yellow,magenta,brown</colortag> 1×470Ом 
 +</code> 
 + 
 +==== one may get this picture ==== 
 + 
 +{{https://trello.com/1/cards/5b5f612eb27400430f509709/attachments/5b5f62926adf4e308f57f70b/download/colortag.png?recache|the render}}
  
 ===== Syntax ===== ===== Syntax =====
  
-<**colortag**[//attributes//]>//color//[,//color//,...]</**colortag**> +''<**colortag**[//attributes//]>//TAG//[,//TAG//,%%...%%]</**colortag**>'' 
-  * //color// can be given (as for any HTML color field) by: + 
-    * **black**    --- name +  * **//TAG//** is either a //color//, or //color//'':''//char//, or //color//'':''//char//'':''//color// 
-    * **#1A2B3C** --- 6-digit hex +    * **//color//** can be given (as for any HTML color field) by: 
-    * **#1AF** --- 3-digit hex+      * **black** --- name 
 +      * **#1A2B3C** --- 6-digit hex 
 +      * **#1AF** --- 3-digit hex 
 +      * the last //color//, if any, is the //foreground// one 
 +    * **//char//** is any //good// char to show (say, ''&bull;'')
   * //attributes// are now unused.   * //attributes// are now unused.
 +
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
  
Line 52: Line 65:
 === Change Log === === Change Log ===
  
 +  * **2012-05-18**
 +    * //color//'':''//char// and //color//'':''//char//'':''//color// forms added:
 +      * ''<colortag>green:&bull;</colortag>''
 +      * ''<colortag>green:&bull;:lime</colortag>''
   * **2011-03-25**   * **2011-03-25**
     * verification of //color// value has been added     * verification of //color// value has been added
Line 67: Line 84:
   * tune up the ''style.css'' to reduce the vertical size of the resulting boxen.   * tune up the ''style.css'' to reduce the vertical size of the resulting boxen.
   * implement (via //attributes//?) an automated way of mapping some device values to respective color codes (resistors, diodes, etc).\\ Something like ''<colortag **resistor=4.7kOhm**></colortag>''.   * implement (via //attributes//?) an automated way of mapping some device values to respective color codes (resistors, diodes, etc).\\ Something like ''<colortag **resistor=4.7kOhm**></colortag>''.
 +
 ===== FAQ ===== ===== FAQ =====
  
plugin/colortag.1337355009.txt.gz · Last modified: 2012-05-18 17:30 by 95.24.227.143

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