Template:Ink chip: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 6: Line 6:
<pre>
<pre>
{{Ink chip|Violet}}
{{Ink chip|Violet}}
</pre><div>{{Ink chip|Violet}}</div>
</pre>
<div>{{Ink chip|Violet}}</div>
 


Ink chips can be included inline within a paragraph using {{code|<nowiki>{{Ink chip|Yellow}}</nowiki>|inline=y}} to produce a {{Ink chip|Yellow}} chip. When used this way, they appear smaller to maintain the article's visual flow.  
Ink chips can be included inline within a paragraph using {{code|<nowiki>{{Ink chip|Yellow}}</nowiki>|inline=y}} to produce a {{Ink chip|Yellow}} chip. When used this way, they appear smaller to maintain the article's visual flow.  


===Advanced attributes===
===Advanced attributes===
Line 14: Line 17:
<pre>
<pre>
{{Ink chip|Fluorescent Orange|label=Fluo. Orange}}
{{Ink chip|Fluorescent Orange|label=Fluo. Orange}}
</pre><div>{{Ink chip|Fluorescent Orange|label=Fluo. Orange}}</div>
</pre>
<div>{{Ink chip|Fluorescent Orange|label=Fluo. Orange}}</div>
 


===Missing pages===
==Error Handling==
If the specified page does not exist, the chip will display without a color background and include a red link:
If the specified page does not exist, the chip will display without a color background and include a red link:



Revision as of 15:11, 11 December 2024

This template displays links to ink color pages as visually styled chips.

Usage

To display an ink chip, use the following syntax:

{{Ink chip|Violet}}


Ink chips can be included inline within a paragraph using Template:Code to produce a Yellow chip. When used this way, they appear smaller to maintain the article's visual flow.


Advanced attributes

To display a custom label for the chip, use the optional Template:Code attribute:

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


Error Handling

If the specified page does not exist, the chip will display without a color background and include a red link:

{{Ink chip|Huckleberry}}