The {table} tag pair will output the contents of the table element.

{table}
	<table width="100%" cellpadding="5" cellspacing="0" border="1">
		<thead>
			{thead}
				<tr>{cells}<th>{value}</th>{/cells}</tr>
			{/thead}
		</thead>
		<tbody>
			{tbody}
				<tr>{cells}<td>{value}</td>{/cells}</tr>
			{/tbody}
		</tbody>
	</table>
{/table}

You can use the following parameters:

limit=

{rows limit="5"}
   {!-- this will show only 5 rows --}
{/rows}

This parameter limits the number of rows displayed. This parameter works with {thead}, {tbody} and {rows} tag pairs.

offset=

{rows offset="2"}
   {!-- this will skip first 2 rows --}
{/rows}

This parameter skips the first X rows. This parameter works with {thead}, {tbody} and {rows} tag pairs.

The following tag pairs are available within your {table} tag pair:

{thead}

This tag pair displays (loops) individual rows of a table head.

{table}
	<table width="100%" cellpadding="5" cellspacing="0" border="1">
		<thead>
			{thead}
				<tr>{cells}<th>{value}</th>{/cells}</tr>
			{/thead}
		</thead>
	</table>
{/table}

{tbody}

This tag pair displays (loops) individual rows of a table.

{table}
	<table width="100%" cellpadding="5" cellspacing="0" border="1">
		<tbody>
			{tbody}
				<tr>{cells}<td>{value}</td>{/cells}</tr>
			{/tbody}
		</tbody>
	</table>
{/table}

{rows}

This tag pair displays (loops) individual rows of a table in a loop.

{table}
	<table width="100%" cellpadding="5" cellspacing="0" border="1">
		{rows}
			<tr>{cells}<td>{value}</td>{/cells}</tr>
		{/rows}
	</table>
{/table}

{cells}

This tag pair displays (loops) individual columns within the table head, body or row.

{table}
	<table width="100%" cellpadding="5" cellspacing="0" border="1">
		{rows}
			<tr>{cells}<td>{value}</td>{/cells}</tr>
		{/rows}
	</table>
{/table}

The following single variables are available within your {table} tag pair:

{element_name}

Sometimes, you might want to use several table elements. The {element_name} tag will help you to determine which table element is being displayed.

{table}
	{if element_name=="blue"}
		{!-- show table with blue styles --}
	{if:else}
		{!-- show table with default styles --}
	{/if}
{/table}

{value}

Displays the contents of a specific cell within a {table} element.

{count}

Returns the current row’s count.