jase
 admin, 2144 posts
 Cogito, ergo procuro.
 Carpe stultus!
Thu 2 Apr 2009
at 17:37
Easy Tables and Grids.
How would people like...
    [smarttable]
    +---------------------------------+
    { Heading }{ heading2 }{ heading3 }
    [         ][          ][ boo      ]
    [ apple   ][ banana   ][ carrot   ]
    +---------------------------------+
    [/smarttable]


And even more simply (but ugly);
    [smarttable]
    +-+
    {Heading}{heading2}{heading3}
    [][][boo]
    [apple][banana][carrot]
    +-+
    [/smarttable]


To turn out looking like this?
    Headingheading2heading3
    boo
    applebananacarrot


You wouldn't be able to get all the left/right alignment that the full blown table stuff can do, but it might be of help to people who want a nice HTML table but don't know all the commands, and find it looking rather messy.


Next, grids.

After sleep, and probably some real work.

This message was last edited by the user at 16:10, Mon 15 Apr 2013.

spoonk
 member, 68 posts
 Don't Feed the Trolls
Thu 2 Apr 2009
at 17:51
Re: Easy Tables and Grids.
I could see my self using the top one more often as I might want to make one table field longer then the next.  IF it would be possible that is.

Your Example
[smarttable]
+---------------------------------+
{ Heading }{ heading2 }{ heading3 }
[         ][          ][ boo      ]
[ apple   ][ banana   ][ carrot   ]
+---------------------------------+
[/smarttable]



Mine
[smarttable]
+---------------------------------+
{ Heading }{ heading2 }{ heading3 }
[                     ][ boo      ]
[ apple   ][ banana   ][ carrot   ]
+---------------------------------+
[/smarttable]

The grids it self sounds great, if you are talking like a Map Grid or something like that.  Great for sowing your players what the battle field looks like for better strategic maneuvers and or even use of spells.  Would be so much better then the text based grids you see some GM's use.  Plus would be so much faster then making one from scratch.  Like this example I have from on of the games I am in.  Would be nice if you would just click a place on the grid and it adds a solid block.  Then add a character representation some how.  Okay this is now getting complicated but the idea is still sound I think.


::::::::::::::::::::::::********************************
::::::::::::::::::::::::**ta.......a........../-----\.**
::::::::::::::::::::::::**.s..................|bbbbb|.**
::::::::::::::::::::::::**....................|bbbbb|.**
::::::::::::::::::::::::**....................|bbG..|.**
::::::::::::::::::::::::**....................|bb...|.**
::::::::::::::::::::::::**..............N.....|bb.../.**
::::::::::::::::::::::::**................hJ..\____/..**
::::::::::::::::::::::::**.................h..........**
::::::::::::::::::::::::**............................**
::::::::::::::::::::::::**............................**
::::::::::::::::::::::::**..........................a.**
**************************.......***********************
**************************.......*******
**************************.......*******
**************************.......*******
**************************.......*******
**************************.......*******
**************************.......*******

This message was last edited by the user at 18:02, Thu 02 Apr 2009.

nauthiz
 member, 73 posts
Thu 2 Apr 2009
at 17:55
Re: Easy Tables and Grids.
As an additional way of doing tables, I would't mind it.

Though for those of us who can fumble around with the current code just well enough, it seems like it might be a bit of a different take which would lead to more work if it was a One or the Other sort of choice.
Utsukushi
 member, 630 posts
 I should really stay out
 of this, I know...but...
Thu 2 Apr 2009
at 17:55
Re: Easy Tables and Grids.
The easier tables would be pretty helpful, I think.  I'm assuming that, as with a lot of the other things you've talked about implementing, it would be an addition, and not a replacement, to being able to do them the harder-but-more-customizable way?
bigbadron
 moderator, 10195 posts
 He's big, he's bad,
 but mostly he's Ron.
Thu 2 Apr 2009
at 17:57
Re: Easy Tables and Grids.
Those tables look considerably easier to work with than all that <tr><td>...</td><td>...</td></tr> stuff.

The first example, in particular, shows you exactly how it will all be laid out, so you can instantly see if something isn't quite right.

I think it would certainly make tables in character sheets, for example, more practical.
jase
 admin, 2145 posts
 Cogito, ergo procuro.
 Carpe stultus!
Thu 2 Apr 2009
at 18:30
Re: Easy Tables and Grids.
My two examples used the word "AND".  Both would do the exact same thing, my test code already converts both (and anything inbetween) into the final result.

It's not mystically matching up ]'s (etc) within the table with ones above and below it, it's just turning ] into </td> etc etc (which is why the amount of spacing does not matter, ergo why both examples return the same output).

Not sure about getting it to span two cells like in your example, spoonk.  I'd probably have to use something like [2 to span 2 cells.  I was actually going to allow people to use the character immediately after the cell opening to specify the horizontal alignment, but if cell spanning is more popular then I could do that instead.

(Alignment would have been done via the > < and ^ symbols, i.e. [>right] [<not right] [^centre/center/middle].)


For grids... I'm not sure how to get the user to draw them yet (ideas welcome), but it'd turn out something like;
AAABACADAEAFAGAHAIAJAKALAMAN
1~~~~~~~~~~~~~~
2~
3~
4~~
5~~
6~
7~
8~
9~~
10~~
11~~
12~~
13~~
14~~
15~~zF

... They're all not exactly square because this is a rough example.


Hmm, I was doing that bed thing.  2:30am, oops.
spoonk
 member, 69 posts
 Don't Feed the Trolls
Thu 2 Apr 2009
at 18:52
Re: Easy Tables and Grids.
Hahaha, I know how that goes Jase.  I wasn't looking for a response so soon because you did say you were going to bed.  I took and as meaning two different system so that was my bad.

The idea behind the adjustable width of cells is so that a more uniform and or logical lay outs for creating Character Sheets.  I am not a fan of text based character sheets and use third party character sheet websites.  As I prefer to see a character sheet I my self end up making two character sheets.  One for the GM on how he prefers the text based system and my more traditional Table Top edition.  I'm sure some one right now could even make such a code but with the level of the complexity it is now to create one the non coders wouldn't even want to touch it with a 50 foot pole.  I don't even know the system but if I had the time and motivation I could learn the system.  At the moment I lack both and feel that your first example would be best to visually see what fields need to be changed and where.  Perhaps even adding the code to the heaven section as a uniform for the RPOL community.

As this is a different discussion from the Character sheet with Forms link to a message in this forum discussion, I am keeping the issues separate.  Even with out the form ability, being able to visually see what a table should look like will perhaps make them more acceptible for potentil players of using the system.
Yoss
 member, 926 posts
 A Serious Waste of Time
 The largest game on RPOL
Thu 2 Apr 2009
at 20:22
Re: Easy Tables and Grids.
Cool idea jase.  Question though, why do you need the "+-----+" section?  From what I can tell you're just creating a lookup table to convert brackets to html tags something like what I've listed below.  I can't figure out what the plus-minus-plus would convert to in the html.


HTML           SmartTable
<table><tr>    [smarttable]
</tr></table>  [/smarttable]
</tr><tr>      \n (newline character)
<th>           {
</th>          }
<td>           [
</td>          ]


Did I guess right?  As a suggestion, you might consider shortening "smarttable" to something like "st" or "stable" or "txtable" in order to save typing.
Whimper3
 member, 16 posts
Thu 2 Apr 2009
at 22:18
Re: Easy Tables and Grids.
Wow, I love it.  I use plain ascii tables and grids all the time because it's easier to see what I'm going to get.  With SmartTables like the one in your example, I'd know right away what my table would look like.