Template:Counter

From bg3.wiki
Revision as of 08:50, 6 February 2024 by Nattern (talk | contribs) (Updated counter/2)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation

Template that adds +1 to the value of the local variable "counter" every time it is called.

Usage

Define the variable with {{#vardefine:counter|0}} before calling the template {{Counter}}.

If you need multiple counters that count at the same time use the {{counter/2}} template and define with {{#vardefine:counter2|0}}

Examples

{{#vardefine:counter|0}}
{{#cargo_query:
  tables=conditions
  | fields=name
  | where=stack_id='HASTE'
  | format=template
  | template=counter
}}

Total Rows: "{{#var:counter}}"

Total Rows: "5"