25,166
edits
No edit summary |
No edit summary |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<div style="font-family:monospace;font-weight:bold;"> | {{#vardefine:width|125px}} | ||
<div style="font-family:monospace;font-weight:bold;text-align:center;"> | |||
<div style="background:{{InterwikiColour|armsinstitute|bg}};--darkbg:{{InterwikiColour|armsinstitute|bg|dark=y}};border:2px solid {{InterwikiColour|armsinstitute}};color:{{InterwikiColour|armsinstitute|text}};--darkcolor:{{InterwikiColour|armsinstitute|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:ARMSSymbol.svg|50px|class=invert-dark]]<br>armsinstitute</div> | |||
<div style="background:{{InterwikiColour|bulbapedia|bg}};--darkbg:{{InterwikiColour|bulbapedia|bg|dark=y}};border:2px solid {{InterwikiColour|bulbapedia}};color:{{InterwikiColour|bulbapedia|text}};--darkcolor:{{InterwikiColour|bulbapedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:PokemonSymbol.svg|50px|class=invert-dark]]<br>bulbapedia</div> | |||
| | <div style="background:{{InterwikiColour|chibirobowiki|bg}};--darkbg:{{InterwikiColour|chibirobowiki|bg|dark=y}};border:2px solid {{InterwikiColour|chibirobowiki}};color:{{InterwikiColour|chibirobowiki|text}};--darkcolor:{{InterwikiColour|chibirobowiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:ChibiRoboSymbol.svg|50px|class=invert-dark]]<br>chibirobowiki</div> | ||
<div style="background:{{InterwikiColour|dkwiki|bg}};--darkbg:{{InterwikiColour|dkwiki|bg|dark=y}};border:2px solid {{InterwikiColour|dkwiki}};color:{{InterwikiColour|dkwiki|text}};--darkcolor:{{InterwikiColour|dkwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:DKSymbol.svg|50px|class=invert-dark]]<br>dkwiki</div> | |||
<div style="background:{{InterwikiColour|dragalialostwiki|bg}};--darkbg:{{InterwikiColour|dragalialostwiki|bg|dark=y}};border:2px solid {{InterwikiColour|armsdragalialostwikinstitute}};color:{{InterwikiColour|dragalialostwiki|text}};--darkcolor:{{InterwikiColour|dragalialostwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:DragaliaLostSymbol.svg|50px|class=invert-dark]]<br>dragalialostwiki</div> | |||
<div style="background:{{InterwikiColour|dragonquestwiki|bg}};--darkbg:{{InterwikiColour|dragonquestwiki|bg|dark=y}};border:2px solid {{InterwikiColour|dragonquestwiki}};color:{{InterwikiColour|dragonquestwiki|text}};--darkcolor:{{InterwikiColour|dragonquestwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:DragonQuestSymbol.svg|50px|class=invert-dark]]<br>dragonquestwiki</div> | |||
| | <div style="background:{{InterwikiColour|fireemblemwiki|bg}};--darkbg:{{InterwikiColour|fireemblemwiki|bg|dark=y}};border:2px solid {{InterwikiColour|fireemblemwiki}};color:{{InterwikiColour|fireemblemwiki|text}};--darkcolor:{{InterwikiColour|fireemblemwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:FireEmblemSymbol.svg|50px|class=invert-dark]]<br>fireemblemwiki</div> | ||
<div style="background:{{InterwikiColour|fzerowiki|bg}};--darkbg:{{InterwikiColour|fzerowiki|bg|dark=y}};border:2px solid {{InterwikiColour|fzerowiki}};color:{{InterwikiColour|fzerowiki|text}};--darkcolor:{{InterwikiColour|fzerowiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:FZeroSymbol.svg|50px|class=invert-dark]]<br>fzerowiki</div> | |||
| | <div style="background:{{InterwikiColour|goldensununiverse|bg}};--darkbg:{{InterwikiColour|goldensununiverse|bg|dark=y}};border:2px solid {{InterwikiColour|goldensununiverse}};color:{{InterwikiColour|goldensununiverse|text}};--darkcolor:{{InterwikiColour|goldensununiverse|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:GoldenSunSymbol.svg|50px|class=invert-dark]]<br>goldensununiverse</div> | ||
| | <div style="background:{{InterwikiColour|harddrop|bg}};--darkbg:{{InterwikiColour|harddrop|bg|dark=y}};border:2px solid {{InterwikiColour|harddrop}};color:{{InterwikiColour|harddrop|text}};--darkcolor:{{InterwikiColour|harddrop|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:TetrisSymbol.svg|50px|class=invert-dark]]<br>harddrop</div> | ||
<div style="background:{{InterwikiColour|icaruspedia|bg}};--darkbg:{{InterwikiColour|icaruspedia|bg|dark=y}};border:2px solid {{InterwikiColour|icaruspedia}};color:{{InterwikiColour|icaruspedia|text}};--darkcolor:{{InterwikiColour|icaruspedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:KidIcarusSymbol.svg|50px|class=invert-dark]]<br>icaruspedia</div> | |||
<div style="background:{{InterwikiColour|inkipedia|bg}};--darkbg:{{InterwikiColour|inkipedia|bg|dark=y}};border:2px solid {{InterwikiColour|inkipedia}};color:{{InterwikiColour|inkipedia|text}};--darkcolor:{{InterwikiColour|inkipedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:SplatoonSymbol.svg|50px|class=invert-dark]]<br>inkipedia</div> | |||
<div style="background:{{InterwikiColour|kingdomheartswiki|bg}};--darkbg:{{InterwikiColour|kingdomheartswiki|bg|dark=y}};border:2px solid {{InterwikiColour|kingdomheartswiki}};color:{{InterwikiColour|kingdomheartswiki|text}};--darkcolor:{{InterwikiColour|kingdomheartswiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:KingdomHeartsSymbol.svg|50px|class=invert-dark]]<br>kingdomheartswiki</div> | |||
| | <div style="background:{{InterwikiColour|kovopedia|bg}};--darkbg:{{InterwikiColour|kovopedia|bg|dark=y}};border:2px solid {{InterwikiColour|kovopedia}};color:{{InterwikiColour|kovopedia|text}};--darkcolor:{{InterwikiColour|kovopedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:MagicalVacationSymbol.svg|50px|class=invert-dark]]<br>kovopedia</div> | ||
<div style="background:{{InterwikiColour|lylatwiki|bg}};--darkbg:{{InterwikiColour|lylatwiki|bg|dark=y}};border:2px solid {{InterwikiColour|lylatwiki}};color:{{InterwikiColour|lylatwiki|text}};--darkcolor:{{InterwikiColour|lylatwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:StarFoxSymbol.svg|50px|class=invert-dark]]<br>lylatwiki</div> | |||
<div style="background:{{InterwikiColour|metroidwiki|bg}};--darkbg:{{InterwikiColour|metroidwiki|bg|dark=y}};border:2px solid {{InterwikiColour|metroidwiki}};color:{{InterwikiColour|metroidwiki|text}};--darkcolor:{{InterwikiColour|metroidwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:MetroidSymbol.svg|50px|class=invert-dark]]<br>metroidwiki</div> | |||
<div style="background:{{InterwikiColour|miiwiki|bg}};--darkbg:{{InterwikiColour|miiwiki|bg|dark=y}};border:2px solid {{InterwikiColour|miiwiki}};color:{{InterwikiColour|miiwiki|text}};--darkcolor:{{InterwikiColour|miiwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:MiiSymbol.svg|50px|class=invert-dark]]<br>miiwiki</div> | |||
<div style="background:{{InterwikiColour|mysterydungeon|bg}};--darkbg:{{InterwikiColour|mysterydungeon|bg|dark=y}};border:2px solid {{InterwikiColour|mysterydungeon}};color:{{InterwikiColour|mysterydungeon|text}};--darkcolor:{{InterwikiColour|mysterydungeon|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:MysteryDungeonSymbol.svg|50px|class=invert-dark]]<br>mysterydungeon</div> | |||
<div style="background:{{InterwikiColour|nwiki|bg}};--darkbg:{{InterwikiColour|nwiki|bg|dark=y}};border:2px solid {{InterwikiColour|nwiki}};color:{{InterwikiColour|nwiki|text}};--darkcolor:{{InterwikiColour|nwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:NintendoSymbol.svg|50px|class=invert-dark]]<br>nwiki</div> | |||
<div style="background:{{InterwikiColour|nookipedia|bg}};--darkbg:{{InterwikiColour|nookipedia|bg|dark=y}};border:2px solid {{InterwikiColour|nookipedia}};color:{{InterwikiColour|nookipedia|text}};--darkcolor:{{InterwikiColour|nookipedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:AnimalCrossingSymbol.svg|50px|class=invert-dark]]<br>nookipedia</div> | |||
<div style="background:{{InterwikiColour|pikipedia|bg}};--darkbg:{{InterwikiColour|pikipedia|bg|dark=y}};border:2px solid {{InterwikiColour|pikipedia}};color:{{InterwikiColour|pikipedia|text}};--darkcolor:{{InterwikiColour|pikipedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:PikminSymbol.svg|50px|class=invert-dark]]<br>pikipedia</div> | |||
<div style="background:{{InterwikiColour|pikminfanon|bg}};--darkbg:{{InterwikiColour|pikminfanon|bg|dark=y}};border:2px solid {{InterwikiColour|pikminfanon}};color:{{InterwikiColour|pikminfanon|text}};--darkcolor:{{InterwikiColour|pikminfanon|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:PikminSymbol.svg|50px|class=invert-dark]]<br>pikminfanon</div> | |||
<div style="background:{{InterwikiColour|rhythmheavenwiki|bg}};--darkbg:{{InterwikiColour|rhythmheavenwiki|bg|dark=y}};border:2px solid {{InterwikiColour|rhythmheavenwiki}};color:{{InterwikiColour|rhythmheavenwiki|text}};--darkcolor:{{InterwikiColour|rhythmheavenwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:RhythmHeavenSymbol.svg|50px|class=invert-dark]]<br>rhythmheavenwiki</div> | |||
<div style="background:{{InterwikiColour|smashwiki|bg}};--darkbg:{{InterwikiColour|smashwiki|bg|dark=y}};border:2px solid {{InterwikiColour|smashwiki}};color:{{InterwikiColour|smashwiki|text}};--darkcolor:{{InterwikiColour|smashwiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:SmashBrosSymbol.svg|50px|class=invert-dark]]<br>smashwiki</div> | |||
<div style="background:{{InterwikiColour|starfywiki|bg}};--darkbg:{{InterwikiColour|starfywiki|bg|dark=y}};border:2px solid {{InterwikiColour|starfywiki}};color:{{InterwikiColour|starfywiki|text}};--darkcolor:{{InterwikiColour|starfywiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:StarfySymbol.svg|50px|class=invert-dark]]<br>starfywiki</div> | |||
<div style="background:{{InterwikiColour|strategywiki|bg}};--darkbg:{{InterwikiColour|strategywiki|bg|dark=y}};border:2px solid {{InterwikiColour|strategywiki}};color:{{InterwikiColour|strategywiki|text}};--darkcolor:{{InterwikiColour|strategywiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:StrategyWikiSymbol.svg|50px|class=invert-dark]]<br>strategywiki</div> | |||
<div style="background:{{InterwikiColour|supermariowiki|bg}};--darkbg:{{InterwikiColour|supermariowiki|bg|dark=y}};border:2px solid {{InterwikiColour|supermariowiki}};color:{{InterwikiColour|supermariowiki|text}};--darkcolor:{{InterwikiColour|supermariowiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:MarioSymbol.svg|50px|class=invert-dark]]<br>supermariowiki</div> | |||
<div style="background:{{InterwikiColour|ukikipedia|bg}};--darkbg:{{InterwikiColour|ukikipedia|bg|dark=y}};border:2px solid {{InterwikiColour|ukikipedia}};color:{{InterwikiColour|ukikipedia|text}};--darkcolor:{{InterwikiColour|ukikipedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:MarioSymbol.svg|50px|class=invert-dark]]<br>ukikipedia</div> | |||
<div style="background:{{InterwikiColour|wapopedia|bg}};--darkbg:{{InterwikiColour|wapopedia|bg|dark=y}};border:2px solid {{InterwikiColour|wapopedia}};color:{{InterwikiColour|wapopedia|text}};--darkcolor:{{InterwikiColour|wapopedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:DrawnToLifeSymbol.svg|50px|class=invert-dark]]<br>wapopedia</div> | |||
| | <div style="background:{{InterwikiColour|warswiki|bg}};--darkbg:{{InterwikiColour|warswiki|bg|dark=y}};border:2px solid {{InterwikiColour|warswiki}};color:{{InterwikiColour|warswiki|text}};--darkcolor:{{InterwikiColour|warswiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:NintendoWarsSymbol.svg|50px|class=invert-dark]]<br>warswiki</div> | ||
<div style="background:{{InterwikiColour|wikibound|bg}};--darkbg:{{InterwikiColour|wikibound|bg|dark=y}};border:2px solid {{InterwikiColour|wikibound}};color:{{InterwikiColour|wikibound|text}};--darkcolor:{{InterwikiColour|wikibound|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:EarthboundSymbol.svg|50px|class=invert-dark]]<br>wikibound</div> | |||
| | <div style="background:{{InterwikiColour|wikipedia|bg}};--darkbg:{{InterwikiColour|wikipedia|bg|dark=y}};border:2px solid {{InterwikiColour|wikipedia}};color:{{InterwikiColour|wikipedia|text}};--darkcolor:{{InterwikiColour|wikipedia|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:WikipediaSymbol.svg|50px|class=invert-dark]]<br>wikipedia</div> | ||
<div style="background:{{InterwikiColour|wikirby|bg}};--darkbg:{{InterwikiColour|wikirby|bg|dark=y}};border:2px solid {{InterwikiColour|wikirby}};color:{{InterwikiColour|wikirby|text}};--darkcolor:{{InterwikiColour|wikirby|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:KirbySymbol.svg|50px|class=invert-dark]]<br>wikirby</div> | |||
<div style="background:{{InterwikiColour|xenoserieswiki|bg}};--darkbg:{{InterwikiColour|xenoserieswiki|bg|dark=y}};border:2px solid {{InterwikiColour|xenoserieswiki}};color:{{InterwikiColour|xenoserieswiki|text}};--darkcolor: | |||
{{InterwikiColour|xenoserieswiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:XenobladeSymbol.svg|50px|class=invert-dark]]<br>xenoserieswiki</div> | |||
<div style="background:{{InterwikiColour|zeldawiki|bg}};--darkbg:{{InterwikiColour|zeldawiki|bg|dark=y}};border:2px solid {{InterwikiColour|zeldawiki}};color:{{InterwikiColour|zeldawiki|text}};--darkcolor:{{InterwikiColour|zeldawiki|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:ZeldaSymbol.svg|50px|class=invert-dark]]<br>zeldawiki</div> | |||
<div style="background:{{InterwikiColour|_|bg}};--darkbg:{{InterwikiColour|_|bg|dark=y}};border:2px solid {{InterwikiColour|_}};color:{{InterwikiColour|_|text}};--darkcolor:{{InterwikiColour|_|text|dark=y}};display:inline-block;width:{{#var:width}};text-align:center;margin:2px -1px;">[[Image:SpecialStagesSymbol.svg|50px|class=invert-dark]]<br>_</div> | |||
</div> | </div> | ||
==Usage== | ==Usage== | ||
Use <code><nowiki>{{InterwikiColour|interwiki prefix}}</nowiki></code> to get the | Use <code><nowiki>{{InterwikiColour|interwiki prefix}}</nowiki></code> 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. To get one of the available shades, add a second parameter: | By default, this returns the bold, fully-saturated colour in the form <code>rgb(127,127,127)</code>. To get one of the available shades, add a second parameter: | ||
*<code><nowiki>{{InterwikiColour|prefix|bg}}</nowiki></code> for a 75% | *<code><nowiki>{{InterwikiColour|prefix|bg}}</nowiki></code> for a background that's 75% fainter | ||
*<code><nowiki>{{InterwikiColour|prefix|text}}</nowiki></code> for a | *<code><nowiki>{{InterwikiColour|prefix|text}}</nowiki></code> for text that's 50% less saturated | ||
*<code><nowiki>{{InterwikiColour|prefix|bgt}}</nowiki></code> 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 <code>dark=y</code> 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. | |||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |