Template:InterwikiColour/doc: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Text replacement - "class=("?)invert\b([^-])" to "class=$1invert-dark$2") |
No edit summary |
||
Line 4: | Line 4: | ||
|style="width:14%;background:#{{InterwikiColour|armsinstitute|bg}};border:2px solid #{{InterwikiColour|armsinstitute}};color:#{{InterwikiColour|armsinstitute|text}}"|[[File:ARMSSymbol.svg|50px|class=invert-dark]]<br>armsinstitute | |style="width:14%;background:#{{InterwikiColour|armsinstitute|bg}};border:2px solid #{{InterwikiColour|armsinstitute}};color:#{{InterwikiColour|armsinstitute|text}}"|[[File:ARMSSymbol.svg|50px|class=invert-dark]]<br>armsinstitute | ||
|style="width:14%;background:#{{InterwikiColour|bulbapedia|bg}};border:2px solid #{{InterwikiColour|bulbapedia}};color:#{{InterwikiColour|bulbapedia|text}}"|[[File:PokemonSymbol.svg|50px|class=invert-dark]]<br>bulbapedia | |style="width:14%;background:#{{InterwikiColour|bulbapedia|bg}};border:2px solid #{{InterwikiColour|bulbapedia}};color:#{{InterwikiColour|bulbapedia|text}}"|[[File:PokemonSymbol.svg|50px|class=invert-dark]]<br>bulbapedia | ||
|style="width:14%;background:#{{InterwikiColour|chibirobowiki|bg}};border:2px solid #{{InterwikiColour|chibirobowiki}};color:#{{InterwikiColour|chibirobowiki|text}}"|[[File:ChibiRoboSymbol.svg|50px|class=invert-dark]]<br>chibirobowiki | |||
|style="width:14%;background:#{{InterwikiColour|dragalialostwiki|bg}};border:2px solid #{{InterwikiColour|dragalialostwiki}};color:#{{InterwikiColour|dragalialostwiki|text}}"|[[File:DragaliaLostSymbol.svg|50px|class=invert-dark]]<br>dragalialostwiki | |style="width:14%;background:#{{InterwikiColour|dragalialostwiki|bg}};border:2px solid #{{InterwikiColour|dragalialostwiki}};color:#{{InterwikiColour|dragalialostwiki|text}}"|[[File:DragaliaLostSymbol.svg|50px|class=invert-dark]]<br>dragalialostwiki | ||
<!--hidden since DQW is gone, will be inherited by any future NIWA member of the same series |style="width:14%;background:#{{InterwikiColour|dragonquestwiki|bg}};border:2px solid #{{InterwikiColour|dragonquestwiki}};color:#{{InterwikiColour|dragonquestwiki|text}}"|[[File:DragonQuestSymbol.svg|50px|class=invert-dark]]<br>dragonquestwiki--> | <!--hidden since DQW is gone, will be inherited by any future NIWA member of the same series |style="width:14%;background:#{{InterwikiColour|dragonquestwiki|bg}};border:2px solid #{{InterwikiColour|dragonquestwiki}};color:#{{InterwikiColour|dragonquestwiki|text}}"|[[File:DragonQuestSymbol.svg|50px|class=invert-dark]]<br>dragonquestwiki--> | ||
Line 9: | Line 10: | ||
|style="width:14%;background:#{{InterwikiColour|fzerowiki|bg}};border:2px solid #{{InterwikiColour|fzerowiki}};color:#{{InterwikiColour|fzerowiki|text}}"|[[File:FZeroSymbol.svg|50px|class=invert-dark]]<br>fzerowiki | |style="width:14%;background:#{{InterwikiColour|fzerowiki|bg}};border:2px solid #{{InterwikiColour|fzerowiki}};color:#{{InterwikiColour|fzerowiki|text}}"|[[File:FZeroSymbol.svg|50px|class=invert-dark]]<br>fzerowiki | ||
|style="width:14%;background:#{{InterwikiColour|goldensununiverse|bg}};border:2px solid #{{InterwikiColour|goldensununiverse}};color:#{{InterwikiColour|goldensununiverse|text}}"|[[File:GoldenSunSymbol.svg|50px|class=invert-dark]]<br>goldensununiverse | |style="width:14%;background:#{{InterwikiColour|goldensununiverse|bg}};border:2px solid #{{InterwikiColour|goldensununiverse}};color:#{{InterwikiColour|goldensununiverse|text}}"|[[File:GoldenSunSymbol.svg|50px|class=invert-dark]]<br>goldensununiverse | ||
|- | |- | ||
|style="background:#{{InterwikiColour|harddrop|bg}};border:2px solid #{{InterwikiColour|harddrop}};color:#{{InterwikiColour|harddrop|text}}"|[[File:TetrisSymbol.svg|50px|class=invert-dark]]<br>harddrop | |||
|style="background:#{{InterwikiColour|icaruspedia|bg}};border:2px solid #{{InterwikiColour|icaruspedia}};color:#{{InterwikiColour|icaruspedia|text}}"|[[File:KidIcarusSymbol.svg|50px|class=invert-dark]]<br>icaruspedia | |style="background:#{{InterwikiColour|icaruspedia|bg}};border:2px solid #{{InterwikiColour|icaruspedia}};color:#{{InterwikiColour|icaruspedia|text}}"|[[File:KidIcarusSymbol.svg|50px|class=invert-dark]]<br>icaruspedia | ||
|style="background:#{{InterwikiColour|inkipedia|bg}};border:2px solid #{{InterwikiColour|inkipedia}};color:#{{InterwikiColour|inkipedia|text}}"|[[File:SplatoonSymbol.svg|50px|class=invert-dark]]<br>inkipedia | |style="background:#{{InterwikiColour|inkipedia|bg}};border:2px solid #{{InterwikiColour|inkipedia}};color:#{{InterwikiColour|inkipedia|text}}"|[[File:SplatoonSymbol.svg|50px|class=invert-dark]]<br>inkipedia | ||
Line 17: | Line 18: | ||
|style="background:#{{InterwikiColour|lylatwiki|bg}};border:2px solid #{{InterwikiColour|lylatwiki}};color:#{{InterwikiColour|lylatwiki|text}}"|[[File:StarFoxSymbol.svg|50px|class=invert-dark]]<br>lylatwiki | |style="background:#{{InterwikiColour|lylatwiki|bg}};border:2px solid #{{InterwikiColour|lylatwiki}};color:#{{InterwikiColour|lylatwiki|text}}"|[[File:StarFoxSymbol.svg|50px|class=invert-dark]]<br>lylatwiki | ||
|style="background:#{{InterwikiColour|metroidwiki|bg}};border:2px solid #{{InterwikiColour|metroidwiki}};color:#{{InterwikiColour|metroidwiki|text}}"|[[File:MetroidSymbol.svg|50px|class=invert-dark]]<br>metroidwiki | |style="background:#{{InterwikiColour|metroidwiki|bg}};border:2px solid #{{InterwikiColour|metroidwiki}};color:#{{InterwikiColour|metroidwiki|text}}"|[[File:MetroidSymbol.svg|50px|class=invert-dark]]<br>metroidwiki | ||
|- | |||
|style="background:#{{InterwikiColour|miiwiki|bg}};border:2px solid #{{InterwikiColour|miiwiki}};color:#{{InterwikiColour|miiwiki|text}}"|[[File:MiiSymbol.svg|50px|class=invert-dark]]<br>miiwiki | |style="background:#{{InterwikiColour|miiwiki|bg}};border:2px solid #{{InterwikiColour|miiwiki}};color:#{{InterwikiColour|miiwiki|text}}"|[[File:MiiSymbol.svg|50px|class=invert-dark]]<br>miiwiki | ||
|style="background:#{{InterwikiColour|mysterydungeon|bg}};border:2px solid #{{InterwikiColour|mysterydungeon}};color:#{{InterwikiColour|mysterydungeon|text}}"|[[File:MysteryDungeonSymbol.svg|50px|class=invert-dark]]<br>mysterydungeon | |style="background:#{{InterwikiColour|mysterydungeon|bg}};border:2px solid #{{InterwikiColour|mysterydungeon}};color:#{{InterwikiColour|mysterydungeon|text}}"|[[File:MysteryDungeonSymbol.svg|50px|class=invert-dark]]<br>mysterydungeon | ||
|style="background:#{{InterwikiColour|nwiki|bg}};border:2px solid #{{InterwikiColour|nwiki}};color:#{{InterwikiColour|nwiki|text}}"|[[File:NintendoSymbol.svg|50px|class=invert-dark]]<br>nwiki | |style="background:#{{InterwikiColour|nwiki|bg}};border:2px solid #{{InterwikiColour|nwiki}};color:#{{InterwikiColour|nwiki|text}}"|[[File:NintendoSymbol.svg|50px|class=invert-dark]]<br>nwiki | ||
Line 25: | Line 26: | ||
|style="background:#{{InterwikiColour|pikminfanon|bg}};border:2px solid #{{InterwikiColour|pikminfanon}};color:#{{InterwikiColour|pikminfanon|text}}"|[[File:PikminSymbol.svg|50px|class=invert-dark]]<br>pikminfanon | |style="background:#{{InterwikiColour|pikminfanon|bg}};border:2px solid #{{InterwikiColour|pikminfanon}};color:#{{InterwikiColour|pikminfanon|text}}"|[[File:PikminSymbol.svg|50px|class=invert-dark]]<br>pikminfanon | ||
|style="background:#{{InterwikiColour|rhythmheavenwiki|bg}};border:2px solid #{{InterwikiColour|rhythmheavenwiki}};color:#{{InterwikiColour|rhythmheavenwiki|text}}"|[[File:RhythmHeavenSymbol.svg|50px|class=invert-dark]]<br>rhythmheavenwiki | |style="background:#{{InterwikiColour|rhythmheavenwiki|bg}};border:2px solid #{{InterwikiColour|rhythmheavenwiki}};color:#{{InterwikiColour|rhythmheavenwiki|text}}"|[[File:RhythmHeavenSymbol.svg|50px|class=invert-dark]]<br>rhythmheavenwiki | ||
|- | |||
|style="background:#{{InterwikiColour|smashwiki|bg}};border:2px solid #{{InterwikiColour|smashwiki}};color:#{{InterwikiColour|smashwiki|text}}"|[[File:SmashBrosSymbol.svg|50px|class=invert-dark]]<br>smashwiki | |style="background:#{{InterwikiColour|smashwiki|bg}};border:2px solid #{{InterwikiColour|smashwiki}};color:#{{InterwikiColour|smashwiki|text}}"|[[File:SmashBrosSymbol.svg|50px|class=invert-dark]]<br>smashwiki | ||
|style="background:#{{InterwikiColour|starfywiki|bg}};border:2px solid #{{InterwikiColour|starfywiki}};color:#{{InterwikiColour|starfywiki|text}}"|[[File:StarfySymbol.svg|50px|class=invert-dark]]<br>starfywiki | |style="background:#{{InterwikiColour|starfywiki|bg}};border:2px solid #{{InterwikiColour|starfywiki}};color:#{{InterwikiColour|starfywiki|text}}"|[[File:StarfySymbol.svg|50px|class=invert-dark]]<br>starfywiki | ||
|style="background:#{{InterwikiColour|strategywiki|bg}};border:2px solid #{{InterwikiColour|strategywiki}};color:#{{InterwikiColour|strategywiki|text}}"|[[File:StrategyWikiSymbol.svg|50px|class=invert-dark]]<br>strategywiki | |style="background:#{{InterwikiColour|strategywiki|bg}};border:2px solid #{{InterwikiColour|strategywiki}};color:#{{InterwikiColour|strategywiki|text}}"|[[File:StrategyWikiSymbol.svg|50px|class=invert-dark]]<br>strategywiki | ||
Line 33: | Line 34: | ||
|style="background:#{{InterwikiColour|wapopedia|bg}};border:2px solid #{{InterwikiColour|wapopedia}};color:#{{InterwikiColour|wapopedia|text}}"|[[File:DrawnToLifeSymbol.svg|50px|class=invert-dark]]<br>wapopedia | |style="background:#{{InterwikiColour|wapopedia|bg}};border:2px solid #{{InterwikiColour|wapopedia}};color:#{{InterwikiColour|wapopedia|text}}"|[[File:DrawnToLifeSymbol.svg|50px|class=invert-dark]]<br>wapopedia | ||
|style="background:#{{InterwikiColour|warswiki|bg}};border:2px solid #{{InterwikiColour|warswiki}};color:#{{InterwikiColour|warswiki|text}}"|[[File:NintendoWarsSymbol.svg|50px|class=invert-dark]]<br>warswiki | |style="background:#{{InterwikiColour|warswiki|bg}};border:2px solid #{{InterwikiColour|warswiki}};color:#{{InterwikiColour|warswiki|text}}"|[[File:NintendoWarsSymbol.svg|50px|class=invert-dark]]<br>warswiki | ||
|- | |||
|style="background:#{{InterwikiColour|wikibound|bg}};border:2px solid #{{InterwikiColour|wikibound}};color:#{{InterwikiColour|wikibound|text}}"|[[File:EarthboundSymbol.svg|50px|class=invert-dark]]<br>wikibound | |style="background:#{{InterwikiColour|wikibound|bg}};border:2px solid #{{InterwikiColour|wikibound}};color:#{{InterwikiColour|wikibound|text}}"|[[File:EarthboundSymbol.svg|50px|class=invert-dark]]<br>wikibound | ||
|style="background:#{{InterwikiColour|wikipedia|bg}};border:2px solid #{{InterwikiColour|wikipedia}};color:#{{InterwikiColour|wikipedia|text}}"|[[File:WikipediaSymbol.svg|50px|class=invert-dark]]<br>wikipedia | |style="background:#{{InterwikiColour|wikipedia|bg}};border:2px solid #{{InterwikiColour|wikipedia}};color:#{{InterwikiColour|wikipedia|text}}"|[[File:WikipediaSymbol.svg|50px|class=invert-dark]]<br>wikipedia | ||
|style="background:#{{InterwikiColour|wikirby|bg}};border:2px solid #{{InterwikiColour|wikirby}};color:#{{InterwikiColour|wikirby|text}}"|[[File:KirbySymbol.svg|50px|class=invert-dark]]<br>wikirby | |style="background:#{{InterwikiColour|wikirby|bg}};border:2px solid #{{InterwikiColour|wikirby}};color:#{{InterwikiColour|wikirby|text}}"|[[File:KirbySymbol.svg|50px|class=invert-dark]]<br>wikirby |
Latest revision as of 14:59, 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.