Template:Legend: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Nihiltres Updated from sandbox to use Template:Greater color contrast ratio to ensure accessible labels by default |
Quantumhusky (talk | contribs) m 1 revision imported |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><templatestyles src="Legend/styles.css" /><!-- | --><templatestyles src="Legend/styles.css" /><!-- | ||
--><div class="legend"><span class="legend-color" style="<!-- | --><div class="legend"><!-- | ||
-->{{#if:{{{border|}}}|border: {{{border}}};|{{#if:{{{outline|}}}|border: 1px solid {{{outline}}};}}}} <!-- | --><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:{{{1|}}}|{{greater color contrast ratio|{{{1}}}|white|black|css=y}}}}<!-- | ||
-->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}} <!-- | -->{{#if:{{{textcolor|}}}|color:{{{textcolor}}};}}<!-- | ||
-->{{#if:{{{size|}}}|font-size:{{{size}}};}} | -->{{#if:{{{size|}}}|font-size:{{{size}}};}}"><!-- | ||
-->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>| }}</span><!-- | -->{{#if:{{{text|}}}|<span class="legend-text">{{{text}}}</span>| }}<!-- | ||
--> {{{2|}}}</div><!-- | --></span><!-- | ||
--></includeonly><noinclude>{{Documentation}}</noinclude> | |||
--> {{{2|}}}<!-- | |||
--></div><!-- | |||
--></includeonly><noinclude> | |||
{{Documentation}} | |||
</noinclude> | |||
Latest revision as of 06:28, 6 June 2021
Lua error in Module:Documentation at line 7: Module:Documentation/config returned boolean, table expected.