Template:InterwikiColour
Usage
Use {{InterwikiColour|interwiki prefix}} to get the colour of that wiki. Not giving it anything, or giving it something that doesn't match an option presented above, will result in grey.
By default, this returns the bold, fully-saturated colour in the form rgb(127,127,127). To get one of the available shades, add a second parameter:
{{InterwikiColour|prefix|bg}}for a background that's 75% fainter{{InterwikiColour|prefix|text}}for text that's 50% less saturated{{InterwikiColour|prefix|bgt}}for a background that's 75% transparent
The difference between "bg" and "bgt" is because some usages (e.g. table cells) would produce unexpected results if the background were actually transparent (e.g. the table's background colour shows through instead of the page's). Thus, the default is "fake transparent" so the colour is consistent.
Add a dark=y for the "bg" and "t" options to use a dark background and light text colour, instead of the default light background and dark text colour.
If a wiki leaves NIWA for any reason, its colour is retained here, so a future wiki can take it if need be.