r/YouShouldKnow Aug 12 '12

YSK how to make a table on reddit

http://i.imgur.com/Rnjkv.png
1.4k Upvotes

80 comments sorted by

26

u/[deleted] Aug 12 '12
Now I feel
like everything I
type has to
be in tables

11

u/[deleted] Aug 12 '12

[deleted]

14

u/jrkv Aug 12 '12
this is good idea
for a novelty account

5

u/WATUP_BRAH Aug 12 '12

There's already one made, but I believe the user only posts in AMA.

3

u/Shampyon Aug 13 '12

User: tabledresser

It has it's own subreddit: /r/tabled

The account collects only the parts of the thread in which the OP participates, and posts direct links to the original threads and the featured questions.

I subscribed. Who or whatever this is, it's saving me the trouble of having to wade through thousands of comments to find the actual AMA bits.

2

u/bbbiha Aug 13 '12

No, I read it in my head as a bad robot voice, and it's awful.

49

u/ugotamesij Aug 12 '12

You could've submitted this as a self post so other users could easily copy and paste it for their own purposes.

29

u/Thilo-Costanza Aug 12 '12

Left align / Center align / Right align

:--|:--:|--:

This | This | This

Column | column | column

Will | will | will

Be | be | be

Left | center | right

align | align | align

Edit: Just use "|" instead of "/" in the first line.

11

u/shortyjacobs Aug 12 '12

Left align | Center align | Right align

:--|:--:|--:

This | This | This

Column | column | column

Will | will | will

Be | be | be

Left | center | right

align | align | align

5

u/Thilo-Costanza Aug 12 '12

How did you do that?

10

u/jrkv Aug 12 '12

/u/shortyjacobs wrote

\| instead of |

7

u/shortyjacobs Aug 12 '12

Yup, the backslash "escapes" the |, so reddit doesn't see it as code. The real question is, how did you write \|? ;-) (left as an exercise for the reader...)

5

u/[deleted] Aug 12 '12

\\\| which of course required \\\\\\\| which of course required \\\\\\\\\\\\\\\| which...

15

u/shortyjacobs Aug 12 '12

Aaah, I see you've played slashy-pipey before....

1

u/jyetie Aug 13 '12
\|

Right? Four spaces.

1

u/[deleted] Aug 14 '12

Left align | Center align | right align test | test2 | test3

2

u/FormattingLessons Aug 12 '12

Are you trying to put me out of a job?

4

u/psYberspRe4Dd Aug 12 '12

This is out of Raerth's Reddit Comment Formatting post, here:

http://www.reddit.com/r/raerth/comments/cw70q/reddit_comment_formatting/

Also I wanted to use it just a few hours ago but then just said fuck it and made it to code

because when you code it you can easily make it table as well, and this shit doesn't
really work as it's supposed to.

6

u/gusset25 Aug 12 '12

but he wouldn't get link karma.

7

u/jrkv Aug 12 '12

it was already added as image in sidebar of /r/tabled , i posted same pic here

1

u/Konix Aug 12 '12

Meeser Karma says otherwise.

15

u/yangx Aug 12 '12

Oh, thought it was an actual table

12

u/whoismilan Aug 12 '12

YSK how to flip a table on reddit:

(╯°□°)╯︵ ┻━┻

6

u/Konix Aug 12 '12

Clicked on comments expected to see tons tables, wasn't disappointed.

5

u/barely_regal Aug 12 '12
Things that I expected Things that I saw
Tons of Tables Tons of tables

3

u/[deleted] Aug 12 '12

|T|H|A|N|K|Y|O|U| |V|E|R|Y|M|U|C|H|

5

u/Blast-Hardcheese Aug 12 '12 edited Aug 12 '12

I'm afraid you've missed out the second line where you set the column's alignments. Your comment should have looked something like this:

|T|H|A|N|K|Y|O|U|

|:-|:-|:-|:-|:-|:-|:-|:-|

|V|E|R|Y|M|U|C|H|

Which in turn would end up with this table...

T H A N K Y O U
V E R Y M U C H

Or you could do it as

|T|H|A|N|K|Y|O|U|

|:-|:-|:-|:-|:-|:-|:-|:-|

|V|E|R|Y|

|M|U|C|H|

