default_parameter_
has been deprecated quite long ago. It is recommended not to copy macros from somewhere in the wild as you never know what quality they have.
Check Commands templates - Klipper documentation to get a general and and in particular @mental’s excellent write-up here: Macro Creation Tutorial - #32 by mgoodner