සැකිල්ල:Weather box/samples/sunshine
Appearance
Usage
[සංස්කරණය]Module:Weather box/colors can be used to produce a background color in a table cell, based off a given number. Insert {{#invoke:Weather box/colors|color_s|0}}, with a number from the hours in a 30-day month table above as the first parameter, into a style statement.
- Example
{| class="wikitable" |- | style="font-size:85%;{{#invoke:Weather box/colors|color_s|37}}"|450 | style="font-size:85%;{{#invoke:Weather box/colors|color_s|279}}"|3,400 | style="font-size:85%;{{#invoke:Weather box/colors|color_s|522}}"|6,350 |}
Will produce
450 | 3,400 | 6,350 |