Automated elements: Page breaks, Lists and Paragraph lists in specifications

In all text editors the user have the option of inserting automation codes.
This will generate context and formatting based on the input, entries linked to the chapter and/or entries related to the linked entries.

The following options are currently available

Page Break

User can inser the short-code “[[page-break]]” anywhere in a text to force a page break in the exported PDF

Lists

Used for making simple bullet list, listing all of the connected entries.
Can be used for creating af list of included building Elements in a spec (F.eks. BIPS ‘4.2 Omfang’)
Note: The connected entries can be customised using the API (used for filter app etc)
The format for the list is:

Input
  • Example 1: {{make list (column_name) (‘-‘) (2nd_column)}}
  • Example 2: {{make list (column_name) (“:”) (2nd_column) (‘;’) (3rd_column)}}
Output example
  • AD01 – Vægtype 1
  • AD02 – vægtype 2
  • etc…
The rules
  1. ‘make’ and ‘list’ both in lower case.
  2. between each parenthesis group separated by exactly 1 white space.
  3. the column_name is written without the quote.
  4. Any text inside single quote or double quote will be displayed as is.
  5. there are no space after closing parenthesis
The code that doesn’t match the rules above will not get replaced.

Paragraph lists

Used for making several similar and following paragraphs using journal data.
Can be used for listing journal entries and data where a classic list becomes to big
Note: The connected entries can be customised using the API (used for filter app etc)
The format for the list is:
Input
  • {{make paragraph_list (‘Some intro text. Identification: ‘)(column_name)
    (‘Short description: ‘) (2nd_column_name)}}
Output example
Some intro text. Identification: 5
Short description: Building element 5
Some intro text. Identification: 6
Short description: Building element 6
Some intro text. Identification: 7
Short description: Building element 7
The rules
  1. ‘make’ and ‘paragraph_list’ both in lower case.
  2. Spaces between parenthesis groups doesn’t matter.
  3. the column_name is written without the quote.
  4. Any text inside single quote or double quote will be displayed as is.
  5. there are no space after closing parenthesis
  6. Line shifts between parenthesis will be included.
  7. There is no extra lineshift before or after a paragraph
The code that doesn’t match the rules above will not get replaced.

Chapter lists

Used for making a list of all chapters in the current document, with the option to exclude one or more chapters and include/exclude chapter numbers as prefix.
The format for the list is:
Input
  • {{make chapter_list (‘excluded chapter name 1’) (‘excluded chapter name 2’) (option:no-prefix)}}
Output example
  1. Chapter name 1
  2. Chapter name 2
  3. Chapter name 3
The rules
  1. ‘make’ and ‘chapter_list’ both in lower case.
  2. Chapters will be prefixed with their chapter number, unless “(option:no-prefix)” is added (in which case the numbers will be removed.
  3. Spaces between parenthesis groups doesn’t matter.
  4. Any chapter listed inside single quote or double quote will excluded from the lists.
  5. there are no space after closing parenthesis
The code that doesn’t match the rules above will not get replaced.

Using related entries

The user has the option of using data from related entries rather than the actual linked entries for generating the lists, paragraph liste and table.

This is acheived by adding the text “(option:relation-name:[Relation name])” – where [Relation name] is the name of the relation the user wants to use – just after type statement.

Example:

  • {{make table (option:relation-name:[Relation name 1]) ([parameters_name_1]) (‘Added text’) ([parameters_name_2)}}
Using more relations at once

If the user wants to use several relations, these can be listed in order, divided by a seperator (“|”).

Example:

  • {{make table (option:relation-name:[Relation name 1]|[Relation name 2]) ([parameters_name_1]) (‘Added text’) ([parameters_name_2)}}

Example using New Journal

List

{{make list (short_description) ('-') (standard_property2)}}

Paragraph list

text
{{make paragraph_list ('Some intro text. Identification: ') (short_description)( ‘
‘ )(knaufsystemwallgroup)}}
(html code: {{make paragraph_list (‘Some intro text. Identification: ‘) (short_description) ( ‘<br>’ ) (systemwallgroup)}})
Noter: at <br> er sat ind i i paranteser.

Chapter lists

Exaple for the Danish BIPS 1.000 specification standard, where a list of all included element specifications are listed, excluding the 3 first general chapters.

{{make_chapter_list ("Omfang") ("Orientering") ("Generelle specifikationer") (option:no-prefix)​}}