Editing Template:Cellcolors

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
style="background-color:{{{1|inherit}}}; color:{{{2|inherit}}}; text-align:{{{3|left}}};" |<noinclude>
style="background-color:{{{1|white}}}; color:{{{2|black}}};" |<noinclude>


==Usage==
==Usage==
Inside a table cell:
Inside a table cell:


<nowiki>{{cellcolors|<background color>|<font color>|<alignment>}} text</nowiki>
<nowiki>{{cellcolors|<background color>|<font color>}} text</nowiki>
 
<nowiki>{{cellcolors|red}} text</nowiki>


<nowiki>{{cellcolors|red|blue}} text</nowiki>
<nowiki>{{cellcolors|red|blue}} text</nowiki>


<nowiki>{{cellcolors|red|blue|center}} text</nowiki>
<nowiki>{{cellcolors|#ff0000|#0000ff}} text</nowiki>
 
<nowiki>{{cellcolors|#ff0000|#00f|right}} text</nowiki>
 
<nowiki>{{cellcolors||rgba(256, 0, 0, 0.5)}} text</nowiki>
 
<nowiki>{{cellcolors|||right}} text</nowiki>




Line 26: Line 18:
| {{cellcolors|black|white}} 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 ||
Line 34: Line 26:
| {{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}}  
|- {{cellcolors|yellow|blue}}  
| usable in full rows too || and to create full row empty separators as the examples below
| usable in full rows || too
|- {{cellcolors|lightgrey}}
| colspan="2" |
|-
| colspan="2" |
|- {{cellcolors|lightgrey}}
| colspan="2" |
|}
|}


[[Category:templates]]</noinclude>
[[Category:templates]]</noinclude>
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)

Template used on this page: