r/soccer • u/9jack9 • Feb 12 '14
Announcement New subreddit styles for match threads
Not everyone will be interested in this but some will.
I've added some CSS to allow you to create bar charts for match threads and post match threads. You can create horizontal bars in several colours using squares 16 pixels wide.
To create a bar, use the following markdown:
[text](#bar-n-color]Where text is the text content of the bar, n is the number of squares (1-16) and color is the background colour of the bar. For example, to create a red bar that is ten squares wide with the text "Arsenal" use the following markup:
[Arsenal](#bar-10-red)And it will render like this:
This markup is only available in self posts and not in the comments.
The following colours are available:
If you do not specify a colour then the bar is rendered gray.
There are some examples below.
STATISTICS
| Norwich | Everton | |
|---|---|---|
| 45.6% | Possession | 54.4% |
| 11 (4) | Shots (on target) | 12 (6) |
| 3 | Corners | 6 |
| 4 | Offsides | 2 |
| 11 | Fouls | 15 |
ALTERNATIVE
| Norwich - Everton | |
|---|---|
| Possession | 45.6%54.4% |
| Shots | 11 (4)12 (6) |
| Corners | 36 |
| Offsides | 42 |
| Fouls | 812 |
33
u/fahomnom Feb 12 '14
Any way to lower the hue of the colours? They're really bright and eye-bleedy
39
u/9jack9 Feb 12 '14 edited Feb 13 '14
I've just noticed that hovering over the bars makes them disappear. I'll fix that later.
EDIT: fixed now.
17
u/JokerDanny Feb 12 '14
Nice work.
11
u/thejanitorch4 Feb 12 '14
YES! Debuting in tonights League Roundup!
6
u/Citeh Feb 12 '14
Will we ever get a way to display injuries and stoppage time ? maybe a little ambulance and one of those board things the fourth official have.
4
u/Maqda7 Feb 12 '14
Pretty cool! Thanks
4
u/L__McL Feb 12 '14
I feel like us and West Ham got the short straw with the colour selection.
7
u/[deleted] Feb 12 '14
Mods that actually care about their subreddit? Sweet. Nice work!
3
u/miaaaa Feb 12 '14
This is pretty cool.
3
u/SkyInfernal Feb 12 '14
Fantastic work mate, looking great.
1
u/laffman Feb 12 '14
lovely yellow on white :/
2
u/thejanitorch4 Feb 12 '14
White really doesn't look great, as seen here.
2
u/AluminumFalcon3 Feb 12 '14
Thanks for putting all this work into the subreddit CSS, I think it adds so much to the quality of the subreddit. Keep up the good work!
2
u/seabass92 Feb 12 '14
Nice work!
1
u/philkav Feb 13 '14
Great job, thanks!
1
u/muchadoaboutsmalling Feb 13 '14
It looks like old school champ manager.
1
u/[deleted] Feb 13 '14
Love it.
1
u/ypatel94 Feb 12 '14
I think shots on target should be separate category and that the alternative looks much better because you can get a quick picture of the difference between the two sides statistically.
0
u/[deleted] Feb 12 '14
Nice work but why is there an onHover function on the bars? When you click it, you get taken to a blank page.Edit: Just seen your comment.
-21
u/[deleted] Feb 12 '14 edited Feb 12 '14
/u/9jack9 isn't a complete hackfraud after all