Template:InterwikiColour: 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 14: | Line 14: | ||
|lylatwiki={{#switch:{{{2|}}}|bg=bfbfdf|#default=00007f|text=00003f|rgb=0,0,127}} | |lylatwiki={{#switch:{{{2|}}}|bg=bfbfdf|#default=00007f|text=00003f|rgb=0,0,127}} | ||
|metroidwiki={{#switch:{{{2|}}}|bg=ffdfbf|#default=ff7f00|text=7f3f00|rgb=255,127,0}} | |metroidwiki={{#switch:{{{2|}}}|bg=ffdfbf|#default=ff7f00|text=7f3f00|rgb=255,127,0}} | ||
|miiwiki={{#switch:{{{2|}}}|bg= | |miiwiki={{#switch:{{{2|}}}|bg=d3dfdf|#default=4f7f7f|text=273f3f|rgb=79,127,127}} | ||
|mysterydungeon|mdfw={{#switch:{{{2|}}}|bg=c7cbd7|#default=1f2f5f|text=0f172f|rgb=31,47,95}} | |mysterydungeon|mdfw={{#switch:{{{2|}}}|bg=c7cbd7|#default=1f2f5f|text=0f172f|rgb=31,47,95}} | ||
|nwiki|nintendowiki={{#switch:{{{2|}}}|bg=f7bfbf|#default=df0000|text=6f0000|rgb=223,0,0}} | |nwiki|nintendowiki={{#switch:{{{2|}}}|bg=f7bfbf|#default=df0000|text=6f0000|rgb=223,0,0}} |
Revision as of 16:02, 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.