Template talk:MedalistTable
From Wikipedia, the free encyclopedia
[edit] wider first column
Sorry for just "adjusting" the size, I better would have opened this discussion here first. Anyways, you say the the column will expand by longer names, but as you can see at 2006 FILA Wrestling World Championships this is not the case. Can you help me out on this then? Cheers, SportsAddicted 23:53, 27 September 2006 (UTC)
- No worries! I'm not sure what needs to be fixed on that page. The event names all fit nicely. Or, do you want to see some extra whitespace after the event names? If so, then I think the best solution is to paramterize the width of the first column, rather than always forcing it to 200 pixels. I've added the "labelwidth=" parameter in case you need it.
- My point about the expansion was that if a long label was used (e.g. "1936 Garmisch-Partenkirchen"), then the column size will expand beyond 120 pixels to make it fit. But most event labels are reasonably short, so I'd prefer to keep the default size smaller so that there's not a huge amount of whitespace in most cases. Andrwsc 01:18, 28 September 2006 (UTC)
-
- The Greco-Roman 120 kg event places the kg on the next line right now, that's why I wanted to make it wider. Thanks for adding the parameter. I'm going to check out wether it works or not. I see your point also and I agree with you as well, just didn't want to create a total new template just for a wider column. SportsAddicted 02:11, 28 September 2006 (UTC)
- Hmmm, it's probably working (I believe you), but I don't know what to do to make the first column in the article above wider using the parameter. Can you or someone else do it for me so I can see what to do next time? Thanks. SportsAddicted 02:19, 28 September 2006 (UTC)
- I added the "width=180" parameter to change the widths of the three medal columns and "labelwidth=160" to change the first column — let me know if that is what you had in mind. Andrwsc 04:28, 28 September 2006 (UTC)
- Yes, this was what I meant, thanks for helping me out. SportsAddicted 10:01, 28 September 2006 (UTC)
- You're welcome! HTML tables can be rather "fussy" trying to get them to render nicely at a variety of display resolutions. There is another trick you might try to keep an event label from splitting to two lines. Use " " (non-breaking space) instead of a normal space character between words, and use "‑" (non-breaking hyphen) instead of a normal hyphen. (For example, "Greco‑Roman 120 kg"). That way, you don't have to guess how many pixels to use for the column width. Alternately, you could decide to make all labels fit on two lines (e.g. put Greco-Roman or Freestyle on the first line and the weight class on the second line, using "<br>" between the words. Lastly, you could make two tables, one with Greco-Roman results and one with Freestyle results, and just use the weight class label in the table cell. We use that approach on pages like Athletics at the 2004 Summer Olympics, where there are separate tables for Men's & Women's results, so that "Men's" or "Women's" does not have to be part of the label string. It also makes it easier to navigate through a long list of events. Hope this helps! Andrwsc 16:47, 28 September 2006 (UTC)
- It certainly does help, thanks for that. I used to do lots of these tables on the nl.wiki, but on the en.wiki there are sometimes totally different templates in use, which doesn't make it easier when you're used to do it in another way. I follow almost every sport and it became hard to manually add them to the Dutch wiki all by myself, so I decided to join the en.wiki as here are much more sports minded people to help me out. SportsAddicted 20:13, 28 September 2006 (UTC)
- You're welcome! HTML tables can be rather "fussy" trying to get them to render nicely at a variety of display resolutions. There is another trick you might try to keep an event label from splitting to two lines. Use " " (non-breaking space) instead of a normal space character between words, and use "‑" (non-breaking hyphen) instead of a normal hyphen. (For example, "Greco‑Roman 120 kg"). That way, you don't have to guess how many pixels to use for the column width. Alternately, you could decide to make all labels fit on two lines (e.g. put Greco-Roman or Freestyle on the first line and the weight class on the second line, using "<br>" between the words. Lastly, you could make two tables, one with Greco-Roman results and one with Freestyle results, and just use the weight class label in the table cell. We use that approach on pages like Athletics at the 2004 Summer Olympics, where there are separate tables for Men's & Women's results, so that "Men's" or "Women's" does not have to be part of the label string. It also makes it easier to navigate through a long list of events. Hope this helps! Andrwsc 16:47, 28 September 2006 (UTC)
- Yes, this was what I meant, thanks for helping me out. SportsAddicted 10:01, 28 September 2006 (UTC)
- I added the "width=180" parameter to change the widths of the three medal columns and "labelwidth=160" to change the first column — let me know if that is what you had in mind. Andrwsc 04:28, 28 September 2006 (UTC)
- Hmmm, it's probably working (I believe you), but I don't know what to do to make the first column in the article above wider using the parameter. Can you or someone else do it for me so I can see what to do next time? Thanks. SportsAddicted 02:19, 28 September 2006 (UTC)
- The Greco-Roman 120 kg event places the kg on the next line right now, that's why I wanted to make it wider. Thanks for adding the parameter. I'm going to check out wether it works or not. I see your point also and I agree with you as well, just didn't want to create a total new template just for a wider column. SportsAddicted 02:11, 28 September 2006 (UTC)