Pengarang |
Topik: Table Forum Codes |
13 balasan
|
|
|
#1 dikirim Mei 6 2019, 14:56:27
|
Sebut
|
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!
|
|
|
|
#2 dikirim Mei 6 2019, 15:32:40
|
Sebut
|
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 |
|
|
|
|
#3 dikirim Mei 6 2019, 16:27:20
|
Sebut
|
|
|
|
#4 dikirim Mei 6 2019, 19:02:15
|
Sebut
|
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.
|
|
|
|
#5 dikirim Mei 6 2019, 19:11:51
|
Sebut
|
Don't worry, actual tables have only been implemented like two months ago. ;)
|
|
|
|
#6 dikirim Mei 6 2019, 19:14:01
|
Sebut
|
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
|
|
|
|
#7 dikirim Mei 6 2019, 19:24:39
|
Sebut
|
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.
|
|
|
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
|
|
|
|
#9 dikirim Mei 6 2019, 19:46:19
|
Sebut
|
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.
|
|
|
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
|
|
|
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.
|
|
|
|
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 :)
|
|
|
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
|
|
|
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
|
|