Template:Prettytable
Jump to navigation
Jump to search
class="wikitable"
[edit] [ ] Template documentation
This documentation is transcluded from Template:Prettytable/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
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