"साँचा:Color box" के अवतरणों में अंतर

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ
imported>Hunnjazal
 
(Update from sandbox; this allows custom padding to be specified, and if so does not add   to text.)
पंक्ति १: पंक्ति १:
<templatestyles src="Legend/styles.css" /><!--
<templatestyles src="Legend/styles.css" /><span class="legend-color" style="{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|black|white|css=y}}
--><span class="legend-color" style="<!--
  }}{{#if:{{{3|}}}|color:{{{3}}};
-->{{#if:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|black|white|css=y}}}}<!--
  }}{{#if:{{{border|}}}|border:1px solid {{{border}}};
-->{{#if:{{{3|}}}|color:{{{3}}};}}<!--
  }}{{#if:{{{padding|}}}|padding:{{{padding}}};}}">{{#if:{{{2|}}}
-->{{#if:{{{border|}}}|border:1px solid {{{border}}};}}<!--
      |{{#if:{{{padding|}}}|{{{2}}}|&nbsp;{{{2}}}&nbsp;}}
-->"><!--
      |&nbsp;}}</span><noinclude>
-->{{#if:{{{2|}}}|&nbsp;{{{2}}}&nbsp;|&nbsp;}}</span><!--
{{documentation}}</noinclude>
--><noinclude>{{documentation}}</noinclude>

१३:२२, १ जुलाई २०२२ का अवतरण

  साँचा:documentation