Template:Export cargo table/doc

This template is used to generate the code for storing all the data of a cargo table (or certain parts of it) to another wiki, e.g. a language variant of the Terraria Wiki.

Usage
Name of the table to export. See Special:CargoTables for a list of available cargo tables.
 * _table

List of the table's fields that should be included in the export, comma-separated. Note that due to Lua's implementation of cargo queries, the order of rows may vary depending on the specified fields, which causes different rows to be displayed if $_limit is set. (However, it is guaranteed that all rows are displayed if $_limit is set to -1, even if their order might vary.)
 * _fields

Maximum number of rows that should be included in the export. Set this to -1 to include all rows. If omitted, defaults to the standard cargo query limit (generally 100).
 * _limit

String that separates the rows in the output. Defaults to a linebreak.
 * _delimiter

This parameter enables generation of the code for the declaration of the cargo table (#cargo_declare). For that, it needs the information about the fields and their types, which should be passed as the remaining parameters. These can easily be copied from the table's declaration code.
 * _withdeclare

Examples
The table used in the following example is the Items table, declared by.