Template:Legend: Difference between revisions
From Archon Arcana - The KeyForge Wiki
imported>Zocky |
imported>TheDJ |
(48 intermediate revisions by 34 users not shown) |
Line 1: |
Line 1: |
| <onlyinclude><p style="margin:0px;font-size:90%"><span style="border:{{{border|none}}};background-color:{{{1|none}}};color:{{{1|none}}};">██</span> {{{2|}}}</p></onlyinclude> | | <includeonly><div class="legend" style="-webkit-column-break-inside: avoid;page-break-inside: avoid;break-inside: avoid-column"><span class="legend-color" style="display:inline-block; width:1.5em; height:1.5em; margin:1px 0; border:{{{border|1px solid {{{outline|black}}}}}}; background-color:{{trim|{{{1|transparent}}}}}; color:{{{textcolor|black}}}; font-size:{{{size|100%}}}; text-align:center;">{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>| }}</span> {{{2|}}}</div></includeonly><noinclude> |
| <!-- You are advised to read the talk page before changing this template. -->
| | {{Documentation}} |
| Shows a legend row with a colored box.
| | </noinclude> |
| | |
| ;Usage: | |
| <nowiki>{{</nowiki>legend|''color''|''label''|border=''border''<nowiki>}}</nowiki>
| |
| | |
| ''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.
| |
| | |
| ;Example:
| |
| <nowiki>{{legend|black|Africa}}</nowiki>
| |
| <nowiki>{{legend|green|Americas}}</nowiki>
| |
| <nowiki>{{legend|blue|Oceania}}</nowiki>
| |
| <nowiki>{{legend|#ff0|Europe}}</nowiki>
| |
| <nowiki>{{legend|#ff2800|Asia}}</nowiki>
| |
| | |
| | |
| <p style="margin:0px;font-size:90%"><span style="border:none;color:black;background-color:black">mm</span> Africa</p>
| |
| <p style="margin:0px;font-size:90%"><span style="border:none;color:green;background-color:green">mm</span> Americas</p>
| |
| <p style="margin:0px;font-size:90%"><span style="border:none;color:blue;background-color:blue">mm</span> Oceania</p>
| |
| <p style="margin:0px;font-size:90%"><span style="border:none;color:#FF0;background-color:#FF0">mm</span> Europe</p>
| |
| <p style="margin:0px;font-size:90%"><span style="border:none;color:#FF2800;background-color:#FF2280">mm</span> Asia</p>
| |
| | |
| | |
| For legends involving lines on a map, see {{tl|legend-line}}.
| |
| | |
| [[de:Vorlage:Legende]]
| |
| [[es:Plantilla:Legend]]
| |
| [[ko:Template:범례]]
| |
| [[hu:Sablon:Jelmagyarázat]]
| |
| [[pl:Szablon:Legenda]]
| |
| [[ru:Шаблон:Легенда]]
| |
| [[sr:Шаблон:Легенда]]
| |
| [[vi:Tiêu bản:Legend]]
| |
| [[zh:Template:Legend]]
| |
| [[Category:Legend templates]]
| |
Latest revision as of 08:29, 1 September 2017