Collection Variables: Lists

Doc Auto Team
Doc Auto Team

There are two ways to present looped collection data in a list format. You can use collection loops, or use the paragraph function -w:p. Lists can be ordered or unordered, bulleted or unbulleted.

Collection Variables

In general, simply placing the {/} closing tag of a collection on the next line will generate a basic list. In this case, we are relying on the paragraph break (included between the {#} opening and {/} closing tags) to present the data in a list format. 

Sample Shareholdings Data

Fiona Forrest holds 100 Common shares

Gemma Germinate holds 50 Common shares

Herbert Horticulture holds 100 Common shares

Isabella Iridescence holds 25 Common shares

Julian Juniper holds 10 Common shares

Simple List

To code an unordered, unbulleted list of shareholder names:

Input Output

{#shareholdings}{shareholdingName}
{/}

Fiona Forrest

Gemma Germinate

Herbert Horticulture

Isabella Iridescence

Julian Juniper

Numbered / Bulleted List

To code a bulleted or numbered list, simply apply any numbered or bulleted list format offered by Microsoft Word:

Input Output
  1. {#shareholdings}{shareholdingName}
    {/}
  1. Fiona Forrest
  2. Gemma Germinate
  3. Herbert Horticulture
  4. Isabella Iridescence
  5. Julian Juniper

NOTE: Make sure there is no bullet or numbering beside the {/} closing tag, as it would result in an empty bullet or number at the end of your list. For more information on using Microsoft Word formatting, check out the Formatting Text Styles: upper, lower, firstCase article.

Paragraph Function

Using -w:p Notation

The -w:p function is used to create bulleted lists without an additional line (paragraph break). Use -w:p in the opening tag and remember to close the tag with {/}.

Input Output
  • {-w:p shareholdings}{shareholdingName}{/}
  • Fiona Forrest
  • Gemma Germinate
  • Herbert Horticulture
  • Isabella Iridescence
  • Julian Juniper