jase
 admin, 3075 posts
 Cogito, ergo procuro.
 Carpe stultus!
Tue 30 Apr 2013
at 10:42
Re: Easy Tables and Grids.
In reply to matthewfenn (msg # 60):

Nope, doesn't meet the basic requirements.

Something similar will trigger the "easy grids".
Skald
 moderator, 414 posts
 Whatever it is,
 I'm against it
Tue 30 Apr 2013
at 12:52
Re: Easy Tables and Grids.
You're absolutely right jase - none of my character sheets have the pipe as the first character, so all good.

Definite +1 from me, then. :>

Out of interest ... would a non-breaking space before a pipe at the start of a line stop the easy table from being triggered ?  If so, that'd be an easy out for anyone who wanted it using the ISO code  
jase
 admin, 3076 posts
 Cogito, ergo procuro.
 Carpe stultus!
Tue 30 Apr 2013
at 13:15
Re: Easy Tables and Grids.
In reply to Skald (msg # 62):

  is stored and transmitted to the client as that (it's the browser that then makes it a space), so yes that'll fall into the "anything infront of the pipe" category.  (c;

<i>|</i> will also do it.

So will &#124; (that's the pipe symbol!).
rogar308
 member, 327 posts
 Gaming is good!
 Got RPOL in my soul
Tue 30 Apr 2013
at 13:33
Re: Easy Tables and Grids.
+1 I can't help myself. I'm really excited about this one. Honestly, I probably won't go and retro fit all the like 50+ PC/NPC's we have but I'll almost certainly come up with a good template for implementation going forward.
jait
 member, 269 posts
Wed 1 May 2013
at 00:35
Re: Easy Tables and Grids.
+1.

There's far more flexibility there than I'd expect.
jase
 admin, 3077 posts
 Cogito, ergo procuro.
 Carpe stultus!
Fri 3 May 2013
at 05:11
Re: Easy Tables and Grids.
I've updated the site so that the tables and grids will activate in this forum (only, 'cos I'm tricky like that), so you can now see real-world examples.

Feel free to compose and preview your own examples, but please don't spam the thread (and thus forum) with tests.  You can visit http://beta.rpol.net if you feel the need to post your tests.

Questions and idiosyncrasies which need examples are, of course, welcome.

If you check out some of the previous posts, they'll now render for real.

Grids now also work (this forum only), which includes matthewfenn's example/question in msg #60.  (c;

Small (size 1) grid:
A 
 B

Default (size 2) grid:
 12
Ax 
B x

Largest (size 5) grid:
A 
 B

We also now have a table width setting:
AWide
Table

Quote me to see the source.
Skald
 moderator, 415 posts
 Whatever it is,
 I'm against it
Fri 3 May 2013
at 06:53
Re: Easy Tables and Grids.
Awesome ! :>

Now ... <smiles nervously>

Can we have a Grid (or EasyGrid) link beneath the compose message screen (suggest right next to the table link) to do all the hard work for the simplest grids/tables ?  Click to throw to pop up with the following inputs:

Rows    |2|  |x| Bold first row
Columns |2|  |x| Bold first column

Size    |2|v|


User enters no. of rows and columns in textbox (1 is allowable, but default to 2).If Bold first row or column checkboxes ticked then just add the = in each top and/or left grid cell ready for user to add text. Size dropdown list values 1 to 5 only.  Grid of required size appears as if by magic for user to type the text into the relevant cells.

Too easy !  Well, at least for our resident genius Admin ! ;>

Brought to you by the Grand High Poobah of Feature Creep !!!! <grrrins>

This message was last edited by the user at 06:55, Fri 03 May 2013.

jase
 admin, 3078 posts
 Cogito, ergo procuro.
 Carpe stultus!
Fri 3 May 2013
at 10:01
Re: Easy Tables and Grids.
In reply to Skald (msg # 67):

Javascript popups can only prompt for one thing, which is why the multiple recipient window is a window.  I don't think the speed of that is appropriate for this use.

So we'd need some kind of modal (read as: complicated) window.  We could use jQuery to do, but RPoL currently doesn't use that... and then where into a whole lot of stuff to do one thing.  (c;
Skald
 moderator, 416 posts
 Whatever it is,
 I'm against it
Fri 3 May 2013
at 12:39
Re: Easy Tables and Grids.
Modal window it is !  <grins>  No, seriously, fair enough - feature creep too far.  I can understand that's a lot more work and probably not appropriate.

Personally, I'd be REALLY happy typing:

3x4@2

into a single input box for a 3 row, 4 column, size 2 table (@ argument option, default to size 2) ?

... but I can understand if that's getting a bit obscure for anyone not old enough to remember the arcane switches from DOS (and for anyone out there who has to ask what DOS was, you're too young) !  ;>
rogar308
 member, 330 posts
 Gaming is good!
 Got RPOL in my soul
Fri 3 May 2013
at 13:45
Re: Easy Tables and Grids.
I'd suggest to make a table template and just copy and hack that. Granted it's not quite as nice but it gets the job done fairly quickly.
matthewfenn
 member, 304 posts
 www.nj-pbem.com
 Northern Journey PBeM DM
Fri 3 May 2013
at 16:21
Re: Easy Tables and Grids.
Is it possible to have more than one row of data in an individual cell?

Similar to


This data
is all
in one cell

As is
this data


Also, is it possible to set the width of a column to a % of the whole table?
matthewfenn
 member, 305 posts
 www.nj-pbem.com
 Northern Journey PBeM DM
Fri 3 May 2013
at 16:56
Re: Easy Tables and Grids.
Thought I'd revisit my post from msg#40 and see if these new tables would make it easier and smarter:

This was made using the <table><tr><td> structure etc:
LIFE: 57
CRMNLSTGRANT
C.HAND: 2  Grant Hand 4
C.DECK: 39 (60 card deck) Grant DECK 39 (60 card deck)
BATTLEFIELD:
Land
(-)Piranha Marsh (B)
(-)Swamp (B)
(-)Crypt of Agadeem (B)(see link)
 [http://magiccards.info/zen/en/212.html]
Creatures
War-spike changeling (3/3,changeling)(R:1st strike)(runed halo)
[http://magiccards.info/mt/en/112.html]
Child of Night (2/1, lifelink)
 [http://magiccards.info/m10/en/88.html]
Anowon, the Ruin Sage (4/3)on our upkeep, each player sacs a nonvampire)
 [http://magiccards.info/wwk/en/49.html]
 
Vampire Nighthawk (10/11, flying,deathtouch,lifelink)[8](runed halo)[http://magiccards.info/zen/en/116.html] (blade of bloodchief)
t-Kalitas, Bloodchief of Ghet (5/5)(BBB,tap: destroy creature, see link)
 [http://magiccards.info/zen/en/99.html]
Vampire Aristocrat (6/6)(sac creature get +2/+2 for turn)[4](blade of bloodchief)
 [http://magiccards.info/m10/en/117.html]
Black Vampire Creature Token (2/4)
Black Vampire Creature Token (1/1)


And this was made with the pipes:
LIFE: 57
CRMNLSTGRANT
C.HAND: 2Grant Hand 4
C.DECK: 39 (60 card deck)Grant DECK 39 (60 card deck)
BATTLEFIELD:
Land
(-)Piranha Marsh (B)(-)Crypt of Agadeem (B)(see link)  [http://magiccards.info/zen/en/212.html]
(-)Swamp (B)
Creatures
War-spike changeling (3/3,changeling)(R:1st strike)(runed halo) [http://magiccards.info/mt/en/112.html]Vampire Nighthawk (10/11, flying,deathtouch,lifelink)[8](runed halo)[http://magiccards.info/zen/en/116.html] (blade of bloodchief)
Child of Night (2/1, lifelink) [http://magiccards.info/m10/en/88.html]t-Kalitas, Bloodchief of Ghet (5/5)(BBB,tap: destroy creature, see link) [http://magiccards.info/zen/en/99.html]
Anowon, the Ruin Sage (4/3)  on our upkeep, each player sacs a nonvampire) [http://magiccards.info/wwk/en/49.html]Vampire Aristocrat (6/6)(sac creature get +2/+2 for turn)[4](blade of bloodchief) [http://magiccards.info/m10/en/117.html]
Black Vampire Creature Token (2/4)
Black Vampire Creature Token (1/1)

It certainly makes for a neater table - the columns are all in line.  Thank you Jase - an excellent improvement...

As a possible bit of scope creep, what I really want to be able to do is have carriage returns within a cell without forcing a new row.  For example, the Child of Night cell above should have the hyperlink showing on the 2nd line rather than on the same line.

Also, as mentioned in my previous post above, it would be great if it were possible to fix the % width of a column as well - in the example above, it didn't matter, because both sides of the table had lots of data in them, so it made them equal, but if the data were imbalanced, then the table becomes unbalanced as well:

TestTable
Small columnA wide column with lots of data in it that will wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap

jmkool
 member, 251 posts
 aka'd as The Kool
Fri 3 May 2013
at 21:38
Re: Easy Tables and Grids.
I say not to get too picky about extra flexibility with the pipes.  We do, after all, have the detailed <table> mechanics if we need that.  We aren't looking to replace it, merely provide a qick shortcut for simple tables.
matthewfenn
 member, 306 posts
 www.nj-pbem.com
 Northern Journey PBeM DM
Sat 4 May 2013
at 10:08
Re: Easy Tables and Grids.
I'm not being picky.  The pipes make better tables in general I think.  The added feature I'd like to be able to see overall is the ability to force a column width...
jase
 admin, 3080 posts
 Cogito, ergo procuro.
 Carpe stultus!
Sat 4 May 2013
at 11:01
Re: Easy Tables and Grids.
matthewfenn:
As a possible bit of scope creep, what I really want to be able to do is have carriage returns within a cell without forcing a new row.

Use "\n".
Greybeard
 member, 4 posts
Sat 4 May 2013
at 14:20
Re: Easy Tables and Grids.
Sorry if this has already been covered, but when can we expect to see these changes implemented in the rest of the forums (I'm actually interested in using the tables on the character sheets).

Thanks for all the hard work you put into the site. I think it's awesome.

-Greybeard
jase
 admin, 3082 posts
 Cogito, ergo procuro.
 Carpe stultus!
Mon 6 May 2013
at 05:18
Re: Easy Tables and Grids.
In reply to Greybeard (msg # 76):

The reason I posted the proposed layout here was to make sure it worked, didn't interfere with other layouts, and provided the flexibility and capabilities that were desired.

Though I'm happy to increase the capabilities of it at a later time, I don't want to find myself in a situation where the framework we've decided upon limits our options.  For example, the fact we don't have the entire table wrapped in some [smarttable] tag means that the detection routine relies solely upon the pipe symbol at the start of each line... which means that each line is a new table row.

I think I digress ... It'll be rolled out once I'm satisfied those who'll use it are satisfied!  (c;
jmkool
 member, 252 posts
 aka'd as The Kool
Mon 6 May 2013
at 05:28
Re: Easy Tables and Grids.
I've discovered that you can use some pretty short shorthand for the easy grid, so that's something I'll be using!  On the tables, though, I find that you have to put the cell size notation (rows.columns) after the header or text alignment notation.  Just thought I'd mention.

And, as a matter of fact, I will second the request for fixing the width of a single cell.  Perhaps a way to fix a cell at a certain % of the table's width?  Notation could be triggered with % followed by a number?  Don't know how this would conflict with cell size notation.
jmkool
 member, 253 posts
 aka'd as The Kool
Mon 6 May 2013
at 05:30
Re: Easy Tables and Grids.
I will follow up with a second possibility.  Perhaps a means of forcing all columns to equal width would be sufficient?  Different widths can then be achieved by spanning multiple columns.
jase
 admin, 3084 posts
 Cogito, ergo procuro.
 Carpe stultus!
Mon 6 May 2013
at 05:30
Re: Easy Tables and Grids.
In reply to jmkool (msg # 78):

Come up with a proposal.
jmkool
 member, 254 posts
 aka'd as The Kool
Mon 6 May 2013
at 05:39
Re: Easy Tables and Grids.
How about this:

Right after the closing pipe on the first row, before the table width notation, an = sign forces all columns to be equal width.  So the first row would be something like:

|= woo, header cell! | Other cell! |=40%

Will that do?
jase
 admin, 3085 posts
 Cogito, ergo procuro.
 Carpe stultus!
Mon 6 May 2013
at 05:56
Re: Easy Tables and Grids.
In reply to jmkool (msg # 81):

Column widths have to add up to 100%, so no.  Even if you used 50%, there's no number that will work for tables with 3, 6, 7, 8 etc columns.

This also limits it so the columns have to be the same width.
jmkool
 member, 255 posts
 aka'd as The Kool
Mon 6 May 2013
at 06:05
Re: Easy Tables and Grids.
My bad, the idea was that the = notation forced all the columns to be the same width (finding whatever percentage works) while the 40% was to indicate the total width of the table (a function that already exists, I believe).

As I mentioned above in a post, the 'same width' problem can be solved (at least I intend) by making certain cells span multiple columns, making a column twice (or more) as wide as the others,

This message was last edited by the user at 06:07, Mon 06 May 2013.

jase
 admin, 3086 posts
 Cogito, ergo procuro.
 Carpe stultus!
Mon 6 May 2013
at 06:38
Re: Easy Tables and Grids.
Simple, but are equal column lengths (or multiples thereof with spanning) really what people are after?
matthewfenn
 member, 308 posts
 www.nj-pbem.com
 Northern Journey PBeM DM
Mon 6 May 2013
at 07:07
Re: Easy Tables and Grids.
jase:
matthewfenn:
As a possible bit of scope creep, what I really want to be able to do is have carriage returns within a cell without forcing a new row.

Use "\n".
Ah!  That does the trick!  Thanks!
Jase:
Come up with a proposal.
Hmmm...

Just to refresh, this is the syntax proposed so far:
  • "=" denotes a header cell (TH)
  • "^" means centre aligned
  • ">" means right aligned
  • "<" means left aligned
  • A number means a columns span of that many columns.
  • An additional full stop plus a number after the above means row span.
How about a new symbol - say % followed by a number - for example:
|%50 First wide column |%25 Shorter 2nd column | shorter 3rd column |50%

That would give a table that was 50% of the screen width wide, with the first column 40% of the screen width and the second and third 20% each.  Note, last column doesn't need a number because it would be whatever was left to add up to 100% of the table width.  I would also suggest having the ability to set column widths be exclusive of spanning columns at the same time.

This message was last edited by the user at 07:09, Mon 06 May 2013.