Template talk:Saffir-Simpson small
From Wikipedia, the free encyclopedia
Contents |
[edit] Code
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)
[edit] No code
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)
-
-
[edit] Alignment
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 Hurricane Scale | ||||||
TD | TS | 1 | 2 | 3 | 4 | 5 |
{{Saffir-Simpson small|align=left}}:
Saffir-Simpson Hurricane Scale | ||||||
TD | TS | 1 | 2 | 3 | 4 | 5 |
{{Saffir-Simpson small|align=center}}:
Saffir-Simpson Hurricane Scale | ||||||
TD | TS | 1 | 2 | 3 | 4 | 5 |
--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)
[edit] "Mouse over for details"
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)
[edit] Width
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)
-
-
- I'm 73% certain they're still not equal. Jdorje 06:50, 6 December 2005 (UTC)
-
-
-
-
-
- Possibly, but to me, they all seem equal now. -- Super-Magician (talk • contribs • count) ★ 21:51, 6 December 2005 (UTC)
-
-
-