Archive:List format 0.7 - 1.6.2

The result format list is used to format query results as comma-separated lists. The format list is the default way of formatting query results for all queries that have no additional printout statements. Similar results formats are ol and ul.

Parameters
This format introduces the following additional parameters:
 * columns: the number of columns into which to split up results (default is 1)
 * sep: the text to be used to separate items
 * template: the name of a template for template-based formatting

The use of templates for formatting is explained in Help:Result templates.

Examples
Result:

If more printouts are given, then the format must be requested explicitly:

Result:

The headers can be hidden by giving them empty labels:

Result:

The same effect is achieved by headers=hide.

Another separator than «,» e.g. «and» can be used if specified by sep:

Result:

The underscores here are used to create spaces that are not removed by MediaWiki when reading the parameter.

Remarks
Using the format list with templates has the advantage of having the right amount of separators (e.g. «,») between results. For example, one can have a template that formats email lists that can be copied and pasted into an email client, where each entry has the form Name of person 

It makes sense to set sep=,_</tt> to have a list that uses commas for all separators instead of having the last one being an «and».