Template talk:Decrease

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

I think the arrow looks like it means "decreasing" as opposed to a loss. It's confusing and I wouldn't use this. Shawnc 20:04, 23 September 2006 (UTC)[reply]

Interwikis[edit]

Please, add sl:Predloga:Upad. --12:27, 29 March 2007 (UTC)

{{editprotected}} done. CMummert · talk 18:52, 29 March 2007 (UTC)[reply]

Please add is:Snið:Lækkun. --Stefán Örvarr Sigmundsson 22:42, 30 November 2007 (UTC)[reply]

Replace unicode symbol by an icon with alt text[edit]

{{editprotected}} Unicode symbols are not accessible, as most of them are read by screen readers as a question mark (unrecognized). Even when they are, the textual alternative is quite generic, and does not always convey the meaning intended. For example, in this case it would be read as "down arrow" instead of "decrease".

The MoS guideline at Wikipedia:Manual of Style (accessibility)#Text says such symbols should be replaced by an icon with alt text. This guideline was established after the discussion at WT:ACCESS#Non standard ASCII, and consensus was reached to replace such symbols by an icon with alt text.

This change does not have any effect on the layout, or the rendering of the symbol, thus is believed to be consensual. I request to replace:

<span style="color: red; font-size: larger;">▼</span>

by: decrease

[[File:Decrease2.svg|11px|alt=decrease|link=]]

File:Decrease2.svg is in public domain because it is ineligible for copyright (simple geometry), thus the image doesn't require attribution and it is acceptable to remove the link.

Thanks. Dodoïste (talk) 13:39, 7 November 2010 (UTC)[reply]

 Done — Martin (MSGJ · talk) 13:10, 8 November 2010 (UTC)[reply]
Thanks! :-) Dodoïste (talk) 19:15, 8 November 2010 (UTC)[reply]

confusing[edit]

I agree with Shawnc's comment (from 5 years ago). Its purpose in infoboxes isn't clear, is it a loss, or is it a decrease from previous years? It seems to be used instead of a negative sign, which is how a negative profit would normally be displayed. (e.g. on Lockheed Martin)

At the very least, is it possible to have a mouseover tip to say it represents a loss, rather than a decrease from previous years? 84.9.58.29 (talk) 23:03, 28 March 2011 (UTC)[reply]

I too find it a confusing sign. So, the stock value is decreased - in relation to what? Its stock value from yesterday? Last month? Is this a realtime sign? In addition to the alt= text I'd like to have a small title= tag or even an url= to some stock market site where one can see why the symbols shows decrease. The same goes for Template:Increase of course. -- 194.246.123.103 (talk) 07:57, 18 November 2011 (UTC)[reply]
If it is confusijg or unclear, we have to provide additional textual information in context. But using title or alt is not a solution, it's an open door to more problems. Maybe an url would help. Dodoïste (talk) 15:55, 9 August 2012 (UTC)[reply]

An equilateral triangle points in three different directions: why should I consider this to be downward rather than right/left and up a bit? Kevin McE (talk) 20:38, 8 August 2012 (UTC)[reply]

Its top surface is horizontal, the lower point of both diagonal sides is half-way along that horizontal but below it. Most people would understand that it points downwards unless it renders differently in IE from the way it renders in Safari? To me it's abundantly clear it points downwards. The Rambling Man (talk) 20:51, 8 August 2012 (UTC)[reply]
For clarity, please also see Template:Increase and Template:Steady. The Rambling Man (talk) 21:20, 8 August 2012 (UTC)[reply]
We could use a better icon, such as File:RedDownArrow.svg. It would clearly indicate the decrease. I'm sure we can find a similar one for the increase template. Cheers, Dodoïste (talk) 15:55, 9 August 2012 (UTC)[reply]

Optional parameter[edit]

At present the template creates a fixed alt text of "decrease". I was recently asked if I could make that text a changeable parameter and also provide hover-text. I've tested an implementation at User:RexxS/Decrease using the following code:

<span title="{{ifempty|{{{alt|}}}|decrease}}">[[File:Decrease2.svg|11px|alt={{ifempty|{{{alt|}}}|decrease}}|link=]]</span><noinclude>
{{documentation}}
</noinclude>

There are similar trials at User:RexxS/Steady and User:RexxS/Increase for the associated templates.

Results are as follows:

Type this Result
{{User:RexxS/Decrease}} decrease
{{User:RexxS/Increase}} increase
{{User:RexxS/Steady}} steady
{{User:RexxS/Decrease|alt=smaller}} smaller
{{User:RexxS/Increase|alt=bigger}} bigger
{{User:RexxS/Steady|alt=unchanged}} unchanged

The first three demonstrate the default alt text and title of "decrease", "increase" and "steady", so these versions produce the same results as the present templates if you don't add a parameter. The last three have alt text and title set to the parameter which is supplied. This version also deals with |alt= (i.e. explicit empty alt) by falling back to the default.

Is there any downside to updating the current templates to take the optional parameter and give title text? --RexxS (talk) 19:01, 20 August 2012 (UTC)[reply]

