Template:Tfluc-common-doc: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
 
imported>Qwerty284651
Added {{Same}} as equivalent/shortcut for {{Steady}}.
 
(One intermediate revision by one other user not shown)
Line 19: Line 19:
}
}
},
},
"description": "This is one of a series of templates to display an increase or decrease arrow icon. {{Increase}}&nbsp;{{tl|Increase}} = {{tl|IncreasePositive}} = {{tl|Gain}} = {{tl|Profit}} is a green up arrow. \n{{Down}}&nbsp;{{tl|Decrease}} = {{tl|DecreaseNegative}} = {{tl|Down}} = {{tl|Loss}} is a red down arrow. \n{{Steady}}&nbsp;{{tl|Steady}} = {{tl|Nochange}} is a flat line for no change. Where the quantity involved should be minimized (e.g. road accidents), use {{IncreaseNegative}} {{tl|IncreaseNegative}} and {{DecreasePositive}} {{tl|DecreasePositive}} instead, which flip the colors. Where the quantity involved is neither color, use {{IncreaseNeutral}} {{tl|IncreaseNeutral}} and {{DecreaseNeutral}} {{tl|DecreaseNeutral}}.<br/><br/>To automatically display the appropriate symbol along with a value, use {{tl|Fluctuation formatter}}.",
"description": "This is one of a series of templates to display an increase or decrease arrow icon. {{Increase}}&nbsp;{{tl|Increase}} = {{tl|IncreasePositive}} = {{tl|Up}} = {{tl|Gain}} = {{tl|Profit}} is a green up arrow. \n{{Down}}&nbsp;{{tl|Decrease}} = {{tl|DecreaseNegative}} = {{tl|Down}} = {{tl|Loss}} is a red down arrow. \n{{Steady}}&nbsp;{{tl|Steady}} = {{tl|Nochange}} = {{tl|Same}} is a flat line for no change. Where the quantity involved should be minimized (e.g. road accidents), use {{IncreaseNegative}} {{tl|IncreaseNegative}} and {{DecreasePositive}} {{tl|DecreasePositive}} instead, which flip the colors. Where the quantity involved is neither color, use {{IncreaseNeutral}} {{tl|IncreaseNeutral}} and {{DecreaseNeutral}} {{tl|DecreaseNeutral}}.<br/><br/>To automatically display the appropriate symbol along with a value, use {{tl|Fluctuation formatter}}.",
"format": "inline"
"format": "inline"
}
}
}}
}}
==See also==
==See also==
* [[Template:Fluctuation formatter]]
* [[Template:Fluctuation formatter]]

Latest revision as of 21:26, 30 January 2022

Icons to show fluctuation

<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>

This templatedata is intended to be generic and apply to all the templates mentioned.

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Tfluc-common-doc in articles based on its TemplateData.

TemplateData for Tfluc-common-doc

This is one of a series of templates to display an increase or decrease arrow icon. Increase {{Increase}} = {{IncreasePositive}} = {{Up}} = {{Gain}} = {{Profit}} is a green up arrow. Decrease {{Decrease}} = {{DecreaseNegative}} = {{Down}} = {{Loss}} is a red down arrow. Steady {{Steady}} = {{Nochange}} = {{Same}} is a flat line for no change. Where the quantity involved should be minimized (e.g. road accidents), use Negative increase {{IncreaseNegative}} and Positive decrease {{DecreasePositive}} instead, which flip the colors. Where the quantity involved is neither color, use Neutral increase {{IncreaseNeutral}} and Neutral decrease {{DecreaseNeutral}}.

To automatically display the appropriate symbol along with a value, use {{Fluctuation formatter}}.
Tooltip text1
Changes the text displayed on hover.
Default
Defaults to something appropriate to the chosen template, such as "Increase".
Example
−5%
sizesize
Changes the size of the icon. Use when adjacent to small/large text.
Default
11px

This is one of a series of templates to display an increase or decrease arrow icon. {{Increase}} = {{IncreasePositive}} = {{Up}} = {{Gain}} = {{Profit}} is a green up arrow. {{Decrease}} = {{DecreaseNegative}} = {{Down}} = {{Loss}} is a red down arrow. {{Steady}} = {{Nochange}} = {{Same}} is a flat line for no change. Where the quantity involved should be minimized (e.g. road accidents), use {{IncreaseNegative}} and {{DecreasePositive}} instead, which flip the colors. Where the quantity involved is neither color, use {{IncreaseNeutral}} and {{DecreaseNeutral}}. To automatically display the appropriate symbol along with a value, use {{Fluctuation formatter}}.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Tooltip text1

Changes the text displayed on hover.

Default
Defaults to something appropriate to the chosen template, such as "Increase".
Example
−5%
Stringoptional
sizesize

Changes the size of the icon. Use when adjacent to small/large text.

Default
11px
Unknownoptional

See also