Importing a page from a file
Note
Here you'll learn how to work with the new Wiki editor.
On the Wiki page, you can:
Adding text from a file to a page
To add the contents of a TXT file or DOCX document to a page:
-
Open a page or create a new one.
-
On the toolbar, click
Other actions, then select Import. This will open the import window. -
Click Select file and choose a TXT or DOCX file.
If you select a file with an unsupported format, you'll see an error message.
The contents of the selected file will be uploaded to the page:
-
When you upload a TXT file, its entire content will be copied onto the page. If the text contains markup elements, they will be displayed correctly.
-
If you uploaded a DOCX document with formatting elements, its text will be converted to YFM markup.
Creating a static table from a file
You can add a static table to the page using data from a CSV or TXT file.
-
Create a CSV or TXT file with data for your table. The cell values in the file must be separated by a comma, semicolon, or tab character.
For example, you can save an MS Excel file in CSV format.
-
Open a page or create a new one.
-
In the visual editor or markup mode, click
→ Import table from CSV on the toolbar.To access a quick menu in the visual editor, type
/
and select a command from the list. -
In the window that opens, click Select a file and choose a CSV or TXT file.
-
If needed, specify the characters used to separate cells. By default, the separator is detected automatically.
-
If you don't want to add empty rows from the file to the table, select Skip empty lines.
-
Check the preview of the table and click Save.
A multi-row table with the file's data will be added to the page.
For more information about static tables, see Static table.
Adding data to a dynamic table
You can import data from CSV or TXT files to dynamic tables:
-
Save your spreadsheet, such as an MS Excel file, in CSV format. Alternatively, you can create a TXT file where the cell values are separated by a comma, semicolon, or tab character.
-
Open a dynamic table or create a new one.
-
In the top right corner of the table, click
→ Import data from file. -
In the Loading data from file window, choose a CSV or TXT file.
Warning
A single table can have no more than 1000 rows and 300 columns.
-
Specify the characters used to separate cells and format rows.
-
If the file contains column headers, enable The first line contains headers option. Otherwise, headers with column numbers will be added automatically.
-
Select import destination for each column from the file:
-
New column: Place the column to the right of the existing columns.
-
Existing column: Append the data to the selected column.
-
Ignore column: Exclude the column from the import.
-
-
Select the data type for the new columns.
-
Click Upload data.
The contents of the selected file will be uploaded to the dynamic table. For more information on how to create and edit dynamic tables, see Dynamic table.