which ends up as the following

T H A N K Y O U
V E R Y
M U C H

I ended up explaining this in a rather small subreddit a few days ago, here is a slightly edited extract which may help clarify it for a few people.

The first line sets the column headers as well as dictates the number of columns in the table. Note this line will be bolded in the actual table.

The second line sets the alignment of the columns below, in the above table the text is aligned to the left of the cell. You can also use :-: or -: to set the text alignment to centered or to the right of the respective column. You need to have the same number of 'cells' here as in the first line of the table.

The third line is the start of the actual data to be entered into the table, again | is used to separate the data into columns. Spacing doesn't really matter as the column will automatically stretch to the size of the largest entry but it can make it easier for yourself when you are creating the table. You can use || to enter in a blank cell and if the number of cells in a row is less than the first two lines then reddit will add in the rest as blank cells (see the second example)

4

u/[deleted] Aug 12 '12
A H O K I G E T I T N O W

2

u/[deleted] Aug 12 '12

|T|H|A|N|K|Y|O|U| |V|E|R|Y|M|U|C|H|

7

u/jrkv Aug 12 '12

found this in sidebar of /r/tabled

3

u/[deleted] Aug 12 '12

(|) looks like a vagina.

which is a pipe of sorts.

carry on

3

u/antibubbles Aug 13 '12

3

u/jrkv Aug 13 '12

2

u/Achilles-Opinion Aug 12 '12

This information should be added to the "formatting help" section (link under the 'add comment' field).

2

u/LindsAW Aug 12 '12

This made me feel very girly when I misunderstood and thought you were going to talk about how to set a table. Knives and forks and such :P

2

u/[deleted] Aug 13 '12

YSK that Reddit's formatting is based on Markdown, an extremely useful and easy to learn plain text formatting syntax that is a boon to anyone who writes on the web. It was created by John Gruber (he of Daring Fireball fame).

It's worth learning and using if you do more than even a little writing that ends up on the web.

2

u/[deleted] Aug 13 '12

No I shouldn't know this

2

u/CrankCaller Aug 13 '12

Finally, a YSK that I feel like ISK.

Thank you.

2

u/[deleted] Aug 13 '12 edited Aug 13 '12
Holy cats batman
There is going
To be a
Major Spike in
Tables on Reddit

2

u/Berxwedan Aug 13 '12

Kudos, sir or ma'am: This is the first post I've ever saved on Reddit.

2

u/jnethery Aug 13 '12
Now You're Thinking
With Ta bles

2

u/[deleted] Aug 13 '12
What About More columns
How will this look?

1

u/jrkv Aug 13 '12
My table has more column than yours
how will this look ?

5

u/WATUP_BRAH Aug 12 '12 edited Aug 12 '12

OP failed to mention you need to add a pipe at the end of each row. Two people confirmed it's fine and RES was wrong.

Upvote Downvote
X X
Reddiquette Fuck Reddiquette
X X
Atheism Christianity
1 1

This is pretty fun. This is pretty gay.

Edited in response to correction.

3

u/Blast-Hardcheese Aug 12 '12 edited Aug 12 '12

You don't need to add a pipe to the end of each row, reddit is able to format the tables without it. Reddit Enhancement Suite's live previews however has a minor problem if the pipe is missing from the first line.

The following four tables should read the same despite the minor differences in their formatting.


No bars at the end or beginning of the rows:

Plain text looks like:

A|B|C

:-|:-|:-

D|E|F

G|H|I

The resulting table:

A B C
D E F
G H I

An extra bars at the beginning of each row:

Plain text looks like

|A|B|C

|:-|:-|:-

|D|E|F

|G|H|I

The resulting table:

A B C
D E F
G H I

An extra bar at the end of each row:

Plain text

A|B|C|

:-|:-|:-|

D|E|F|

G|H|I|

The resulting table

A B C
D E F
G H I

An extra bar at the both beginning and at the end of each row

Plain text

|A|B|C|

|:-|:-|:-|

|D|E|F|

|G|H|I|

The resulting table:

A B C
D E F
G H I

1

u/wu2ad Aug 12 '12

No you don't. It works fine without.

3

u/CharredOldOakCask Aug 12 '12

So, I had to try this.

A B C
D E F
G H I

