Template:Id: Difference between revisions
Jump to navigation
Jump to search
>Niightblade (Created page with "<includeonly> {{#switch: {{{1}}} | r | R | red | Red = <span class="support-gem-id-red" style="background-color: rgb(236, 052, 044);">{{{2}}}</span> | g | G | green |...") |
>Niightblade (remove local css now that it's in common.ccs. probably doesn't even need to be a template now?) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#switch: {{{1}}} | ||
{{#switch: | | r | R | red | Red | ||
| r | R | red | Red = <span class="support-gem-id-red | = <span class="support-gem-id-red">{{{2}}}</span> | ||
| g | G | green | Green = <span class="support-gem-id-green | | g | G | green | Green | ||
| b | B | blue | Blue = <span class="support-gem-id-blue | = <span class="support-gem-id-green">{{{2}}}</span> | ||
| b | B | blue | Blue | |||
= <span class="support-gem-id-blue">{{{2}}}</span> | |||
}}</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> |
Latest revision as of 01:05, 18 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.