You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/labeldesigner/templates/labeldesigner.html
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -356,12 +356,13 @@ <h6>Additional Font Options:</h6>
356
356
<li><code>{{'{{datetime:%H:%M:%S %d.%m.%Y'}}}}</code> — Inserts the current date and time when printing.
357
357
You can customize the format using <ahref="https://strftime.org/" target="_blank"
358
358
rel="noopener">strftime</a> options.</li>
359
-
<li><code>{{'{{counter'}}}}</code> — Inserts an up-counting number, increasing for every printed label.
359
+
<li><code>{{'{{counter[:start]}}'}}</code> — Inserts an up-counting number. You can optionally specify a <code>start</code> value (defaulting to 1) to start counting from a different number.
360
+
When printing multiple labels at once, the counter automatically increments for each label.
360
361
</li>
361
362
<li><code>{{'{{uuid'}}}}</code> — Inserts a random UUID (Universally Unique Identifier).</li>
362
363
<li><code>{{'{{short-uuid'}}}}</code> — Inserts a shortened version of a UUID.</li>
363
-
<li><code>{{'{{env:var}}'}}</code> — Inserts the value of the environment variable <code>var</code>.
364
-
</li>
364
+
<li><code>{{'{{env:var}}'}}</code> — Inserts the value of the environment variable <code>var</code>.</li>
365
+
<li><code>{{'{{random[:len]}}'}}</code> — Inserts a random string of optional length <code>len</code> (defaulting to 64).</li>
365
366
</ul>
366
367
<spanclass="text-muted">Templates are replaced at print time.</span>
0 commit comments