ਫਰਮਾ:Value color/doc

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਅਜ਼ਾਦ ਗਿਆਨਕੋਸ਼ ਤੋਂ

This template returns the color for a given value in a range. It interpolates the colour between given min and max values and colors (if not specified, these are assumed to be white for the min and black for the max). It might be a good idea to use it with a template like {{Greater color contrast ratio}} to make sure the text is legible.

Usage[ਸੋਧੋ]

{{Value color|value|min|max|min color|max color}}

Parameters
  • |1= - The value of the cell (a number)
  • |2= - The minimum value of the range
  • |3= - The maximum value of the range
  • |4= - The color for the minimum value specified by |2=
  • |5= - The color for the maximum value specified by |3=

Example[ਸੋਧੋ]

<span style="color:{{Value color|50|25|100|FF0000|0000FF}}">Foo</span> --> Foo

See also[ਸੋਧੋ]