Predloga:Legenda
(Preusmerjeno s strani Predloga:Legend)
Ta predloga uporablja TemplateStyles: |
Prikaže vrstico legende z obarvanim okvirčkom.
Uporaba
uredi{{legend|background-color|caption|outline=outline color|border=css border}}
- background-color is passed to the css background-color property of the color box.
- The optional outline parameter is the color of the outline around the box.
- The optional 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.
Zgled
urediUporaba v besedilu
uredi{{legenda|black|Afrika}}
{{legenda|green|Ameriki}}
{{legenda|blue|Oceanija}}
{{legenda|#ffa|Evropa|outline=silver}}
{{legenda|#ff2800|Azija|outline=#A2A9B1}} (#A2A9B1 is the wikitables border color.)
Afrika
Ameriki
Oceanija
Evropa
Azija
Uporaba v besedilu slike (caption)
urediUporaba | Izpis |
---|---|
[[Image:Celts in Europe.png|200px|thumb|right|The Celts in Europe, past and present: {{legend|#1a8000|aa}} {{legend|#27c600|bb}} {{legend|#97ffb6|cc}} {{legend|#D2FFD2|dd}} {{legend|yellow|ee}} ]] |
|
Seznam vseh parametrov
uredi{{legend | [legend box's colo(u)r] | [text following legend box] | outline = <!--colo(u)r of border around legend box--> | border = <!--use to specify custom CSS styling for border (overrides 'outline')--> | color = <!--colo(u)r of 'text'--> | size = <!--'text' font-size--> | text = <!--to place text inside the legend box--> }}