Template:Rating single

From Infobox Wiki
Jump to: navigation, search
{{{header}}}:
Low
High
{{{item}}}: 1 2 3 4 5 6 7 8 9


Includes[edit source]

  • Header is hidden if not used to create list
  • Background and text are variables to offer color-coding


Example[edit source]

Potato
Potato.jpg
Resistances:
Low
High
Black dot: 1 · · · · · · · ·
Black scurf: · 2 · · · · · · ·
Dry rot: · · 3 · · · · · ·
Potato leaf roll virus: · · · 4 · · · · ·
Late blight on foliage: · · · · 5 · · · ·
Late blight on tubers: · · · · · 6 · · ·
Powdery scab: · · · · · · 7 · ·
Silver scurf: · · · · · · · 8 ·
Skin spot: · · · · · · · · 9
{| style="width:300px; float:right; clear:right; border:1px solid #aaa; background-color:#F9F9F9; font-size:89%; padding:.5em; margin:0 0 1em 1em;" 
! style="background:peru; font-size:120%; color:white; padding:.5em;" | Potato
|-
| <center> [[File:Potato.jpg|280px]] </center> 
|-
|
{{Rating single
 | header     = Resistances
 | item       = Black dot
 | rating     = 1
 | background = peru
 | color      = cornsilk
}}
{{Rating single
 | item       = Black scurf
 | rating     = 2
 | background = peru
 | color      = cornsilk
}}
{{Rating single
 | item       = Dry rot
 | rating     = 3
 | background = peru
 | color      = cornsilk
}}
{{Rating single
 | item       = Potato leaf roll virus
 | rating     = 4
 | background = peru
 | color      = cornsilk
}}
{{Rating single
 | item       = Late blight on foliage
 | rating     = 5
 | background = peru
 | color      = cornsilk
}}
{{Rating single
 | item       = Late blight on tubers
 | rating     = 6
 | background = peru
 | color      = cornsilk
}}
{{Rating single
 | item       = Powdery scab
 | rating     = 7
 | background = peru
 | color      = cornsilk
}}
{{Rating single
 | item       = Silver scurf
 | rating     = 8
 | background = peru
 | color      = cornsilk
}}
{{Rating single
 | item       = Skin spot
 | rating     = 9
 | background = peru
 | color      = cornsilk
}}
|}