Template talk:Increase

Latest comment: 18 days ago by Timeshifter in topic Make it so the arrow and number do not wrap

Rename...? edit

Since this template (and {{Loss}}) are now appearing in {{Infobox Country}} templates to indicate an increase or decrease in countries' yearly HDI, perhaps the more generic names {{Increase}} and {{Decrease}} might be more suitable for these templates (keeping {{Profit}} and {{Loss}} as redirects)...?  Regards, David Kernow (talk) 00:52, 11 January 2007 (UTC)Reply

Makes sense to me. Valentinian T / C 23:56, 4 February 2007 (UTC)Reply

Usage advice regarding {{profit}} and {{loss}} edit

I'm glad profit now redirects here, however I would argue for a notice to say not to use {{profit}} at all, because as far as I can see it is being used incorrectly. i.e. when a company makes 200 million in one year and 100 million the next {{profit}} is being used (i.e. to say it is still a positive) when of course decrease should be used. Mark83 16:38, 12 March 2007 (UTC)Reply

Use of superseded image edit

{{editprotected}}

The image used in this template has been superseded by this image. — cBuckley (TalkContribs) 18:24, 17 March 2007 (UTC)Reply

It has too.  Y Done. Daniel Bryant 21:58, 17 March 2007 (UTC)Reply

Interwikis edit

Please, add sl:Predloga:Rast. Thanks. --Eleassar my talk 12:26, 29 March 2007 (UTC)Reply

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

Please add is:Snið:Hækkun. --Stefán Örvarr Sigmundsson 22:43, 30 November 2007 (UTC)Reply

increase of negative things edit

