Overview
The CSV (Comma Separated Values) macro can import, format, and display comma-separated values (CSV) data from anywhere, by:
...
Selected from the macro browser | Advanced Tables - CSV Table |
---|---|
Markup shortcut (Old editor) | {csv} |
Markup shortcut (New editor - case insensitive) | /CSV (Comma Separated Values) |
Parameters
Warning |
---|
Deprecation notice Please note that the Parameters removed
|
Macro specific parameters
Macro Editor Label | Default | Description | Macro Parameter | ||||||
---|---|---|---|---|---|---|---|---|---|
Output format | html | Specify how the output is formatted. The options are as follows:
| output | ||||||
Augments to data row values | Enter a comma separated list of augments to the data row values, one for each column. Specify double quotes for values with a comma. See Augments for details. | augments | |||||||
Augments to heading row values | Enter a comma separated list of augments to heading row values, one for each column. See Augments for details. | headingAugments | |||||||
Augments to footing row values | Enter a comma separated list of augments to footing row values, one for each column. See Augments for details. | footingAugments | |||||||
Delimiter that separates columns | , (Comma) | Enter a delimiter to be used to separate column values when the table is downloaded or exported. The characters that can be used as delimiters are:
| delimiter | ||||||
Show wiki | false | Enable this option to show a non-formatted version of the wiki table following the formatted table. This is used to help resolve formatting issues. It can also be used to convert CSV to Confluence markup by cut and paste. | showWiki | ||||||
Escape special characters in wiki markup | false | Enable this option to allow few special characters to be escaped so that the formatting is unaffected. When wiki output is requested (Output format is set to wiki), some special characters (like '|', '[', ']', '{', '}') in data can cause undesirable formatting of the table. By default, data that has wiki markup is rendered correctly. | escape | ||||||
Location of CSV data | macro body | Specifies the list of options where CSV data is located. The included data follows the body data based on the location selected. The options are:
| location | ||||||
Profile | Enter the profile name from the list of pre-configured profiles. Contact your administrator to know about the profiles available for your use. Refer to the Configuration documentation to learn more about profile configuration. | profile | |||||||
URL to CSV data | Enter the URL containing the required CSV files that are to be rendered. If specified, the included data follows the body and script data. | url | URL user | Enter the user name for URL access via basic authentication. | user | URL user password | Enter the password for URL access via basic authentication. | password | |
URL connection timeout (milliseconds) | Enter time in milliseconds such that URL connections do not timeout before getting data. Use this to increase time needed for slow connections. Note that if a zero is given the connection may wait infinitely. | timeout | |||||||
Quote character | double | Specify the character used to represent quoted data. Quoted data may contain delimiters or new lines. Quote character data must be doubled inside a quoted string.
| quote | ||||||
File encoding | System default | Specify the encoding for an external file, if different from the Confluence default (like Windows-1252, UTF-8, MacRoman). Refer to this article for more information. Example: UTF-8. | encoding | ||||||
Ignore trailing blank rows | true | Disable this option to show blank rows. A row is considered blank if all the columns selected by the Columns to show parameter are blank. | ignoreTrailingBlankRows | ||||||
Render wiki markup macros in body | false | Enable this option to render wiki markup macros found in the body prior to processing as CSV. This is useful to run macros from apps such as Scripting for Confluence, Run CLI Actions in Confluence, SQL for Confluence, or similar, that can produce CSV output. | macros |
...