Template:Expansion extractor

Usage
This template is a phantom template used in DPL calls.

It extracts the free state from a quest template that uses the following named parameters: The result is a raw unformatted number usable in calculations. It also stores the result in the variable for further use by the calling template. This is only useful if the template is not used as a phantom in DPL, in which case the variable cannot be accessed. In case the template can't extract a value (missing parameters or unknown format), nothing is produced.
 * free

Examples
* The below code does the following:
 * It selects every level 1 and level 2 quest.
 * It restricts the selection to the quests that actually use the template Quest
 * It passes all the parameters of template Quest to Expansion extractor.
 * It declares that the output should follow the format strictly defined by the user (and not lists or tables)
 * It defines the format of the output
 * The output will start with " "
 * Before each result's output, the " " will be added.
 * After each result's output nothing will be added
 * At the end of the output, " " will be added.
 * This would pass every favor number as a parameter to a template Add.