Predloga:Legenda

Iz Wikipedije, proste enciklopedije
(Preusmerjeno s strani Predloga:Legend)
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]

Prikaže vrstico legende z obarvanim okvirčkom.

Uporaba[uredi kodo]

{{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[uredi kodo]

Uporaba v besedilu[uredi kodo]

{{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)[uredi kodo]

Uporaba 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}}
 ]]
The Celts in Europe, past and present:
  aa
  bb
  cc
  dd
  ee

Seznam vseh parametrov[uredi kodo]

{{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-->
}}