Template:Legend: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
--><span class="legend-color mw-no-invert" style="<!-- | --><span class="legend-color mw-no-invert" style="<!-- | ||
-->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}}<!-- | -->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}}<!-- | ||
-->{{#if:{{{1|}}}|background-color: | -->{{#if:{{{1|}}}|background-color: {{{1}}};}}<!-- | ||
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!-- | -->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!-- | ||
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}<!-- | -->{{#if:{{{size|}}}|font-size:{{{size}}};}}<!-- |
Latest revision as of 11:46, 10 March 2025
Shows a legend row with a colored box.
Usage
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | Line | required |
2 | 2 | no description | String | suggested |
border | border | no description | String | optional |
outline | outline | no description | Line | optional |
textcolor | textcolor | no description | String | optional |
size | size | no description | String | optional |
text | text | no description | Line | optional |
alt | alt | no description | String | optional |