Vés al contingut

Plantilla:Llegenda doble/ús

De la Viquipèdia, l'enciclopèdia lliure

Descripció

[modifica]

Mostra una fila de llegenda amb un quadre de dos colors. Complementari a l'únic color de la plantilla de llegenda.

Sintaxi

[modifica]
{{Llegenda doble|top color|bottom color|label|outline=outline color|border=css border}}
  • top color and bottom color are passed to the css background-color property of the color box. These fields are required.
  • label is optional, and adds text to the right of the box. Text may be ''italic'', '''bold''', or [[enllaçat]] as well.
  • The optional outline parameter is the color of the outline around the box.
  • If you need to customize the border further, you can use the border argument, which overrides the outline argument and sets the css description (e.g., 1px solid #aaa) of the border that will be drawn around the box.

Additionally, editors can specify several other optional fields:

  • up: will make the diagonal line go from bottom left to top right. The default is top left to bottom right.
  • text: will put one or two characters of text inside the box. If using one character, a espai no separable ( ) will help center it. The color of this text may also be specified with the field textcolor. Will not work with up field.

Exemples

[modifica]

Ús típic

[modifica]
{{Llegenda doble|black|gray|Oakland}}
{{Llegenda doble|green|gold|Green Bay}}
{{Llegenda doble|purple|black|''Baltimore''|up=yes}}
{{Llegenda doble|#003b7b|#fff|'''Indianapolis'''|outline=silver}}
{{Llegenda doble|#c80815|#e6be8a|[[San Francisco]]|border=2px solid black}}
  Oakland
  Green Bay
  Baltimore
  Indianapolis

Ús avançat

[modifica]
{{Llegenda doble|#0c2340|#a2aaad|border=3px solid #78be20|Seattle}}
{{Llegenda doble|white|gold|border=3px solid maroon|text='''F'''|textcolor=maroon|Washington}}
  Seattle
 F Washington

Vegeu també

[modifica]