Template:Counter

From Baldur's Gate 3 Wiki
Revision as of 10:44, 5 February 2024 by Nattern (talk | contribs) (Created page with "<includeonly>{{#vardefine:{{{counter name|counter}}}|{{#expr:{{#var:{{{counter name|counter}}}}}+1}}}}</includeonly><noinclude>{{Documentation |content=Template that adds +1 to the value of the local variable "counter" every time it is called. == Usage == Define the variable with {{code|<nowiki>{{#vardefine:counter|0}}</nowiki>}} before calling the template {{code|<nowiki>{{Counter}}</nowiki>}}. If you need multiple counters that count at the same time use the {{code|<...")
(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: "0"