Legacy Documentation
You are using the documentation for version 4.3.8. Go here for the latest version.
When embedding a template assigned variables from the parent templates are not parsed in the child template.
Assigned Variables are valid only for the template in which they are assigned.