Only editions are up and down compatible. Different engine versions are backward, but not forward compatible. However, as WDL does not support new A8 commands anyway, a WDL script will run the same way in A8 and A7.
Of course we do not recommend using WDL for templates. WDL is the script dialect of A6 and earlier versions. A7 and A8 scripts should be written in lite-C.