DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:tablemath

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:tablemath [2017-01-27 21:41] 78.41.119.98plugin:tablemath [2023-12-16 23:21] (current) – new download url Aleksandr
Line 1: Line 1:
-====== tablemath plugin ======+====== tablemath Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: adds calculated column to built-in table syntax +description: Adds calculated column to built-in table syntax 
-author     : James GuanFeng Lin 林灌峰+author     : James GuanFeng Lin
 email      : guanfenglin@gmail.com email      : guanfenglin@gmail.com
 type       : syntax type       : syntax
-lastupdate : 2009-08-23 +lastupdate : 2009-08-24 
-compatible : +compatible : !Igor
 depends    :  depends    : 
 conflicts  conflicts 
 similar    : tablecalc similar    : tablecalc
 tags       : math, tables calculation tags       : math, tables calculation
----- 
  
-<note info>There are significant changes to the previous version, please look at the usage section for new syntax</note>+downloadurl: https://trello.com/1/cards/5aff17536c98afb44f811799/attachments/5aff177a3ab9aa6497a8d8a3/download/tablemath.zip 
 +bugtracker :  
 +sourcerepo :  
 +donationurl:  
 + 
 +screenshot_img:  
 +----
  
-====Donation====+> //There are significant changes to the previous version, please look at the [[#usage]] section for new syntax.//
  
-{{http://widget.chipin.com/widget/id/d1f89456c806f24a?.swf?250x250 }} 
 ===== Installation ===== ===== Installation =====
  
-  - create a foler named "tablemath" in the plugin folder+  - create a folder named "tablemath" in the plugin folder
   - create 2 files named "syntax.php" and "script.js" in the in tablemath folder, copy the file content below into those 2 files   - create 2 files named "syntax.php" and "script.js" in the in tablemath folder, copy the file content below into those 2 files
  
 <code php syntax.php> <code php syntax.php>
 <?php <?php
-// must be run within Dokuwiki+// must be run within DokuWiki
 if(!defined('DOKU_INC')) die(); if(!defined('DOKU_INC')) die();
  
Line 45: Line 49:
                 'author' => 'James GuanFeng Lin',                 'author' => 'James GuanFeng Lin',
                 'email'  => 'guanfenglin@gmail.com',                 'email'  => 'guanfenglin@gmail.com',
-                'date'   => '24-08-09',+                'date'   => '2009-08-24',
                 'name'   => 'Table Math Plugin',                 'name'   => 'Table Math Plugin',
                 'desc'   => 'Enables calculated columns in built in table syntax',                 'desc'   => 'Enables calculated columns in built in table syntax',
-                'url'    => '',+                'url'    => 'https://www.dokuwiki.org/plugin:tablemath',
                 );                 );
     }     }
Line 89: Line 93:
  
 } }
-?> 
 </code> </code>
  
Line 167: Line 170:
  
 ===== Usage ===== ===== Usage =====
-put the syntax into the desired column at the last row of the table.+ 
 +Put the syntax into the desired column at the last row of the table.
  
 <code> <code>
Line 177: Line 181:
 |avg|calculate the average value of defined set| |avg|calculate the average value of defined set|
  
-Range set eg.1,1:2,2+Range set e.g. ''1,1:2,2''
  
 defines the range in table you want your calculation method should apply to defines the range in table you want your calculation method should apply to
Line 184: Line 188:
 | 0,2  | 1,2  | 2,2  | | 0,2  | 1,2  | 2,2  |
  
-====Example====+==== Example ==== 
 <code> <code>
-^header1^header2^header3^Average| +^ header1 ^ header2 ^ header3 ^ Average ^ 
-|A|1|2|~~=avg(1,1:2,1)~~| +| A                    ~~=avg(1,1:2,1)~~  
-|B|2|3|~~=avg(1,2:2,2)~~| +| B                    ~~=avg(1,2:2,2)~~  
-|C|3|4|~~=avg(1,3:2,3)~~| +| C                    ~~=avg(1,3:2,3)~~  
-|Total|~~=sum(1,1:1,3)~~|~~=sum(2,1:2,3)~~|~~=sum(1,1:2,3)~~|+| Total    ~~=sum(1,1:1,3)~~   ~~=sum(2,1:2,3)~~   ~~=sum(1,1:2,3)~~  |
 </code> </code>
- 
- 
  
 ===== Limitations ===== ===== Limitations =====
-  * Calculated column referencing to another calculated column will give incorrect values+ 
 +  * Calculated column referencing to another calculated column will give incorrect values.
  
 ===== Feedback ===== ===== Feedback =====
  
-Please check if the calculations work with decimal points eg. 10.2+1.5+Please check if the calculations work with decimal points e.g. ''10.2+1.5''
 /alwin kumar Thu Mar 18 2010/ /alwin kumar Thu Mar 18 2010/
plugin/tablemath.1485549719.txt.gz · Last modified: 2017-01-27 21:41 by 78.41.119.98

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