Página [1
Autor Tema: Table Forum Codes 13 respuestas
Chris Shaw
(Grupo Pro - 25)



Mensajes: 891
  País:
Inglaterra 
Certificado: 
Mensaje viejo #1 Publicado el 6-May-2019, 14:56:27 Citar 
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
(Grupo Amateur - 63)



Mensajes: 8
  País:
Polonia 
Certificado: 
Me gusta este mensaje (1)   No me gusta este mensaje (0)
Mensaje viejo #2 Publicado el 6-May-2019, 15:32:40 Citar 
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
(Grupo Amateur - 71)



Mensajes: 658
  País:
Bélgica 
Certificado: 
Me gusta este mensaje (6)   No me gusta este mensaje (0)
Mensaje viejo #3 Publicado el 6-May-2019, 16:27:20 Citar 
Hey, maybe this will help you :)

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



Mensajes: 891
  País:
Inglaterra 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #4 Publicado el 6-May-2019, 19:02:15 Citar 
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
(Grupo Master - 2)



Mensajes: 3021
  País:
Bélgica 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #5 Publicado el 6-May-2019, 19:11:51 Citar 
Don't worry, actual tables have only been implemented like two months ago. ;)
Chris Shaw
(Grupo Pro - 25)



Mensajes: 891
  País:
Inglaterra 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #6 Publicado el 6-May-2019, 19:14:01 Citar 
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
(Grupo Amateur - 71)



Mensajes: 658
  País:
Bélgica 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #7 Publicado el 6-May-2019, 19:24:39 Citar 
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
(Grupo Master - 3)



Mensajes: 12503
  País:
Finlandia 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #8 Publicado el 6-May-2019, 19:35:59 (última edición el 6-May-2019, 19:38:08 por Mikko Heikkinen) Citar 
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
(Grupo Amateur - 71)



Mensajes: 658
  País:
Bélgica 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #9 Publicado el 6-May-2019, 19:46:19 Citar 
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
(Grupo Master - 3)



Mensajes: 12503
  País:
Finlandia 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #10 Publicado el 6-May-2019, 19:50:31 (última edición el 6-May-2019, 19:53:21 por Mikko Heikkinen) Citar 
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
(Grupo Amateur - 71)



Mensajes: 658
  País:
Bélgica 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #11 Publicado el 6-May-2019, 19:57:54 Citar 
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
(Grupo Pro - 25)



Mensajes: 891
  País:
Inglaterra 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #12 Publicado el 6-May-2019, 20:01:54 Citar 
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
(Grupo Pro - 18)



Equipo de GPRO
Mensajes: 17140
  País:
Argentina 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #13 Publicado el 6-May-2019, 20:05:36 Citar 
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
(Grupo Master - 3)



Mensajes: 12503
  País:
Finlandia 
Certificado: 
Me gusta este mensaje (0)   No me gusta este mensaje (0)
Mensaje viejo #14 Publicado el 6-May-2019, 20:39:35 (última edición el 6-May-2019, 20:43:15 por Mikko Heikkinen) Citar 
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
Página [1

Responder a este tema