I like it but I seem to recall User:Dodoïste objected to that approach? Could be wrong though... The Rambling Man (talk) 19:07, 20 August 2012 (UTC)[reply]
Yes, he suggested above that these sort of solutions may lead to problems, so I thought it best to put forward a particular solution to see if I've managed to avoid the problems. If so, then the addition of a title to give hover-text for sighted visitors may find more use in other symbol templates, making a key less needed in some tables. --RexxS (talk) 20:38, 20 August 2012 (UTC)[reply]
Hm, I can't tell if RexxS proposal is accessible. SPANs are usually not meant to carry information, thus using a title on a SPAN might fail criterias. But screen readers might quite possibly read titles on SPANs. I'm not sure.
I would rather suggest something that looks closer to standard in most common uses. Like increase 20.5%. Since there is an alt text on the image, color is not the only mean to provide information. Thus it's accessible. The green text color and the green plus are more easily understandable for average user. I suggest using red and a minus icon for the decrease. I suggest deleting the "unchanged" template. Dodoïste (talk) 23:57, 20 August 2012 (UTC)[reply]
It's only as accessible as the w3c specification allows:
Here's an example from WCAG of using a span element to convey information (the meaning of an abbreviation):
Standard symbols for London Stock Exchange prices are green "up" and red "down" arrows: http://www.londonstockexchange.com/home/homepage.htm
Standard symbols for BBC music charts are blue "up" and red "down" arrows with a grey dash for "no change": http://www.bbc.co.uk/1xtra/chart/singles
Standard symbols for soccer Premier League table are blue "up" and grey "down" arrows with a grey dash for "no change": http://www.premierleague.com/en-gb/matchday/league-table.html
I'm not seeing +/- as symbols - just the up and down arrows and the dash. Is this a country-specific difference? --RexxS (talk) 03:12, 21 August 2012 (UTC)[reply]
Okay for the accessibility part.
As for the design: what about all the feedback that stated these arrows are cryptic and hard to understand? Users are not going to guess that some information is going to show when hovering these arrows. We should go for a radical solution. The colored text and the +/- is the only design that is understood at a first glance.
I did not knew that arrows were often used too. But it's not because it's used on several websites that it can be easily understood. By the way, on http://www.londonstockexchange.com I see the green/red text and +/- symbols. Dodoïste (talk) 09:14, 21 August 2012 (UTC)[reply]

Unnamed parameter for delta[edit]

I created a sandboxed verion of the template with support for delta numbers as tooltips (to be specified in first unnamed parameter). I already implemented this in {{steady}}, and similar request is filed for {{increase}} (see Unnamed parameter for delta). — Dmitrij D. Czarkoff (talktrack) 12:59, 6 September 2012 (UTC)[reply]

 Done. Please update the documentation — Martin (MSGJ · talk) 19:11, 13 September 2012 (UTC)[reply]

Can table cells using Increase/Decrease be made sortable?[edit]

Summary of the 2013 Malaysian Dewan Undangan Negeri election results [1]
* Fraction of total seats in each state rounded to the nearest percent
± Change in number of seats from before the election
Barisan Nasional Pakatan Rakyat Others Total
State Seats * ± Seats * ± Seats * ± Seats
Johor 38 68% -1212 18 32% 1212 0 0% 0 56
Kedah 21 58% 77 15 42% -66 0 0% -11 36
Kelantan 12 27% 55 33 73% -55 0 0% 0 45
Malacca 21 75% -22 7 25% 22 0 0% 0 28
Negeri Sembilan 22 61% 11 14 39% -11 0 0% 0 36
Pahang 30 71% -88 12 29% 88 0 0% 0 42
Penang 10 25% -11 30 75% 11 0 0% 0 40
Perak 31 53% 33 28 47% 11 0 0% -44 59
Perlis 13 87% 0 2 13% 0 0 0% 0 15
Sabah 48 80% -99 11 18% 1010 1 2% -11 60
Selangor 12 21% -99 44 79% 1010 0 0% 0 56
Terengganu 17 53% -77 15 47% 77 0 0% 0 32
Total 275 54% -3232 229 45% 4141 1 0% -77 505

Hello!

Is there a clever way to add hidden characters to the HTML code so that table cells using these templates sort correctly?

For example, clicking the sorting icons in the table on the right seems to order the values randomly.

Thanks, cmɢʟee୯ ͡° ̮د ͡° ੭ 20:43, 9 May 2013 (UTC)[reply]

See Help:Sorting#Sorting with increase/decrease/steady templates. You may also need to set data-sort-type="number" in the column header. Verbcatcher (talk) 16:23, 29 May 2019 (UTC)[reply]

Rank/mov't indicator arrows[edit]

(Copied from Template_talk:IncreaseNegative)

The documentation does not provide any clear guidance on when {{IncreaseNegative}} (Negative increase) and {{DecreasePositive}} (Positive decrease) should be used, as opposed to {{increase}} (Increase) and {{decrease}} (Decrease). The fact that all of the templates share the same documentation only adds to the confusion of which one to use when.

For example, some pages have used Negative increase and Positive decrease in infoboxes to indicate changes in ranking when they really should use Increase and Decrease instead — see Template:Infobox website:

Put {{Increase}} (Increase) OR {{Steady}} (Steady) OR {{Decrease}} (Decrease) BEFORE the ranking number to indicate the change of ranking compared with the previous month.

PrimeHunter mentioned a good example when Negative increase and Positive decrease would be appropriate, where an increase is a bad thing (indicated by red):

List of motor vehicle deaths in U.S. by year

Can the documentation be updated to give examples of appropriate uses? sroc (talk) 03:58, 15 July 2013 (UTC)[reply]

FYI - As per Help Desk discussion. thewolfchild 10:51, 25 July 2013 (UTC)[reply]

 You are invited to join the discussion at Template talk:Increase § Size parameter. {{u|Sdkb}}talk 04:55, 16 August 2020 (UTC)[reply]

  1. ^ Suruhanjaya Pilihan Raya Malaysia (Election Commission of Malaysia) www.spr.gov.my/