Шаблон:Weather box/samples/sunshine

From Традиция
Jump to navigation Jump to search


Template:Weather box/cols can be used to produce a background color in a table cell, based off a given number. Insert {{Weather box/cols|0}}, with a number from the hours in a 30-day month table above as the first parameter, into a style statement.

{| class="wikitable"
| style="{{Weather box/cols|37}}"|450
| style="{{Weather box/cols|279}}"|3,400
| style="{{Weather box/cols|522}}"|6,350

Will produce

450 3,400 6,350