Template:InterwikiColour/doc

From Super Smash Bros. Ultimate Mods Wiki
Revision as of 17:06, 26 April 2025 by Moy (talk | contribs) (Text replacement - "MarioSymbol" to "Mario Symbol")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
File:ARMSSymbol.svg
armsinstitute
File:GoldenSunSymbol.svg
goldensununiverse
File:Mario Symbol.svg
supermariowiki

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.