[dismiss]
Welcome to SmashWiki! Log in or create an account and join the community, and don't forget to read this first! |
Notices |
---|
SmashWiki will be experiencing a server migration on April 16th, 2025, expected to begin at 7:00 am (EDT) and lasting for up to 12 hours. The wiki may be entirely unavailable during that time. |
Template:InterwikiColour/doc: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
Aidanzapunk (talk | contribs) mNo edit summary |
mNo edit summary |
||
Line 40: | Line 40: | ||
|style="background:#{{InterwikiColour|xenoserieswiki|bg}};border:2px solid #{{InterwikiColour|xenoserieswiki}};color:#{{InterwikiColour|xenoserieswiki|text}}"|[[File:XenobladeSymbol.svg|50px|class=invert]]<br>xenoserieswiki | |style="background:#{{InterwikiColour|xenoserieswiki|bg}};border:2px solid #{{InterwikiColour|xenoserieswiki}};color:#{{InterwikiColour|xenoserieswiki|text}}"|[[File:XenobladeSymbol.svg|50px|class=invert]]<br>xenoserieswiki | ||
|style="background:#{{InterwikiColour|zeldawiki|bg}};border:2px solid #{{InterwikiColour|zeldawiki}};color:#{{InterwikiColour|zeldawiki|text}}"|[[File:ZeldaSymbol.svg|50px|class=invert]]<br>zeldawiki | |style="background:#{{InterwikiColour|zeldawiki|bg}};border:2px solid #{{InterwikiColour|zeldawiki}};color:#{{InterwikiColour|zeldawiki|text}}"|[[File:ZeldaSymbol.svg|50px|class=invert]]<br>zeldawiki | ||
|style="background:#{{InterwikiColour||bg}};border:2px solid #{{InterwikiColour|}};color:#{{InterwikiColour||text}}"|[[File:SpecialStagesSymbol.svg|50px|class=invert]] | |style="background:#{{InterwikiColour||bg}};border:2px solid #{{InterwikiColour|}};color:#{{InterwikiColour||text}}"|[[File:SpecialStagesSymbol.svg|50px|class=invert]]<br>_ | ||
<br>_ | |||
|} | |} | ||
</div> | </div> |
Revision as of 17:01, October 26, 2023
Usage
Use {{InterwikiColour|interwiki prefix}}
to get the hex colour of that wiki (minus the #
). 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. To get one of the available shades, add a second parameter:
{{InterwikiColour|prefix|bg}}
for a 75% lighter background tint{{InterwikiColour|prefix|text}}
for a 50% darker text-usable shade
In addition to the above, if the second parameter is "rgb", the colour will be returned in decimal r,g,b format instead of hex rrggbb format (e.g. 127,127,127
instead of 7f7f7f
). Currently this is only available for the default colour.