Template:Cellcolors: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(6 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|inherit}}}; color:{{{2|inherit}}}; text-align:{{{3|left}}};" |<noinclude>


==Usage==
==Usage==
Inside a cell of a table:
Inside a table cell:
 
<nowiki>{{cellcolors|<background color>|<font color>|<alignment>}} text</nowiki>
 
<nowiki>{{cellcolors|red}} text</nowiki>
 
<nowiki>{{cellcolors|red|blue}} text</nowiki>
 
<nowiki>{{cellcolors|red|blue|center}} text</nowiki>
 
<nowiki>{{cellcolors|#ff0000|#00f|right}} text</nowiki>
 
<nowiki>{{cellcolors||rgba(256, 0, 0, 0.5)}} text</nowiki>
 
<nowiki>{{cellcolors|||right}} text</nowiki>


<nowiki>{{cellcolors|background color|font color}} cell 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|center}} cell text, centered ||
|-
|-
| {{cellcolors|black|lime}} cell text
| {{cellcolors|blue|white|right}} cell text, aligned right ||
|-
|-
| {{cellcolors|blue|white}} cell text
| {{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) || the kind of cells usually marked as '''N/A'''
|-
|-
| {{cellcolors|lightgrey}} only background (in lightgrey intended for disabled/unused cells)
| {{cellcolors||rgba(256, 0, 0, 0.5)}} example with font color only at 50% alpha ||
|-
|-
| {{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>

Latest revision as of 05:38, 11 November 2022

style="background-color:inherit; color:inherit; text-align:left;" |

Usage[edit source]

Inside a table cell:

{{cellcolors|<background color>|<font color>|<alignment>}} text

{{cellcolors|red}} text

{{cellcolors|red|blue}} text

{{cellcolors|red|blue|center}} text

{{cellcolors|#ff0000|#00f|right}} text

{{cellcolors||rgba(256, 0, 0, 0.5)}} text

{{cellcolors|||right}} text


Examples[edit source]

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
example with font color only at 50% alpha
no colors specifyed, default
usable in full rows too and to create full row empty separators as the examples below