Template:Cellcolors: Difference between revisions
Jump to navigation
Jump to search
m (→Examples) |
m (worky) |
||
(One intermediate revision 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 table cell: | Inside a table cell: | ||
<nowiki>{{cellcolors|<background color>|<font color>}} text</nowiki> | <nowiki>{{cellcolors|<background color>|<font color>|<alignment>}} text</nowiki> | ||
<nowiki>{{cellcolors|red|blue}} text</nowiki> | <nowiki>{{cellcolors|red|blue|center}} text</nowiki> | ||
<nowiki>{{cellcolors|#ff0000|#0000ff}} text</nowiki> | <nowiki>{{cellcolors|#ff0000|#0000ff|right}} text</nowiki> | ||
Line 18: | Line 18: | ||
| {{cellcolors|black|white}} 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 || |
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 |