Template:Legend: Difference between revisions

From Horizon's End Wiki
(Created page with "<includeonly><!-- --><templatestyles src="Legend/styles.css" /><!-- --><div class="legend"><!-- --><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="...")
 
No edit summary
 
(3 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" 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|}}}|<span class="legend-text">{{{text}}}</span>|&nbsp;}}<!--
<noinclude>
  --></span><!--
{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here -->
 
<templatedata>
  -->&nbsp;{{{2|}}}<!--
{
 
"params": {
--></div><!--
"color": {
--></includeonly><noinclude>
"description": "Color to be displayed"
{{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