“Template:Legend”与“Template:Legend/sandbox”:页面之间的差异
外观
(页面间差异)
删除的内容 添加的内容
小 {{元素週期表 (正文)}}圖例顏色失效 |
无编辑摘要 |
||
第1行: | 第1行: | ||
<includeonly><div class="legend"><span class="{{#if:{{{styleclass|}}}|legend-color {{{styleclass}}}|legend-color}}" style="{{#if:{{{styleclass|}}}|{{#if:{{yesno|1={{{styleclass_has_border|}}} }}||border:{{{border|1px solid {{{outline|black}}}}}};}}|border:{{{border|1px solid {{{outline|black}}}}}};}}display:inline-block; height:1.5em; margin:1px; text-align:center; {{#if:{{{1|}}}|background:{{trim|{{{1|transparent}}}}};|{{#if:{{{styleclass|}}}||background:transparent;}} }}{{#if:{{{textcolor|}}}|color:{{{textcolor|black}}};|{{#if:{{{styleclass|}}}||color:black;}} }}font-size:{{{size|90%}}}; width:{{{width|1.5em}}}">{{#if:{{{text|}}}|<span class="legend-text">{{{text|}}}</span>| }}</span> {{{2|}}}</div></includeonly><noinclude> |
|||
<includeonly><!-- |
|||
--><templatestyles src="Legend/styles.css" /><!-- |
|||
--><div class="legend"><!-- |
|||
--><span class="{{#if:{{{styleclass|}}}|{{{styleclass}}} {{#if:{{yesno|{{{legend-color|yes}}}}}|legend-color|legend-color-styled}}|legend-color}} mw-no-invert" 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|}}}{{{alt|}}} |
|||
| <span class="legend-text" style="{{#if:{{{alt|}}}|color:{{{1|}}};}}font-family: monospace, monospace;">{{If empty|{{{alt|}}}|{{{text|}}}| }}</span>| }}<!-- |
|||
--></span><!-- |
|||
--> {{{2|}}}<!-- |
|||
--></div><!-- |
|||
--></includeonly><noinclude> |
|||
{{Documentation}} |
|||
</noinclude> |