Skip to content

Table Format Examples

This page contains examples of all available output formats. You can specify the required format using the table-tablefmt query parameter.

Plain

Plain tables do not use any pseudo-graphics to draw lines.

Pokemon    Type        Number
Venusaur   Grass            3
Charizard  Fire             6
Blastoise  Water            9
Pikachu    Electric        25

Simple (default)

Simple corresponds to simple_tables in Pandoc Markdown extensions.

Pokemon    Type        Number
---------  --------  --------
Venusaur   Grass            3
Charizard  Fire             6
Blastoise  Water            9
Pikachu    Electric        25

GitHub

GitHub follows the conventions of GitHub flavored Markdown. It corresponds to the pipe format without alignment colons.

| Pokemon   | Type     |   Number |
|-----------|----------|----------|
| Venusaur  | Grass    |        3 |
| Charizard | Fire     |        6 |
| Blastoise | Water    |        9 |
| Pikachu   | Electric |       25 |

Grid

Grid is like tables formatted by Emacs' table.el package. It corresponds to grid_tables in Pandoc Markdown extensions.

+-----------+----------+----------+
| Pokemon   | Type     |   Number |
+===========+==========+==========+
| Venusaur  | Grass    |        3 |
+-----------+----------+----------+
| Charizard | Fire     |        6 |
+-----------+----------+----------+
| Blastoise | Water    |        9 |
+-----------+----------+----------+
| Pikachu   | Electric |       25 |
+-----------+----------+----------+

Fancy Grid

Fancy Grid draws a grid using box-drawing characters.

╒═══════════╤══════════╤══════════╕
│ Pokemon   │ Type     │   Number │
╞═══════════╪══════════╪══════════╡
│ Venusaur  │ Grass    │        3 │
├───────────┼──────────┼──────────┤
│ Charizard │ Fire     │        6 │
├───────────┼──────────┼──────────┤
│ Blastoise │ Water    │        9 │
├───────────┼──────────┼──────────┤
│ Pikachu   │ Electric │       25 │
╘═══════════╧══════════╧══════════╛

Pipe

Pipe follows the conventions of PHP Markdown Extra extension. It corresponds to pipe_tables in Pandoc. This format uses colons to indicate column alignment.

| Pokemon   | Type     |   Number |
|:----------|:---------|---------:|
| Venusaur  | Grass    |        3 |
| Charizard | Fire     |        6 |
| Blastoise | Water    |        9 |
| Pikachu   | Electric |       25 |

OrgTbl

OrgTbl follows the conventions of Emacs org-mode.

| Pokemon   | Type     |   Number |
|-----------+----------+----------|
| Venusaur  | Grass    |        3 |
| Charizard | Fire     |        6 |
| Blastoise | Water    |        9 |
| Pikachu   | Electric |       25 |

Jira

Jira follows the conventions of Atlassian Jira markup language.

|| Pokemon   || Type     ||   Number ||
| Venusaur  | Grass    |        3 |
| Charizard | Fire     |        6 |
| Blastoise | Water    |        9 |
| Pikachu   | Electric |       25 |

Presto

Presto is like tables formatted by Presto cli.

 Pokemon   | Type     |   Number
-----------+----------+----------
 Venusaur  | Grass    |        3
 Charizard | Fire     |        6
 Blastoise | Water    |        9
 Pikachu   | Electric |       25

Pretty

Pretty attempts to be close to the format emitted by the PrettyTables library.

+-----------+----------+--------+
|  Pokemon  |   Type   | Number |
+-----------+----------+--------+
| Venusaur  |  Grass   |   3    |
| Charizard |   Fire   |   6    |
| Blastoise |  Water   |   9    |
|  Pikachu  | Electric |   25   |
+-----------+----------+--------+

Psql

Psql is like tables formatted by Postgres' psql cli.

+-----------+----------+----------+
| Pokemon   | Type     |   Number |
|-----------+----------+----------|
| Venusaur  | Grass    |        3 |
| Charizard | Fire     |        6 |
| Blastoise | Water    |        9 |
| Pikachu   | Electric |       25 |
+-----------+----------+----------+

reStructuredText

reStructuredText formats data like a simple table of the reStructuredText format.

=========  ========  ========
Pokemon    Type        Number
=========  ========  ========
Venusaur   Grass            3
Charizard  Fire             6
Blastoise  Water            9
Pikachu    Electric        25
=========  ========  ========

MediaWiki

MediaWiki format produces a table markup used in Wikipedia and on other MediaWiki-based sites.

{| class="wikitable" style="text-align: left;"
|+ <!-- caption -->
|-
! Pokemon   !! Type     !! align="right"|   Number
|-
| Venusaur  || Grass    || align="right"|        3
|-
| Charizard || Fire     || align="right"|        6
|-
| Blastoise || Water    || align="right"|        9
|-
| Pikachu   || Electric || align="right"|       25
|}

MoinMoin

MoinMoin format produces a table markup used in MoinMoin wikis.

|| ''' Pokemon   ''' || ''' Type     ''' ||<style="text-align: right;"> '''   Number ''' ||
||  Venusaur   ||  Grass     ||<style="text-align: right;">         3  ||
||  Charizard  ||  Fire      ||<style="text-align: right;">         6  ||
||  Blastoise  ||  Water     ||<style="text-align: right;">         9  ||
||  Pikachu    ||  Electric  ||<style="text-align: right;">        25  ||

Youtrack

Youtrack format produces a table markup used in Youtrack tickets.

||  Pokemon    ||  Type      ||    Number  ||
|  Venusaur   |  Grass     |         3  |
|  Charizard  |  Fire      |         6  |
|  Blastoise  |  Water     |         9  |
|  Pikachu    |  Electric  |        25  |

HTML

HTML produces standard HTML markup as an html.escape'd string. The Unsafe HTML table format can be used if unescaped HTML is required.

<table>
<thead>
<tr><th>Pokemon  </th><th>Type    </th><th style="text-align: right;">  Number</th></tr>
</thead>
<tbody>
<tr><td>Venusaur </td><td>Grass   </td><td style="text-align: right;">       3</td></tr>
<tr><td>Charizard</td><td>Fire    </td><td style="text-align: right;">       6</td></tr>
<tr><td>Blastoise</td><td>Water   </td><td style="text-align: right;">       9</td></tr>
<tr><td>Pikachu  </td><td>Electric</td><td style="text-align: right;">      25</td></tr>
</tbody>
</table>

Latex

Latex format creates a tabular environment for LaTeX markup, replacing special characters like _ or \ to their LaTeX correspondents.

\begin{tabular}{llr}
\hline
 Pokemon   & Type     &   Number \\
\hline
 Venusaur  & Grass    &        3 \\
 Charizard & Fire     &        6 \\
 Blastoise & Water    &        9 \\
 Pikachu   & Electric &       25 \\
\hline
\end{tabular}

Textile

Textile format produces a table markup used in Textile format.

|_.  Pokemon   |_. Type     |_.   Number |
|<. Venusaur   |<. Grass    |>.        3 |
|<. Charizard  |<. Fire     |>.        6 |
|<. Blastoise  |<. Water    |>.        9 |
|<. Pikachu    |<. Electric |>.       25 |

TSV

TSV format produces a table using Tab-Separated Values.

Pokemon         Type              Number
Venusaur        Grass                  3
Charizard       Fire                   6
Blastoise       Water                  9
Pikachu         Electric              25