Template:Yea: Difference between revisions
From Inkipedia, the Splatoon wiki
Driftin Soul (talk | contribs) (Switching up colors for better contrast after Discord discussion) |
(Upon review, it was only userspace custom tables that had a contrast problem; they were not using the default white for cells, so the contrast problem was self-inflicted. Further, the inverted style looked bad for tables using the default style. So, I am relegating the inverted contrast style to a parameter.) |
||
Line 1: | Line 1: | ||
<noinclude>This template makes a table cell look like this: | <noinclude>This template makes a table cell look like this: | ||
{| class="wikitable | {| class="wikitable" | ||
|- | |- | ||
|</noinclude>style="background-color:#008000; text-align: center;" | <span style="color:#D2FFD2 ;">'''✓'''</span><noinclude> | |</noinclude>style="background-color: #{{#switch: {{{1}}} | dark = 008000 | #default = D2FFD2 }}; text-align: center;" | <span style="color: #{{#switch: {{{1}}} | dark = D2FFD2 | #default = 008000 }};">'''✓'''</span><noinclude> | ||
|} | |} | ||
For an X, see [[Template:Nay]]. | |||
{{ | |||
== Usage == | |||
For a normal cell, type: <code><nowiki>{{yea}}</nowiki></code> | |||
For a darker cell, type: <code><nowiki>{{yea|dark}}</nowiki></code> | |||
{| class="wikitable" | |||
|- | |||
| {{yea|dark}} | |||
|} | |||
[[Category:Table cell templates]] | [[Category:Table cell templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 15:35, 25 July 2024
This template makes a table cell look like this:
✓ |
For an X, see Template:Nay.
Usage
For a normal cell, type: {{yea}}
For a darker cell, type: {{yea|dark}}
✓ |