Template:Legend: Difference between revisions

From Horizon's End Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
{|
--><templatestyles src="Legend/styles.css" /><!--
|
--><div class="legend"><!--
  {| class="wikitable" style="max-width:20px;max-height:20px;min-width:20px;min-height:20px;cell-padding:0px;background-color:{{{color|}}}"
  --><span class="legend-color mw-no-invert" style="<!--
  |style="font-size: 0%|.
-->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}}<!--
  |}
-->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|white|black|css=y}}}}<!--
|style="font-size: 75%; font-weight: bold"|{{{description|}}}
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!--
|}
-->{{#if:{{{size|}}}|font-size:{{{size}}};}}"><!--


    -->{{#if:{{{text|}}}{{{alt|}}}
<noinclude>
        | <span class="legend-text" style="{{#if:{{{alt|}}}|color:{{{1|}}};}}font-family: monospace, monospace;">{{If empty|{{{alt|}}}|{{{text|}}}|&nbsp;}}</span>|&nbsp;}}<!--
{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here -->
  --></span><!--
<templatedata>
 
{
  -->&nbsp;{{{2|}}}<!--
"params": {
 
"color": {
--></div><!--
"description": "Color to be displayed"
--></includeonly><noinclude>
},
{{Documentation}}
"description": {
"description": "Description of color"
}
},
"description": "Display a color and a description of the color",
"paramOrder": [
"color",
"description"
]
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 11:42, 24 December 2024

.


Display a color and a description of the color

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
colorcolor

Color to be displayed

Unknownoptional
descriptiondescription

Description of color

Unknownoptional