Colors that I use when editing the Wiki (not official):
Example: 2019 Georgia State Tournament
When to use: I find this footer to be helpful when displaying one or more tables in a table. I find it presents an easy way to reference what the colors mean.
How to use:
1. Format the footer of the table correctly. This includes:
- Adding
class=unsortable
before the content in the table footer
- Also adding
colspan="n"
where n
is the number of columns in the table (so that the table footer is merged across all columns)
- Also adding
style="text-align: center;"
or style="margin-right: 5px"
if desired
2. Adding the content that makes the box and tag
Code for box and tag:
<span style="background: #ddffdd; border: solid 1px black; width: 20px; height: 20px; display: inline-block"></span> Tag
3. Compile the table
Example code:
{| class="wikitable"
|+Most Populous U.S. Cities
|-
!Rank !!Name !!Population !!Founding
|-
|1||New York||8.4 million||1624
|-style="background: #ffff99;"
|2||Los Angeles||4 million||1781
|-
|3||Chicago||2.7 million||1833
|-style="background: #ddffdd;"
|4||Houston||2.3 million||1837
|-
|5||Phoenix||1.6 million||1881
|-style="background: #ffff99;"
|6||Philadelphia||1.6 million||1682
|-style="background: #ddffdd;"
|7||San Antonio||1.5 million||1718
|-
!colspan="4" style="text-align: center;" class=unsortable|<span style="background: #ddffdd; border: solid 1px black; width: 20px; height: 20px; display: inline-block; margin-right: 5px"></span>Located in TX <span style="background: #ffff99; border: solid 1px black; width: 20px; height: 20px; display: inline-block; margin-right: 5px"></span>Has Trump National Golf Club
|}
Produces:
Most Populous U.S. Cities
Rank |
Name |
Population |
Founding
|
1 |
New York |
8.4 million |
1624
|
2 |
Los Angeles |
4 million |
1781
|
3 |
Chicago |
2.7 million |
1833
|
4 |
Houston |
2.3 million |
1837
|
5 |
Phoenix |
1.6 million |
1881
|
6 |
Philadelphia |
1.6 million |
1682
|
7 |
San Antonio |
1.5 million |
1718
|
Located in TX Has Trump National Golf Club
|