Page [1
Author Topic: Table Forum Codes 13 replies
Chris Shaw
(Group Pro - 25)



Posts: 901
  Country:
England 
Certified: 
Old post #1 posted May 6th 2019, 14:56:27 Quote 
Hi,

I know how to use [ code ] for making table-esque formatting, but I recently saw use of [ table ] and [ td ] eg:

Chassis Engine Front wing Rear wing Underbody Sidepods Cooling Gearbox Brakes Suspension Electronics


Question - I don't have anywhere that shows how to make 2 rows in said table, how do I do it? I tried the obvious [ tr ] but nope!
Michał Poznański
(Group Amateur - 63)



Posts: 8
  Country:
Poland 
Certified: 
Like this post (1)   Dislike this post (0)
Old post #2 posted May 6th 2019, 15:32:40 Quote 
Hi,

TROW is for table row :)

Example:

[ table ]
[ trow ]
[ td ]
first
[ /td ]
[ td ]
first
[ /td ]
[ /trow ]
[ trow ]
[ td ]
second
[ /td ]
[ td ]
second
[ /td ]
[ /trow ]
[ /table ]

Result:


first

first

second

second
Marco Ferraz
(Group Amateur - 71)



Posts: 658
  Country:
Belgium 
Certified: 
Like this post (6)   Dislike this post (0)
Old post #3 posted May 6th 2019, 16:27:20 Quote 
Hey, maybe this will help you :)

/forum/ViewTopic.asp?TopicId=28619&PostId=4430992#post4430992
Chris Shaw
(Group Pro - 25)



Posts: 901
  Country:
England 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #4 posted May 6th 2019, 19:02:15 Quote 
Amazing guide! It's a shame forum tags are informally "FOBY" (ok we share them but it seems people find them by trial and error, almost like easter eggs in a game). Ideally to get people enjoying the forums more these codes should be in a link on the forum main page, or documented in the FAQ.

But hey, I found what I need! It's a shame I spent 1 year using [code ] and counting spaces when I could just be doing actual tables lol.
Jasper Coosemans1
(Group Master - 2)



Posts: 3021
  Country:
Belgium 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #5 posted May 6th 2019, 19:11:51 Quote 
Don't worry, actual tables have only been implemented like two months ago. ;)
Chris Shaw
(Group Pro - 25)



Posts: 901
  Country:
England 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #6 posted May 6th 2019, 19:14:01 Quote 
Quote ( Jasper Coosemans @ May 6th 2019,19:11:51 )

Don't worry, actual tables have only been implemented like two months ago. ;)


Why worry, I'm excited! I get to rewrite my data posting tool, now I won't be bored xD
Marco Ferraz
(Group Amateur - 71)



Posts: 658
  Country:
Belgium 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #7 posted May 6th 2019, 19:24:39 Quote 
Quote ( Chris Shaw @ May 6th 2019,19:02:15 )

It's a shame forum tags are informally "FOBY" (ok we share them but it seems people find them by trial and error, almost like easter eggs in a game). Ideally to get people enjoying the forums more these codes should be in a link on the forum main page, or documented in the FAQ.


I was actually thinking about a small button that can create the tags directly on the text area, like we have for quoting messages (maybe let people with rights to use that button), with a Help link going to Flo's post.
Mikko Heikkinen
(Group Master - 3)



Posts: 12503
  Country:
Finland 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #8 posted May 6th 2019, 19:35:59 (last edited May 6th 2019, 19:38:08 by Mikko Heikkinen) Quote 
Quote ( Chris Shaw @ May 6th 2019,19:02:15 )

But hey, I found what I need! It's a shame I spent 1 year using [code ] and counting spaces when I could just be doing actual tables lol.

