Template:Ink chip: Difference between revisions
| Robertbaxter (talk | contribs) No edit summary | Robertbaxter (talk | contribs)  No edit summary | ||
| Line 18: | Line 18: | ||
| === Test Area === | === Test Area === | ||
| {{#rrmatch | {{#rrmatch:145,78,114|/[0-9]+/|$1|}} | ||
| {{#rrmatch | {{#rrmatch:145,78,114|/[0-9]+/|$2|}} | ||
| {{#rrmatch | {{#rrmatch:145,78,114|/[0-9]+/|$3|}} | ||
| {{#invoke:Color|rgbTripletToHex| | {{#invoke:Color|rgbTripletToHex| | ||
|    {{#rrmatch |    {{#rrmatch:145,78,114|/[0-9]+/|$1|}} | ||
| | {{#rrmatch | | {{#rrmatch:145,78,114|/[0-9]+/|$2|}} | ||
| | {{#rrmatch | | {{#rrmatch:145,78,114|/[0-9]+/|$3|}} | ||
| }} | }} | ||
Revision as of 19:39, 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}}
Test Area
{{#rrmatch:145,78,114|/[0-9]+/|$1|}} {{#rrmatch:145,78,114|/[0-9]+/|$2|}} {{#rrmatch:145,78,114|/[0-9]+/|$3|}}