Template:Protected course/Subpage

This version allows the user to write just the subpage name (and not the entire path) as the variable.