Template talk:Saffir–Simpson small
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
|
This template was considered for deletion on 2019 June 20. The result of the discussion was "no consensus". |
Code
[edit]Code used to generate from {{Hurricane_season_bar_button}} (click edit first):
<table style="background-color: #EEEEEE; text-align: center; margin: auto; font-size: 90%;"> <tr><td colspan=7>[[Saffir-Simpson Hurricane Scale]] </td></tr> <tr> {{subst:Hurricane_season_bar_button |buttonspacing=0.1em |intensity={{Storm_colour_depression}} |linkname=Saffir-Simpson Hurricane Scale |stormname=Tropical Depression |strength=0–38 mph (0–62 kph) |storminitial=TD }} {{subst:Hurricane_season_bar_button |buttonspacing=0.1em |intensity={{Storm_colour_storm}} |linkname=Saffir-Simpson Hurricane Scale |stormname=Tropical Storm |strength=39–73 mph (63–117 kph) |storminitial=TS }} {{subst:Hurricane_season_bar_button |buttonspacing=0.1em |intensity={{Storm_colour_cat1}} |linkname=Saffir-Simpson Hurricane Scale |stormname=Category 1 |strength=74–95 mph (119–153 kph) |storminitial=1 }} {{subst:Hurricane_season_bar_button |buttonspacing=0.1em |intensity={{Storm_colour_cat2}} |linkname=Saffir-Simpson Hurricane Scale |stormname=Category 2 |strength=96–110 mph (154–177 kph) |storminitial=2 }} {{subst:Hurricane_season_bar_button |buttonspacing=0.1em |intensity={{Storm_colour_cat3}} |linkname=Saffir-Simpson Hurricane Scale |stormname=Category 3 |strength=111–130 mph (178–209 kph) |storminitial=3 }} {{subst:Hurricane_season_bar_button |buttonspacing=0.1em |intensity={{Storm_colour_cat4}} |linkname=Saffir-Simpson Hurricane Scale |stormname=Category 4 |strength=131–155 mph (210–249 kph) |storminitial=4 }} {{subst:Hurricane_season_bar_button |buttonspacing=0.1em |intensity={{Storm_colour_cat5}} |linkname=Saffir-Simpson Hurricane Scale |stormname=Category 5 |strength= >=156 mph (>=250 kph) |storminitial=5 }} </tr> <tr><td colspan=7><small> (mouse over for details) </small></td></tr> </table>
AySz88 04:30, 15 November 2005 (UTC)
No code
[edit]I removed the HTML code, and replaced it with proper wiki code. I also removed the "mouse over for more details" text, since mousing over the links just gave the link target (which is the same for all links of course). Finally I right-aligned it, which is needed for all its current users (see Category:Tropical_cyclones_by_strength and children). Jdorje 05:51, 15 November 2005 (UTC)
- Mousing over the cell was supposed to give things like "Tropical Storm, 39–73 mph (63–117 kph)" which makes the template pretty much a complete replacement for {{Saffir-Simpson-US}}, though a little less obvious about how to use. If there's some sort of conflict between the tooltips, perhaps the links should be removed instead because Saffir-Simpson hurricane scale is already linked to above the cells. --AySz88^-^ 00:38, 16 November 2005 (UTC)
- I agree the links should be removed. I've never seen any useful tooltips, either on this table or on the season button bar. Jdorje 00:45, 16 November 2005 (UTC)
- Does that mean the tooltips didn't work for you, or you don't think it would be useful? --AySz88^-^ 00:48, 16 November 2005 (UTC)
- I just changed the width so it's consistent across all parent widths, and with a seperate edit re-added the mouseovers (though not the text indicating their existance). The mouseovers can be removed if they're felt to be a problem. --AySz88^-^ 00:58, 16 November 2005 (UTC)
- The tooltips do not work so long as the text is a link. Jdorje 01:18, 16 November 2005 (UTC)
- Yikes, I wasn't aware of that, that's a big problem for the button bar. Thanks for telling me. I'm using a Wikipedia plugin-thing that previews a page, so I never noticed. --AySz88^-^ 01:59, 16 November 2005 (UTC)
Alignment
[edit]I wanted the template to default to right-aligned but be able to specify if "align" was non-blank. Right now, it doesn't default to right-aligned:
{{Saffir-Simpson small}} (should be right-aligned):
Saffir–Simpson scale | ||||||
TD | TS | C1 | C2 | C3 | C4 | C5 |
{{Saffir-Simpson small|align=left}}:
Saffir–Simpson scale | ||||||
TD | TS | C1 | C2 | C3 | C4 | C5 |
{{Saffir-Simpson small|align=center}}:
Saffir–Simpson scale | ||||||
TD | TS | C1 | C2 | C3 | C4 | C5 |
--AySz88^-^ 20:08, 19 November 2005 (UTC)
- Oops, forgot to subst; well, it used to be left-aligned when it should have defaulted to being right-aligned. --AySz88^-^ 20:21, 19 November 2005 (UTC)
- Works now. :) --AySz88^-^ 04:20, 20 November 2005 (UTC)
"Mouse over for details"
[edit]I removed this line from the template:
- Mouse-over is not consistent between browsers (I think), especially older browsers, and should not be relied upon as a feature.
- Simply clicking on the link will take readers to a full description anyway.
- For those who do see the mouse-over work, it is an easy-to-use hidden feature.
Jdorje 17:59, 24 November 2005 (UTC)
- Would "(mouse over or click)" work better? I feel bad for not informing users of something that would save them time. --AySz88^-^ 04:31, 25 November 2005 (UTC)
- A big part of the problem is that the template is supposed to be small, but adding that text makes it 50% bigger. Jdorje 10:22, 25 November 2005 (UTC)
Width
[edit]The widths of all columns are not equal. I don't know why. Jdorje 05:22, 5 December 2005 (UTC)
- I noticed that too. -- Super-Magician (talk • contribs • count) ★ 21:30, 5 December 2005 (UTC)
- Fixed it - you can't set cell spacing to zero. --AySz88^-^ 03:14, 6 December 2005 (UTC)
- I'm 73% certain they're still not equal. Jdorje 06:50, 6 December 2005 (UTC)
- Made all the widths 1.6em and went pixel-counting. They're all 22 pixels wide now. (Actually, it seems they were all 21 pixels wide before. Maybe an effect of 1 being the same background color as the background?) --AySz88^-^ 08:07, 6 December 2005 (UTC)
- Possibly, but to me, they all seem equal now. -- Super-Magician (talk • contribs • count) ★ 21:51, 6 December 2005 (UTC)
Tooltips are inaccessible Web design
[edit]As mentioned in above discussion from 2005, content in tooltips is not accessible to everyone. Non-sighted users, keyboard users, and — especially important in 2018 — touchscreen users cannot perceive tooltips. Setting the template to nomobile should help, since it's of little use to them, but non-sighted users will still hear meaningless letters and numbers. Matt Fitzpatrick (talk) 01:41, 11 September 2018 (UTC)
- Im not sure that this template is really needed at all. We link to the SSHWS at various points in the articles while the timeline image contains all the windspeeds and colours that this template does. I also note that its sister templates are all Template:Australian tropical cyclone intensity small, Template:BOM Scale small and Template:FMS Scale small are not transcluded anywhere, which makes me wonder even more about it being needed.Jason Rees (talk) 23:53, 11 September 2018 (UTC)