Template:Echo/doc
Jump to navigation
Jump to search
Documentation
This template just echos back the first parameter, or the one named echo
. This is a hack to get a single value out of a Cargo Query to assign to a variable. There's almost certainly a better way to do this (please tell me!)
Usage:
{{Echo|value}}
or
{{Echo|echo=something}}
e.g.
{{#vardefine:oneSpellId|{{#invoke:CargoQuery|main |q?tables=Spells |q?fields=id=echo |q?where=name='{{#var:value}}' |q?limit=1 |template=Echo }} }}