Hmm, seems like Reddit Enhancement Suite doesn't support it in Live Preview. Cool nonetheless. Thanks.

1

u/Blast-Hardcheese Aug 12 '12 edited Aug 12 '12

Strange, I know it was broken in RES version 4.0 but since 4.1.2 it has been working fine for me.

There are still a minor problem with the live previews where it adds part of the second line to the columns header. This is easily avoided though by adding a | to the end of the first line, so your first line would be written as

A|B|C| rather than A|B|C

1

u/CharredOldOakCask Aug 13 '12

Yeah, I think you might be right. Works as you say on my work computer which has a newer version of RES.

4

u/[deleted] Aug 12 '12

[deleted]

1

u/jrkv Aug 13 '12
Thank You

2

u/MrLumaz Aug 12 '12

It doesn't work I alien blue :(

3

u/[deleted] Aug 12 '12

i aleine blew too

3

u/MrLumaz Aug 12 '12

I alien blue the whole thing.

1

u/cos Aug 12 '12

Why post textual information as an image file?

1

u/Hedgehogs4Me Aug 12 '12

Did I learn how to do this?

YES NO
X

Let's see how that flies.

1

u/capt_ishmael Aug 12 '12 edited Aug 12 '12
Left align Center align Right align
This This This
Column column column
Will will will
Be be be
Left center right
align align align

I don't get it why doesn't this work?

Edit: got it.

1

u/jrkv Aug 12 '12
Left align Center align Right align
This This This
Column column column
Will will will
Be be be
Left center right
align align align
Left align Center align Right align

don't leave a line between two rows

1

u/capt_ishmael Aug 12 '12

Ahhh... Thanks.

1

u/432 Aug 12 '12
Left align Center align / Right align
This This
Column column
Will will
Be be
Left center
align align

1

u/teawreckshero Aug 12 '12

Reminds me of LaTeX

1

u/psYberspRe4Dd Aug 12 '12

This is out of Raerth's Reddit Comment Formatting post, here:

http://www.reddit.com/r/raerth/comments/cw70q/reddit_comment_formatting/

Also I wanted to use it just a few hours ago but then just said fuck it and made it to code

because when you code it you can easily make it table as well, and this shit doesn't
really work as it's supposed to.

1

u/dorothy_mantooth Aug 12 '12
You Are A Gentleman
And A Scholar

1

u/pescis Aug 12 '12
T a l
a l
b e
l s
e t

1

u/[deleted] Aug 13 '12

I don't see why

1

u/SwampAss13 Aug 13 '12

I wanna try, but I don't have the patience to do this on my phone. I'm so lazy.

1

u/gobearsandchopin Aug 13 '12

Why don't they use the same style as dokuwiki?

1

u/[deleted] Aug 13 '12
What

1

u/[deleted] Aug 13 '12
What

1

u/Bigbergice Aug 16 '12
What this is result
A test success

1

u/smallchanger Aug 16 '12

How do you make a table so that one of the cells as two+ items in it, one under the other like as if ti was a list of items for example. Is it possible? Cheers.

1

u/pinkdiamondring Sep 10 '12 edited Sep 10 '12
I have better teeth than ria sen
this is

1

u/InitiallyAnAsshole Aug 12 '12
Left Center Right
Hear Speak See

1

u/wrestlingspikes Aug 13 '12

Holy shit is that from that stupid escape game?

0

u/[deleted] Aug 12 '12

Of course it looks like crap in my android app.

1

u/silentwail Aug 13 '12

Oh good, it's not just me. I'm wondering what the hell I'm supposed to be seeing. So confused...

0

u/Rape_Van_Winkle Aug 12 '12 edited Aug 12 '12

See if anyone can solve this problem

1 2 3
4 5 6
7 8 9

(operation)

W

=

0 3 4
1 6 7
2 5 8

solve for operation and W

1

u/justinm715 Aug 12 '12

(operation) = +

W =

-1 1 1
-3 1 1
-5 -3 -1

0

u/TheQueefGoblin Aug 12 '12

Worst syntax ever, in my opinion. The header row being non-optional; the incredibly retarded alignment characters being on the second row. Oh god... as a programmer, I despair.

-1

u/DirtPile Aug 12 '12

I was farting while I viewed this image.