Jump to content

User:Wikid77/Template:Moving avg

From Wikipedia, the free encyclopedia


Template:Moving_avg - specify separator sep=x.

The Template:Moving_avg takes a list of 24 parameters, as 2 years of 12 monthly numbers each, and displays the second set of 12 numbers (parameters 13-24) with the 12-month moving average, or trailing average, after each month's amount. The separator is set by sep=x, and the delimeter at the end of each month/average pair, is set by delim=xx (default is a line-break, <br>).