Template:Cellcolors: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (worky) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
style="background-color:{{{1|white}}}; color:{{{2|black}}};" |<noinclude> | style="background-color:{{{1|white}}}; color:{{{2|black}}}; text-align:{{{3|left}}};" |<noinclude> | ||
==Usage== | ==Usage== | ||
Inside a cell | Inside a table cell: | ||
<nowiki>{{cellcolors|<background color>|<font color>|<alignment>}} text</nowiki> | |||
<nowiki>{{cellcolors|red|blue|center}} text</nowiki> | |||
<nowiki>{{cellcolors|#ff0000|#0000ff|right}} text</nowiki> | |||
==Examples== | ==Examples== | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| {{cellcolors|black|white}} cell text | | {{cellcolors|green}} cell text || | ||
|- | |||
| {{cellcolors|black|white}} cell text || | |||
|- | |- | ||
| {{cellcolors|black|lime}} cell text | | {{cellcolors|black|lime|center}} cell text, centered || | ||
|- | |- | ||
| {{cellcolors|blue|white}} cell text | | {{cellcolors|blue|white|right}} cell text, aligned right || | ||
|- | |- | ||
| {{cellcolors|blue|yellow}} cell text | | {{cellcolors|blue|yellow}} cell text || | ||
|- | |- | ||
| {{cellcolors|#ff3333|#3333ff}} in RGB | | {{cellcolors|#ff3333|#3333ff}} in RGB || | ||
|- | |- | ||
| {{cellcolors|lightgrey}} only background (in lightgrey intended for disabled/unused cells) | | {{cellcolors|lightgrey}} only background (in lightgrey intended for disabled/unused cells) || the kind of cells usually marked as '''N/A''' | ||
|- | |- | ||
| {{cellcolors}} no colors specifyed, default | | {{cellcolors}} no colors specifyed, default || | ||
|- {{cellcolors|yellow|blue}} | |||
| usable in full rows too || and to create full row empty separators as the examples below | |||
|- {{cellcolors|lightgrey}} | |||
| colspan="2" | | |||
|- | |||
| colspan="2" | | |||
|- {{cellcolors|lightgrey}} | |||
| colspan="2" | | |||
|} | |} | ||
[[Category:templates]]</noinclude> | [[Category:templates]]</noinclude> |
Revision as of 18:09, 27 August 2017
style="background-color:white; color:black; text-align:left;" |
Usage
Inside a table cell:
{{cellcolors|<background color>|<font color>|<alignment>}} text
{{cellcolors|red|blue|center}} text
{{cellcolors|#ff0000|#0000ff|right}} text
Examples
cell text | |
cell text | |
cell text, centered | |
cell text, aligned right | |
cell text | |
in RGB | |
only background (in lightgrey intended for disabled/unused cells) | the kind of cells usually marked as N/A |
no colors specifyed, default | |
usable in full rows too | and to create full row empty separators as the examples below |