Template:Vardefine/doc

Internal logic lives at Module:Vardefine. This template takes a variable amount of named parameters, and assigns each parameter's value to a #vardefine'd variable using its name.

For example, the following are equivalent:

In general, this is mostly intended to be used in conjunction with Cargo queries, when one would like to extract multiple values from a single query, instead of extracting single values over multiple queries.

Warning: like all  calls, if you attempt to assign an identical field name a second time on the same page, it will overwrite the initial value.