Difference between revisions of "Template:Invocations"

From QBWiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{Add|{{FULLPAGENAME}}_invocations|1}}{{#var:{{FULLPAGENAME}}_invocations}}</includeonly><noinclude> {{Template doc| A simple counter that can be used to track th...")
 
m
Line 1: Line 1:
<includeonly>{{Add|{{FULLPAGENAME}}_invocations|1}}{{#var:{{FULLPAGENAME}}_invocations}}</includeonly><noinclude>
+
<includeonly>{{Add|{{FULLPAGENAME}}_invocations|1}}{{#vardefine:invocations|{{#var:{{FULLPAGENAME}}_invocations}}}}{{#var:invocations}}</includeonly><noinclude>
 
{{Template doc|
 
{{Template doc|
 
A simple counter that can be used to track the number of times a particular template has been invoked ''if'' included exactly once. Emits a value that will be consistent for a given invocation, meaning it can be used to define invocation-specific variables.
 
A simple counter that can be used to track the number of times a particular template has been invoked ''if'' included exactly once. Emits a value that will be consistent for a given invocation, meaning it can be used to define invocation-specific variables.
  
 
<pre>
 
<pre>
{{Invocations}} -> {{Invocations}} -> {{Invocations}} ({{#var:Template:Invocations_invocations}})
+
{{Invocations}} -> {{Invocations}} -> {{Invocations}} ({{#var:Template:Invocations_invocations}}, {{#var:invocations}})
 
</pre>
 
</pre>
{{Invocations}} -> {{Invocations}} -> {{Invocations}} ({{#var:Template:Invocations_invocations}})
+
{{Invocations}} -> {{Invocations}} -> {{Invocations}} ({{#var:Template:Invocations_invocations}}, {{#var:invocations}})
 
}}</noinclude>
 
}}</noinclude>

Revision as of 17:48, 20 December 2025

Template documentation

A simple counter that can be used to track the number of times a particular template has been invoked if included exactly once. Emits a value that will be consistent for a given invocation, meaning it can be used to define invocation-specific variables.

{{Invocations}} -> {{Invocations}} -> {{Invocations}} ({{#var:Template:Invocations_invocations}}, {{#var:invocations}})

1 -> 2 -> 3 (3, 3)