How to create .docx templates for DocuQueue — placeholders, loops, and best practices.
DocuQueue converts your Word documents into fillable PDF templates. You add placeholders in your .docx file, and DocuQueue replaces them with real data when generating PDFs.
Design your layout, add your branding, format it exactly how you want the final PDF to look.
Replace dynamic values with {{ variable_name }} where you want data to appear.
DocuQueue detects your placeholders and creates form fields automatically.
Don't want to start from scratch? Download a pre-built template, customize it in Word, and upload to DocuQueue.
Professional invoice with line items table, tax calculation, and payment terms.
Award or completion certificate with recipient name, course, and date.
Service agreement with two parties, terms section, and signature blocks.
Formal business letter with sender, recipient address, and body content.
{{ variables }} with your data → Save → Upload to DocuQueue → Generate PDF.
Use double curly braces with a variable name inside. Spaces become underscores.
| Placeholder | Detected As | Notes |
|---|---|---|
{{ client_name }} | client_name | Simple variable |
{{ Company Name }} | company_name | Spaces → underscores, lowercase |
{{ order_number }} | order_number | Underscores kept |
{{ total_amount }} | total_amount | Works anywhere in the document |
Placeholders work in all these locations:
Hello {{ name }}{{ item.description }}{{ company_name }}Show or hide sections based on data values using Jinja2 syntax.
To create a table that repeats rows for each item in a list:
Add your headers and one row with placeholders.
{% for %} and {% endfor %} tags in the same table row. DocuQueue expands the row for each item in your data.
Here's a full invoice template:
| Do | Don't |
|---|---|
✓ Use {{ variable_name }} |
✗ Use [brackets] or other formats |
| ✓ Keep variable names short and clear | ✗ Use spaces: {{ Company Name }} |
| ✓ Save as .docx from Word | ✗ Upload .doc or .pdf files |
| ✓ Test with the Preview tab first | ✗ Run batch generation without previewing |
✓ Use {{ item.field }} in table loops |
✗ Put loop tags outside the table |
If your placeholders aren't being detected:
{{ double curly braces }}, not single { braces }DocuQueue — Word Template Guide