This is the template sandbox page for Template:Legend striped (diff). See also the companion subpage for test cases. |
This template uses TemplateStyles: |
Shows a legend row with a two colored box. Complementary to the one color legend template.
{{Legend striped|''top color''|''bottom color''|''label''|outline=''outline color''|border=''css border''}}
1px solid #aaa
) of the border that will be drawn around the box.Additionally, editors can specify several other optional fields:
) will help center it. The color of this text may also be specified with the field textcolor. Will not work with up field.{{Legend striped|black|gray|Oakland}}
{{Legend striped|green|gold|Green Bay}}
{{Legend striped|purple|black|''Baltimore''|up=yes}}
{{Legend striped|#003b7b|#fff|'''Indianapolis'''|outline=silver}}
{{Legend striped|#c80815|#e6be8a|[[San Francisco]]|border=2px solid black}}
{{Legend striped|#0c2340|#a2aaad|border=3px solid #78be20|Seattle}}
{{Legend striped|white|gold|border=3px solid maroon|text='''F'''|textcolor=maroon|Washington}}
Current compatibility issues are based on different browsers implementation of CSS protocol. These boxes, for example, may look too tall on mobile browsers. Please let the developers know on the talk page if there are issues.