Template:Color box: Difference between revisions

From IxWiki
Jump to navigation Jump to search
wp>Useddenim
( {{greater color contrast ratio}} to select default text color)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="background-color:{{{1|}}}; color:{{#if:{{{3|}}}|{{{3}}}|{{greater color contrast ratio|{{{1|}}}|black|white}}}}; border:1px solid {{{border|#000000}}}; text-align:center;">{{#if:{{{2|}}}|&nbsp;{{{2}}}&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;}}</span><noinclude>
<templatestyles src="Legend/styles.css" /><span class="legend-color" style="{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|black|white|css=y}}
{{documentation}}
  }}{{#if:{{{3|}}}|color:{{{3}}};
</noinclude>
  }}{{#if:{{{border|}}}|border:1px solid {{{border}}};
  }}{{#if:{{{padding|}}}|padding:{{{padding}}};}}">{{#if:{{{2|}}}
      |{{#if:{{{padding|}}}|{{{2}}}|&nbsp;{{{2}}}&nbsp;}}
      |&nbsp;}}</span><noinclude>
{{documentation}}</noinclude>

Latest revision as of 12:12, 24 September 2023