How do we handle increase of negative things? (e.g. in a ranking of failed states?
I would suggest that we create a new template with a green arrow   pointing down and a red arrow pointing up. What do you think? --Spitzl 11:03, 19 September 2007 (UTC)Reply

Documentation subpage edit

{{editprotected}} The format of WP:DOC has since changed, please update {{increase}} and {{decrease}}. — Dispenser 02:27, 4 August 2008 (UTC)Reply

Done. --- RockMFR 04:17, 4 August 2008 (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: #0c0; font-size: larger;">▲</span>

by:  

[[File:Increase2.svg|11px|alt=increase|link=]]

File:Increase2.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

Since they were not protected, I made similar corrections to Template:DecreasePositive and Template:DecreasePositive. Dodoïste (talk) 15:42, 7 November 2010 (UTC)Reply
  Done — Martin (MSGJ · talk) 13:09, 8 November 2010 (UTC)Reply
Thanks! :-) Dodoïste (talk) 19:16, 8 November 2010 (UTC)Reply

Mouseover edit

Would it be possible to incorporate a mouseover feature into this template and into its siblings, Template:Steady and Template:Decrease, so that when one hovers over them with the cursor they'll say "Increase," "Steady" and "Decrease"?—Biosketch (talk) 08:35, 4 October 2011 (UTC)Reply

Confusing edit

An equilateral triangle points equally in three directions. To indicate one specific direction, would an arrow not be much clearer. Kevin McE (talk) 20:58, 8 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 {{decrease}} (see Unnamed parameter for delta). — Dmitrij D. Czarkoff (talktrack) 12:59, 6 September 2012 (UTC)Reply

  Done. Please update the doc — Martin (MSGJ · talk) 19:12, 13 September 2012 (UTC)Reply

Rise vs increase edit

Is there a specific reason for the two templates {{rise}} and {{increase}}, seemingly serving the same purpose, or should they be merged? I have to say that {{rise}} indicates the direction more clearly. --Eleassar my talk 10:06, 21 March 2013 (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%  12 18 32%  12 0 0%   56
  Kedah 21 58%  7 15 42%  6 0 0%  1 36
  Kelantan 12 27%  5 33 73%  5 0 0%   45
  Malacca 21 75%  2 7 25%  2 0 0%   28
  Negeri Sembilan 22 61%  1 14 39%  1 0 0%   36
  Pahang 30 71%  8 12 29%  8 0 0%   42
  Penang 10 25%  1 30 75%  1 0 0%   40
  Perak 31 53%  3 28 47%  1 0 0%  4 59
  Perlis 13 87%   2 13%   0 0%   15
  Sabah 48 80%  9 11 18%  10 1 2%  1 60
  Selangor 12 21%  9 44 79%  10 0 0%   56
  Terengganu 17 53%  7 15 47%  7 0 0%   32
Total 275 54%  32 229 45%  41 1 0%  7 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

The problem appears to have been fixed since you posted this. They are sorting correctly for me. 50.0.248.222 (talk) 00:57, 8 February 2015 (UTC)Reply

References

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

Rank/mov't indicator arrows edit

(Copied from Template_talk:IncreaseNegative)

The documentation does not provide any clear guidance on when {{IncreaseNegative}} ( ) and {{DecreasePositive}} ( ) should be used, as opposed to {{increase}} ( ) and {{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   and   in infoboxes to indicate changes in ranking when they really should use   and   instead — see Template:Infobox website:

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

PrimeHunter mentioned a good example when   and   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

A small thing edit

There is a increase symbol at the top of the template page, above template documentation with no explanations... Maybe it shouldn't be there? Jonathansuh (talk) 18:04, 3 January 2014 (UTC)Reply

I think that's what happens when the template code is not surrounded by <includeonly>...</includeonly> tags and thus trancludes to its own page. -- Michael Bednarek (talk) 08:56, 4 January 2014 (UTC)Reply

Title attributes edit request edit

Just a simpler method for adding title attributes. Template:Increase/testcases covers all five templates.

Matt Fitzpatrick (talk) 07:24, 10 July 2016 (UTC)Reply

@Matt Fitzpatrick: Only question is whether [[File:...|something]] means the same as <span title="something">[[File:...]]</span> on all platforms, including mobile. I don't see any problem though. Can probably sync if there are no comments — Andy W. (talk ·ctb) 18:01, 11 July 2016 (UTC)Reply
Ping if there are any issues (although I'll be intermittent for a while) — Andy W. (talk ·ctb) 06:00, 12 July 2016 (UTC)Reply

Increase or decrease "neutral" missing edit

Excellent idea to have these signs. However, sometimes, increase (or decrease) is neutral in nature (e.g. labor force due to demographic trends). It would be nice to have also colorless triangles (i.e. trend signs) in that case. Cheers. 47.17.20.247 (talk) 01:51, 15 December 2016 (UTC)Reply

The page overleaf suggests {{Steady}}. Would that do? -- Michael Bednarek (talk) 06:09, 15 December 2016 (UTC)Reply

Increase - where has it gone? edit

What has happened to the increase arrow and can we get it back? Likelife (talk) 08:14, 13 October 2017 (UTC)Reply

Doesn't {{Increase}} show a green up-arrow ( ) for you? It does here. -- Michael Bednarek (talk) 10:26, 13 October 2017 (UTC)Reply
No, it just says increase. Sorry, I've just opened Safari browser and it seems to work. I wonder why it isn't working on my Chrome? It is doing the same for the National Rail symbol too. Likelife (talk) 13:40, 13 October 2017 (UTC)Reply
Works here for Firefox (56.0) and Chrome (61.0.3163.100). I don't know what "the National Rail symbol" is. -- Michael Bednarek (talk) 14:30, 13 October 2017 (UTC)Reply

Size parameter edit

I would like to add a size parameter to this template and its peers, as shown in this diff in the sandbox. This would allow them to function better in instances where they are surrounded by small/large text, such as here. Does that sound okay? {{u|Sdkb}}talk 04:54, 16 August 2020 (UTC)Reply

Actioned. {{u|Sdkb}}talk 22:57, 8 September 2020 (UTC)Reply

New template available for automatically formatting a value edit

I have just created Template:Fluctuation formatter (I'm somewhat surprised it didn't already exist; hopefully it wasn't hidden somewhere), which takes a value and returns it along with an appropriate sign based on whether it's positive/negative/neutral. You can see an example usage at {{Infobox U.S. college admissions}}. It may be difficult to retrofit into existing use cases that have required editors at pages to manually enter the appropriate symbol, but it should be preferable when designing new infoboxes/etc. going forward. Let me know if you have any thoughts/questions! {{u|Sdkb}}talk 05:01, 16 August 2020 (UTC)Reply

@Sdkb: - hi, thanks, this is awesome. I'm similarly surprised there isn't an automated tool, like {{fluc|1,835|1,097}} that would display like "1,835 (  67%)". Would be great to have a percent change automation, similar to what exists in population templates. Would be great for displaying ridership changes for transit systems, and probably much more. ɱ (talk) 17:24, 5 September 2020 (UTC)Reply
, to do that, you'd use I think this code:
{{{new}}} ({{fluc|{{#expr:{{{new}}}-{{{old}}}}}|custom label={{percent|{{{new}}}|{{{old}}}|0}}}})
I'm not sure what to call that template precisely (and haven't tested the above code), but you're welcome to copy it to a template page and build out/add documentation and links from there. {{u|Sdkb}}talk 21:54, 5 September 2020 (UTC)Reply
That looks useful. There is similar, but not as elegant, code in {{GAN changes}}. – Jonesey95 (talk) 05:06, 14 September 2020 (UTC)Reply

Make it so the arrow and number do not wrap edit

I would like that the number can not wrap below the arrow as the screen narrows. This occasionally happens.

It would be nice if this was the default, so that people don't have to use a parameter.

Right now some people are putting "nowrap" in the styling before those {{increase}} {{decrease}} {{steady}} data cells. And not just for the verbiage after the number. Sometimes just for the arrow and number. --Timeshifter (talk) 06:40, 17 April 2024 (UTC)Reply