LikhaDocs LogoLikhaDocs
TemplatesAdvancedAbout 12 min

Advanced Word template and placeholder reference

Create or repair a DOCX template by placing supported LikhaDocs placeholders and repeating table rows.

Advanced12 minute read
On this page
  1. How templates work
  2. Single placeholders
  3. Repeating table rows
  4. Figures and appendices
  5. Validation errors

How templates work

A DOCX file is a package of document XML, images, styles, and relationships. LikhaDocs opens the package, validates supported tags, replaces placeholders with saved or generated report data, and returns a new DOCX while keeping most of the original layout.

The template controls formatting

LikhaDocs fills content into the existing Word layout. Fonts, margins, tables, headings, and most spacing should already be correct in the template.

Single placeholders

  • Use uppercase placeholder names inside double braces.
  • Do not manually split a placeholder across lines.
  • Place the placeholder where the related report content should appear.
  • Only supported placeholder names are accepted.
{{STUDENT_NAME}}

Student name or all group member names.

{{INTRODUCTION}}

General introduction content.

{{TASKS_PERFORMED_LOOP}}

Manual or AI-generated Tasks Performed items.

{{WEEKLY_JOURNAL_LOOP}}

Saved weekly journal entries.

{{REFERENCES_LOOP}}

Saved references.

{{APPENDICES_CONTENT_LOOP}}

Actual appendix pages and embedded appendix content.

Repeating table rows

A loop repeats one existing Word table row for every saved item. Put the opening loop tag in the first cell and the closing tag in the last cell of the same row.

  • TABLE_OF_CONTENTS uses TITLE and PAGE.
  • APPENDICES uses NUMBER, TITLE, and PAGE.
  • FIGURES uses NUMBER, CAPTION, and PAGE.
  • APPENDIX_FIGURES uses NUMBER, CAPTION, and PAGE.
LoopUse inside the rowAvailability
{{#TABLE_OF_CONTENTS}} … {{/TABLE_OF_CONTENTS}}{{TITLE}} and {{PAGE}}Every plan
{{#APPENDICES}} … {{/APPENDICES}}{{NUMBER}}, {{TITLE}}, and {{PAGE}}Every plan
{{#FIGURES}} … {{/FIGURES}}{{NUMBER}}, {{CAPTION}}, and {{PAGE}}Classic and Premium automation
{{#APPENDIX_FIGURES}} … {{/APPENDIX_FIGURES}}{{NUMBER}}, {{CAPTION}}, and {{PAGE}}Classic and Premium automation

Figures and appendices

  • Location and organisational structure figures follow their related company sections.
  • Facility, equipment, and task figures continue in document order.
  • APPENDICES_CONTENT_LOOP should appear on its own line where appendix pages begin.
  • Weekly journal and photo-documentation appendices are rendered through the appendix content loop.

Validation errors

  • Missing required tag: add the selected placeholder or unselect that section.
  • Unknown tag: correct the placeholder name or remove an unsupported tag.
  • Invalid syntax: use two opening and two closing braces with uppercase letters, numbers, or underscores.
  • Loop pair error: include both opening and closing tags in the same repeating row.
  • Unmatched braces: repair incomplete {{ or }} text in the document.