Template:Legend: Difference between revisions

m
98 revisions imported from wikipedia:Template:Legend
(rmy+)
m (98 revisions imported from wikipedia:Template:Legend)
 
(44 intermediate revisions by 31 users not shown)
Line 1:
<includeonly><!--
<span style="margin:0px;font-size:90%; display: block;"><span style="border:{{{border|none}}};background-color:{{{1|none}}};color:{{{1|none}}};">██</span>&nbsp;{{{2|}}}</span><noinclude>
--><templatestyles src="Legend/styles.css" /><!--
<!-- You are advised to read the talk page before changing this template. -->
--><div class="legend"><!--
Shows a legend row with a colored box.
--><span class="legend-color" style="<!--
-->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}}<!--
-->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|white|black|css=y}}}}<!--
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!--
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}"><!--
 
-->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>|&nbsp;}}<!--
;Usage:
--></span><!--
<nowiki>{{</nowiki>legend|''color''|''label''|border=''border''<nowiki>}}</nowiki>
 
-->&nbsp;{{{2|}}}<!--
''color'' is passed to the [[Cascading Style Sheets|css]] background property, so it can also include images. The optional ''border'' argument is passed to the css border property.
 
--></div><!--
;Example:
--></includeonly><noinclude>
<nowiki>{{legend|black|Africa}}</nowiki>
{{Documentation}}
<nowiki>{{legend|green|Americas}}</nowiki>
<nowiki>{{legend|blue|Oceania}}</nowiki>
<nowiki>{{legend|#ff0|Europe}}</nowiki>
<nowiki>{{legend|#ff2800|Asia}}</nowiki>
 
{{legend|black|Africa}}
{{legend|green|Americas}}
{{legend|blue|Oceania}}
{{legend|#ff0|Europe}}
{{legend|#ff2800|Asia}}
 
For legends involving lines on a map, see {{tl|legend-line}}.
 
[[Category:Legend templates]]
 
[[ca:Template:Llegenda]]
[[cy:Nodyn:Legend]]
[[de:Vorlage:Legende]]
[[es:Plantilla:Legend]]
[[fr:Modèle:Légende]]
[[ka:თარგი:ლეგენდა]]
[[ko:Template:범례]]
[[hu:Sablon:Jelmagyarázat]]
[[pl:Szablon:Legenda]]
[[rmy:Xalyaripen]]r
[[ru:Шаблон:Легенда]]
[[sl:Predloga:Legenda]]
[[sr:Шаблон:Легенда]]
[[vi:Tiêu bản:Legend]]
[[zh:Template:Legend]]
</noinclude>