Template:InterwikiColour: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(grr) |
(should probably actually start using this) |
||
Line 1: | Line 1: | ||
{{#switch:{{{1}}}|bulbapedia= | {{#if:{{{2|}}}|{{#switch:{{{1}}}|bulbapedia=00cf00|dkwiki=7f0000|fireemblemwiki=bf3f00|goldensununiverse=ffdf00|lylatwiki=00007f|metroidwiki=ff7f00|nwiki=df0000|nookipedia=bf9f3f|pikipedia=00bf00|pikminfanon=00ff00|starfywiki=ffff00|strategywiki=3f3fdf|supermariowiki=ff0000|warswiki=ff9f00|wikibound=ffbf2f|wikirby=ff9f9f|zeldawiki=7f00bf|7f7f7f}}|{{#switch:{{{1}}}|bulbapedia=bff3bf|dkwiki=dfbfbf|fireemblemwiki=efcfbf|goldensununiverse=fff7bf|lylatwiki=bfbfdf|metroidwiki=ffdfbf|nwiki=f7bfbf|nookipedia=efe7cf|pikipedia=bfefbf|pikminfanon=bfffbf|starfywiki=ffffbf|strategywiki=cfcff7|supermariowiki=ffbfbf|warswiki=ffe7bf|wikibound=ffefcb|wikirby=ffe7e7|zeldawiki=dfbfef|dfdfdf}}}}<noinclude> | ||
==Usage== | ==Usage== | ||
Use <code><nowiki>{{InterwikiColour|interwiki prefix}}</nowiki></code> to get the hex colour of that wiki. Typically used in other templates. | Use <code><nowiki>{{InterwikiColour|interwiki prefix}}</nowiki></code> to get the hex colour of that wiki. Typically used in other templates. | ||
By default, this returns the light colour. To get the darker colour used in borders, use <code><nowiki>{{InterwikiColour|interwiki prefix|d}}</nowiki></code>. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 13:41, January 20, 2012
dfdfdf
Usage
Use {{InterwikiColour|interwiki prefix}}
to get the hex colour of that wiki. Typically used in other templates.
By default, this returns the light colour. To get the darker colour used in borders, use {{InterwikiColour|interwiki prefix|d}}
.