Template:Ink chip: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 10: Line 10:


=== Advanced attributes ===
=== 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.
Sometimes you will need the chip to point to a link other than the title, you can use that buy adding the ''link'' attribute:
<pre>
<pre>
{{Color chip|Yellow|text=black}}
{{Color chip|Yellow|link=Violet}}
</pre>
</pre>
{{Color chip|Yellow|text=black}}  
{{Color chip|Yellow|link=Violet}}  
</noinclude>
</noinclude>
<includeonly><span class="chip color-chip" style="
<includeonly><span class="chip color-chip text-{{#switch:{{lc:{{{1}}}}}
color: {{{text|white}}};
| mint = black
background:#{{#show: {{{1}}} |?Has display hex # }};">[[{{{1|}}}]]</span></includeonly>
| light lime = black
| yellow = black
| fluorescent yellow = black
| sunflower = black
| melon = black
| light mauve = black
| bisque = black
| mist = black
| white = black
| clear medium = black
| #default = {{{text|white}}}
}}" style="background:#{{#show: {{{1}}} |?Has display hex # }};">[[{{{link|{{{1|}}}}}}|{{{1|}}}]]</span></includeonly>

Revision as of 02:15, 3 December 2024

A template to display ink colors as chips.

Usage

{{Color chip|Violet}}

Template:Color chip

Advanced attributes

Sometimes you will need the chip to point to a link other than the title, you can use that buy adding the link attribute:

{{Color chip|Yellow|link=Violet}}

Template:Color chip