Template:Ink chip: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 2: Line 2:
A template to display ink colors as [https://m3.material.io/components/chips/overview chips].  
A template to display ink colors as [https://m3.material.io/components/chips/overview chips].  


== Usage ==
==Usage==


<pre>
<pre>
Line 9: Line 9:
{{Color chip|Violet}}
{{Color chip|Violet}}


=== Advanced attributes ===
===Advanced attributes===
Sometimes you will need the chip label to be different from the full ink name, you can use that buy adding the ''label'' attribute:
Sometimes you will need the chip label to be different from the full ink name, you can use that buy adding the ''label'' attribute:
<pre>
<pre>
Line 16: Line 16:
{{Color chip|Fluorescent Orange|label=Fluo. Orange}}
{{Color chip|Fluorescent Orange|label=Fluo. Orange}}


 
===Missing pages===
If a chip is requested for a page that does not exist, it will be shown as a chip but with no color background and a red link.
If a chip is requested for a page that does not exist, it will be shown as a chip but with no color background and a red link.



Revision as of 16:33, 10 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 label to be different from the full ink name, you can use that buy adding the label attribute:

{{Color chip|Fluorescent Orange|label=Fluo. Orange}}

Template:Color chip

Missing pages

If a chip is requested for a page that does not exist, it will be shown as a chip but with no color background and a red link.

{{Color chip|Huckleberry}}

Template:Color chip