# nats\_display\_stats\_subscription\_details

Alias: display\_stats\_subscription\_details

## Parameters

| Parameter                                                                                                                                 | Description                                                      | Possible Values                | Default Value                                                 | Example                |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------ | ------------------------------------------------------------- | ---------------------- |
| tpl                                                                                                                                       | Template used to display output                                  | Any valid template             | The template, function\_display\_stats\_subscription\_details | tpl="mytemplate"       |
| subscriptionid                                                                                                                            | The subscription ID number to get details of                     | Any valid subscription ID      | None.                                                         | subscriptionid="123"   |
| [assign\_prefix](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-function-parameters/assign_prefix) | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | *None.* (No prefix is used)                                   | assign\_prefix="myvar" |
| [data\_only](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-function-parameters/data_only)         | Set variables but don't display the template                     | 1                              | *None.* The template is displayed.                            | data\_only=1           |

## Output

A table of information about the subscription. Two arrays are filled with data from the table: *$trans\_types* and *$details*.

## Notes

If the parameter, *subscriptionid* is not set, the *tpl* parameter is always set to the template, *function\_display\_stats\_join\_details*.
