Template:Parameters to variables

Use Template:Distinct values in conjunction with Template:Generate variable to achieve similar result

Usage
This template converts its parameters to variables. This is useful only when you don't provide the parameters manually but instead they are generated from a DPL call.
 * prefix indicates that only the parameters starting with this prefix should be converted. The prefix should not be a prefix of the word "prefix". Default prefix is "x".

Output: The output of this template is
 * 1) A variable  containing the number of variables converted. This is useful for performing loops on the variables.
 * 2) A set of variables  where is the prefix given to the template and is an ascending number starting from 1 and ending at  . This allows you to use a loop and access all the variables. The value of the variables is the value of the parameters given.

Example
The above will result in a bunch of variables containing the names of the patron factions. With a simple loop, we could list them.