Template:Counter

From bg3.wiki
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"