Automatic row counting in wiki tables

30 views
Skip to first unread message

whatever

unread,
Jun 21, 2012, 9:48:48 AM6/21/12
to TiddlyWiki
Hi!

As I mentioned in a previous post, I have tables like this:
|||||
|1||||
|2||||
|3||||
|4||||

Is it possible to make the counting automatic, like in numbered lists
using #? I'd like to avoid having to manually renumber the rows if I
insert a row. The numbers are unfortunately mandatory.

w

Tobias Beer

unread,
Jun 22, 2012, 3:06:06 AM6/22/12
to tiddl...@googlegroups.com
Hi whatever,

You say those numbers are mandatory but that you also want to rearrange them by inserting new rows, so that their not fix. Would you be so kind to tell us about the actual Use Case that requires such a mandatory, yet changeable numbering pattern?

Cheers, Tobias.

whatever

unread,
Jun 22, 2012, 3:47:16 AM6/22/12
to TiddlyWiki
Hi, Tobias!

Basically, I have crew members. Each crew member has a table listing
their past positions/ranks/posts. I've cobbled up together a plugin
(1) that can get the crew for a particular ship. I'm using the
FatSlicePlugin (2) to parse the table as multi-value slices. The
FatSlicePlugin requires a row name. I use the numbers, so I can simply
use [j] for row name in a for-loop. Unfortunately, this means that if
I add an entry to a crew member retroactively, I need to manually
renumber the table. It's annoying and it's currently not that big of a
deal, but I can think of some cases where it would be time consuming.

(1) http://crewlist.tiddlyspot.com/
(2) http://svn.tiddlywiki.org/Trunk/contributors/PaulDowney/plugins/FatSlicePlugin/

w
Reply all
Reply to author
Forward
0 new messages