Counting spaces ? for what (just trying to understand




text text2 text3
thing thing2 thing3
stuff stuff2 stuff3


That^^ is made without counting anything

It's made in notepad by just hitting Tab between columns, then copy/paste between the code tags
Marco Ferraz
(Group Amateur - 71)



Posts: 658
  Country:
Belgium 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #9 posted May 6th 2019, 19:46:19 Quote 
Quote ( Mikko Heikkinen @ May 6th 2019,19:35:59 )

It's made in notepad by just hitting Tab between columns, then copy/paste between the code tags


The problem is that the tabulation in notepad doesn't work the same way here :/
I've already tested it a few months ago, and I had to add some tabulations on my message to get the perfect alignment, when it was "already" aligned on notepad.
Mikko Heikkinen
(Group Master - 3)



Posts: 12503
  Country:
Finland 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #10 posted May 6th 2019, 19:50:31 (last edited May 6th 2019, 19:53:21 by Mikko Heikkinen) Quote 
Quote ( Marco Ferraz @ May 6th 2019,19:46:19 )

The problem is that the tabulation in notepad doesn't work the same way here :/
I've already tested it a few months ago, and I had to add some tabulations on my message to get the perfect alignment, when it was "already" aligned on notepad.


The tabulation works inside the code tags, but not outside of it.

so... for example:

with code tags:


Car part Level Wear
Chassis: 2 1 %
Engine: 2 1 %
Front wing: 2 1 %
Rear wing: 2 1 %
Underbody: 2 1 %
Sidepods: 2 1 %
Cooling: 2 1 %
Gearbox: 2 1 %
Brakes: 2 1 %
Suspension: 2 1 %
Electronics: 2 1 %



the very same without code tags:

Car part Level Wear
Chassis: 2 1 %
Engine: 2 1 %
Front wing: 2 1 %
Rear wing: 2 1 %
Underbody: 2 1 %
Sidepods: 2 1 %
Cooling: 2 1 %
Gearbox: 2 1 %
Brakes: 2 1 %
Suspension: 2 1 %
Electronics: 2 1 %

One can make all kinds of tables with a simple tabulation + code tag without the need to use that convoluted million tag table structure (or counting spaces)


ps. copy/paste works also backwards from code to pad. IF you copy the black area it should paste to notepad in alignment
Marco Ferraz
(Group Amateur - 71)



Posts: 658
  Country:
Belgium 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #11 posted May 6th 2019, 19:57:54 Quote 
Quote ( Mikko Heikkinen @ May 6th 2019,19:50:31 )

ps. copy/paste works also backwards from code to pad. IF you copy the black area it should paste to notepad in alignment


I wasn't really sure, but I tried this, just in case I could be wrong.
And this is what I get: https://cdn.discordapp.com/attachments/508663461979488257/57...

I guess it could depend about the style I'm using on Notepad, but also about the fact that pressing Tab creates spaces instead, and that could explain why Chris had to count spaces.
Chris Shaw
(Group Pro - 25)



Posts: 901
  Country:
England 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #12 posted May 6th 2019, 20:01:54 Quote 
Quote ( Mikko Heikkinen @ May 6th 2019,19:35:59 )

Counting spaces ? for what (just trying to understand


The main issue would be for tables where data can have a variable amount of digits. You have to put in spaces for padding to get everything aligned. I prefer the convoluted table approach because it's not me that makes the code, it's my parser that does it :)
Florencia Caro
(Group Pro - 18)



GPRO Crew
Posts: 17155
  Country:
Argentina 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #13 posted May 6th 2019, 20:05:36 Quote 
Quote ( Chris Shaw @ May 6th 2019,19:02:15 )

Amazing guide! It's a shame forum tags are informally "FOBY" (ok we share them but it seems people find them by trial and error, almost like easter eggs in a game). Ideally to get people enjoying the forums more these codes should be in a link on the forum main page, or documented in the FAQ.

But hey, I found what I need! It's a shame I spent 1 year using [code ] and counting spaces when I could just be doing actual tables lol.

Forum tags are no longer FOBY, all that works is listed in that guide :)

And indeed, that guide is pinned at the top of the General Forum since its release day.

As Jasper pointed out, table tag was not precisely "available" all along, it had several bugs that made it very hard to use, which needed to be fixed by Admins. So you have not missed much :D
Mikko Heikkinen
(Group Master - 3)



Posts: 12503
  Country:
Finland 
Certified: 
Like this post (0)   Dislike this post (0)
Old post #14 posted May 6th 2019, 20:39:35 (last edited May 6th 2019, 20:43:15 by Mikko Heikkinen) Quote 
Quote ( Marco Ferraz @ May 6th 2019,19:57:54 )

I wasn't really sure, but I tried this, just in case I could be wrong.
And this is what I get: https://cdn.discordapp.com/attachments/508663461979488257/57...

I guess it could depend about the style I'm using on Notepad

That would be notepad++
(instead of notepad)

It would/should work in notepad (the regular which comes with windows)

Quote ( Chris Shaw @ May 6th 2019,20:01:54 )

I prefer the convoluted table approach because it's not me that makes the code,

ok, thanks for explaining
Page [1

Reply to this topic