Template:Increase/doc
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|
This is a documentation subpage for Template:Increase. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Template:Increase | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
<templatestyles src="Template:Ombox/styles.css" />
This {{#switch:Template|Module=Lua module|#default=template}} is used on [https://tools.wmflabs.org/templatecount/index.php?lang=en&namespace=10&name=%7B%7B%0A%23switch%3A+doc%0A%7C+doc+%7C+sandbox+%3D+Increase%0A%7C+%23default++++++%3D+Increase%2Fdoc%0A%7D%7D {{#iferror:{{#expr:0+{{#ifeq:yes|yes|23000+|23000+}}*1}}|many|approximately {{#ifeq:{{#ifeq:yes|yes|23000+|23000+}}|0
|0 |{{significant figures/{{#if:2 |rnd |sum }} |1={{#ifeq:yes|yes|23000+|23000+}} |2=2 |3={{safesubst:#ifexpr:{{#ifeq:yes|yes|23000+|23000+}}=0 |{{safesubst:#ifexpr:abs{{#ifeq:yes|yes|23000+|23000+}}1=1 |0 |{{safesubst:#expr:floor((ln(abs{{#ifeq:yes|yes|23000+|23000+}}1)/ln10)+1)}} }} |{{#expr:floor((ln(abs({{#ifeq:yes|yes|23000+|23000+}}) )/ln 10)+1E((abs{{#ifeq:yes|yes|23000+|23000+}}>1E100 or abs{{#ifeq:yes|yes|23000+|23000+}}<1E-100)-14))}} }} }} }}}} pages], so changes to it will be widely noticed. Please test any changes in the {{#switch:Template|Module=module's|#default=template's}} [[{{#switch: doc | doc | sandbox = Template:Increase | #default = Template:Increase/doc }}/sandbox|/sandbox]] or [[{{#switch: doc | doc | sandbox = Template:Increase | #default = Template:Increase/doc }}/testcases|/testcases]] subpages{{#switch:Template|Module=.|#default=, or in your own user subpage.}} Please consider discussing changes {{#if:|at [[{{{2}}}]]|on the [[{{#switch: doc | doc | sandbox = Template talk:Increase | #default = Template talk:Increase/doc}}|talk page]]}} before implementing them. |
These templates show icons to indicate increase or decrease, such as ranking in a list or company profit.
- : {{Increase}} = {{Gain}} = {{Profit}}, to show an increase or going up in rankings
- : {{Decrease}} = {{Down}} = {{Loss}}, to show a decrease or going down in rankings
- : {{Steady}} = {{Nochange}}
An optional first argument alters the tooltip comment. For example, {{Decrease{{#ifeq:-5%|-5%| |-5% }}{{#ifeq:x|| |{{{3}}} }}{{#ifeq:x|| |{{{4}}} }}{{#ifeq:x|| |{{{5}}} }}{{#ifeq:x|| |{{{6}}} }}{{#ifeq:x|| |{{{7}}} }}{{#ifeq:x|| |{{{8}}} }}{{#ifeq:x|| |{{{9}}} }}}} produces .
In cases where a symbol is needed to represent an increase that is "bad" or a decrease that is "good", such as a rise or fall in road accident fatalities, the following should be used:
- : {{IncreaseNegative}}, to show an increase which is actually bad.
- : {{DecreasePositive}}, to show a decrease which is actually good.