Template:Legend: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(4 intermediate revisions 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|}}}| | -->{{#if:{{{1|}}}|background-color: {{{1}}};}}<!-- | ||
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!-- | -->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!-- | ||
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}<!-- | -->{{#if:{{{size|}}}|font-size:{{{size}}};}}<!-- | ||
Line 24: | Line 24: | ||
{ | { | ||
"params": { | "params": { | ||
"1": {}, | "1": { | ||
"2": {}, | "type": "line", | ||
"border": {}, | "required": true | ||
"outline": {}, | }, | ||
"textcolor": {}, | "2": { | ||
"size": {}, | "type": "string", | ||
"text": {}, | "suggested": true | ||
"alt": {} | }, | ||
"border": { | |||
"type": "string" | |||
}, | |||
"outline": { | |||
"type": "line" | |||
}, | |||
"textcolor": { | |||
"type": "string" | |||
}, | |||
"size": { | |||
"type": "string" | |||
}, | |||
"text": { | |||
"type": "line" | |||
}, | |||
"alt": { | |||
"type": "string" | |||
} | |||
} | } | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
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 |