Template:Prettytable/doc
Jump to navigation
Jump to search
|
|
This template is deprecated and is being retained for archival purposes. Use CSS instead. |
Migration guide
The old way was:
{| {{Prettytable}}
...
|}
The new way is:
{| class="wikitable"
...
|}
Custom styles can be placed after the class definition, such as:
{| class="wikitable" style="text-align:center;"
...
|}
History
Originally, {{Prettytable}} had a light gray background and {{Purtytable}} had a white background. The templates independently evolved to resemble each other, eventually becoming redundant with CSS classes. The deprecated templates aren't harmful, just inefficient.
{{Prettytable}}, {{Purtytable}}, class="wikitable", and class="prettytable" all do exactly the same thing now. class="wikitable" has the greatest support.
Resources
- Help:Wikitable, introduction
- Help:Basic table markup, primer
- Help:Table, in-depth