Template:Ink chip: Difference between revisions
IssuePress (talk | contribs) No edit summary |
IssuePress (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
=== Advanced attributes === | === 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: | |||
<pre> | <pre> | ||
{{Color chip|Yellow| | {{Color chip|Yellow|link=Violet}} | ||
</pre> | </pre> | ||
{{Color chip|Yellow| | {{Color chip|Yellow|link=Violet}} | ||
</noinclude> | </noinclude> | ||
<includeonly><span class="chip color-chip | <includeonly><span class="chip color-chip text-{{#switch:{{lc:{{{1}}}}} | ||
| 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}}
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}}