Страна [1
Аутор Тема: Table Forum Codes 13 одговора
Chris Shaw
(Група Pro - 25)



Поруке: 897
  Држава:
Енглеска 
Сертификат: 
Стара порука #1 послано Maј 6 2019, 14:56:27 Цитирај 
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
(Група Amateur - 63)



Поруке: 8
  Држава:
Пољска 
Сертификат: 
Свиђа ми се (1)   Не свиђа ми се (0)
Стара порука #2 послано Maј 6 2019, 15:32:40 Цитирај 
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
(Група Amateur - 71)



Поруке: 658
  Држава:
Белгија 
Сертификат: 
Свиђа ми се (6)   Не свиђа ми се (0)
Стара порука #3 послано Maј 6 2019, 16:27:20 Цитирај 
Hey, maybe this will help you :)

/forum/ViewTopic.asp?TopicId=28619&PostId=4430992#post4430992
Chris Shaw
(Група Pro - 25)



Поруке: 897
  Држава:
Енглеска 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #4 послано Maј 6 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.
Jasper Coosemans1
(Група Master - 2)



Поруке: 3021
  Држава:
Белгија 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #5 послано Maј 6 2019, 19:11:51 Цитирај 
Don't worry, actual tables have only been implemented like two months ago. ;)
Chris Shaw
(Група Pro - 25)



Поруке: 897
  Држава:
Енглеска 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #6 послано Maј 6 2019, 19:14:01 Цитирај 
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
(Група Amateur - 71)



Поруке: 658
  Држава:
Белгија 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #7 послано Maј 6 2019, 19:24:39 Цитирај 
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
(Група Master - 3)



Поруке: 12503
  Држава:
Финска 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #8 послано Maј 6 2019, 19:35:59 (последња промена Maј 6 2019, 19:38:08 од Mikko Heikkinen) Цитирај 
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
(Група Amateur - 71)



Поруке: 658
  Држава:
Белгија 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #9 послано Maј 6 2019, 19:46:19 Цитирај 
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
(Група Master - 3)



Поруке: 12503
  Држава:
Финска 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #10 послано Maј 6 2019, 19:50:31 (последња промена Maј 6 2019, 19:53:21 од Mikko Heikkinen) Цитирај 
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
(Група Amateur - 71)



Поруке: 658
  Држава:
Белгија 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #11 послано Maј 6 2019, 19:57:54 Цитирај 
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
(Група Pro - 25)



Поруке: 897
  Држава:
Енглеска 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #12 послано Maј 6 2019, 20:01:54 Цитирај 
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
(Група Pro - 18)



ГПРО особље
Поруке: 17148
  Држава:
Аргентина 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #13 послано Maј 6 2019, 20:05:36 Цитирај 
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
(Група Master - 3)



Поруке: 12503
  Држава:
Финска 
Сертификат: 
Свиђа ми се (0)   Не свиђа ми се (0)
Стара порука #14 послано Maј 6 2019, 20:39:35 (последња промена Maј 6 2019, 20:43:15 од Mikko Heikkinen) Цитирај 
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
Страна [1

Одговори