Template:Ink chip: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 16: Line 16:
{{Color chip|Yellow|text=black}}  
{{Color chip|Yellow|text=black}}  
</noinclude>
</noinclude>
<includeonly><span class="color-chip" style="
<includeonly><span class="chip color-chip" style="
font-size:1rem;
line-height: 1rem;
display:inline-block;
border-radius: .5rem;
padding:.5rem 1rem;
font-weight: 500;
vertical-align: middle;
color: {{{text|white}}};
color: {{{text|white}}};
background:#{{#show: {{{1}}} |?Has display hex # }};">{{{1|}}}</span></includeonly>
background:#{{#show: {{{1}}} |?Has display hex # }};">[[{{{1|}}}]]</span></includeonly>

Revision as of 01:51, 3 December 2024

A template to display ink colors as chips.

Usage

{{Color chip|Violet}}

Template:Color chip

Advanced attributes

Some chips, such as Yellow, will require Black text. You can add the additional attribute `text=black` to change the overlaying text color to Black.

{{Color chip|Yellow|text=black}}

Template:Color chip