Шаблон:Onf

Мавод аз Википедиа — донишномаи озод
Ҳуҷҷатгузорӣ

Use

This template creates three sortable cells in a row of a sortable table. The first cell displays a base value, the second cell displays a primary value, and the third cell displays the percent change from the base value to the primary value.

The base and primary values are displayed with thousands separators. A gain is indicated by the percentage increase to two decimals with a leading plus sign displayed in green. A loss is indicated by the percentage decrease to two decimals with a leading minus sign displayed in red. No change is indicated with 0.00% in the default color. This template is useful for displaying population, expenditures, prices, etc.

The syntax for this template is:

{{onf|var1|var2|date=}}

where:

  • var1 is a real number representing the base value
  • var2 is a real number representing the primary value
  • date is the optional date of last data update

The following sortable table illustrates the use of this template.

Region Wikitext Budget Actual Dev
Big Meadow {{onf|1830000|1900679.75}} 1 830 000 1 900 679,75 style="text-align:right;"|1 830 000 1 900 679,75 +3,86%
Mount Acme {{onf|2450000|2205678.37}} 2 450 000 2 205 678,37 style="text-align:right;"|2 450 000 2 205 678,37 −9,97%
Homeport {{onf|5120000|5589462.60}} 5 120 000 5 589 462,60 style="text-align:right;"|5 120 000 5 589 462,6 +9,17%
Longwood {{onf|930000|930027.92}} 930 000 930 027,92 style="text-align:right;"|930 000 930 027,92 0,00%
Meadowbrook {{onf|2450000|2450000.00}} 2 450 000 2 450 000,00 style="text-align:right;"|2 450 000 2 450 000 0,00%
Johnstown {{onf|3400000|3902340.05}} 3 400 000 3 902 340,05 style="text-align:right;"|3 400 000 3 902 340,05 +14,77%
Lakewood {{onf|2250000|2236005.56}} 2 250 000 2 236 005,56 style="text-align:right;"|2 250 000 2 236 005,56 −0,62%
Fox Hollow {{onf|1180000|1190345.32}} 1 180 000 1 190 345,32 style="text-align:right;"|1 180 000 1 190 345,32 +0,88%
Riverton {{onf|10550000|11236005.55}} 10 550 000 11 236 005,55 style="text-align:right;"|10 550 000 11 236 005,55 +6,50%
Timber Creek {{onf|1360000|1310948.30}} 1 360 000 1 310 948,30 style="text-align:right;"|1 360 000 1 310 948,3 −3,61%

See also