Template:Generate variable

Usage
This is a simple template that takes a parameter and generates a variable with the parameter's value.
 * 1st parameter or value contains the value.
 * prefix is the prefix of the variable's name.
 * num is the suffix of the variable's name. Default suffix is 0.

The template produces a variable: This template is mostly useful when passed to another template as a parameter, like Template:Distinct values. What this achieves is transforming a list of values collected from parameters to variables for use later.