Template:InterwikiColour: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
|arms|armsinstitute={{#switch:{{{2|}}}|bg=fffbbf|#default=ffef00|text=7f7700|rgb=255,239,0}} | |arms|armsinstitute={{#switch:{{{2|}}}|bg=fffbbf|#default=ffef00|text=7f7700|rgb=255,239,0}} | ||
|bulbapedia={{#switch:{{{2|}}}|bg=bff3bf|#default=00cf00|text=006700|rgb=0,207,0}} | |bulbapedia={{#switch:{{{2|}}}|bg=bff3bf|#default=00cf00|text=006700|rgb=0,207,0}} | ||
|chibirobowiki|chibirobo|crw={{#switch:{{{2|}}}|bg=f7f7e7|#default=dfdf9f|text=6f6f4f|rgb=223,223,159}} | |||
|dragalialost|dragalialostwiki={{#switch:{{{2|}}}|bg=d7d7f3|#default=5f5fcf|text=2f2f67|rgb=95,95,207}} | |dragalialost|dragalialostwiki={{#switch:{{{2|}}}|bg=d7d7f3|#default=5f5fcf|text=2f2f67|rgb=95,95,207}} | ||
|dragonquest|dragonquestwiki={{#switch:{{{2|}}}|bg=cbcfef|#default=2f3fbf|text=171f5f|rgb=47,63,191}} | |dragonquest|dragonquestwiki={{#switch:{{{2|}}}|bg=cbcfef|#default=2f3fbf|text=171f5f|rgb=47,63,191}} |
Latest revision as of 14:57, August 22, 2024
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.