Template:Sumf/doc

This template provides a simple way to have a recurring cumulative sum on a page.

Usage
After usage, sumf adds the passed number to the current counter and displays the number. This number is formatted with, so it has commas. The counter starts at 0. Calling sumf with no number will simply return the current value.

By default the value is stored using the variable. This can be accessed as normal using,  , and similar. The  parameter can be used to change the name of the variable storing it.