Template:Id: Difference between revisions
Jump to navigation
Jump to search
>Niightblade (adjust colours a little to make the letter easier to see (WTB: black outline on letters)) |
>Niightblade (change to DIVs to make the size consistant regardless of letter kerning) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
| r | R | red | Red | | r | R | red | Red | ||
= < | = <div class="support-gem-id-red" style="width: 1em; color: white; background-color: #cc0000; text-align: center;">{{{2}}}</div> | ||
| g | G | green | Green | | g | G | green | Green | ||
= < | = <div class="support-gem-id-green" style="width: 1em; color: white; background-color: #00aa00; text-align: center;">{{{2}}}</div> | ||
| b | B | blue | Blue | | b | B | blue | Blue | ||
= < | = <div class="support-gem-id-blue" style="width: 1em; color: white; background-color: #0000FF; text-align: center;">{{{2}}}</div> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 10:07, 5 February 2013
Usage
CSS
This template uses the following styles in common.css:
.support-gem-id-red, .support-gem-id-green, .support-gem-id-blue { width:1em; color:white !important; background-color:#c51e1e; display:inline-block; text-align:center; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; } .support-gem-id-red { background-color:#c51e1e; } .support-gem-id-green { background-color:#08a842; } .support-gem-id-blue { background-color:#4163c9; }
The above documentation is transcluded from Template:Id/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.