Docs feedback: Document purpose of !reference vs extends

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

When should you use !reference vs extends? Also the intro section at https://docs.gitlab.com/ee/ci/yaml/yaml_optimization.html should say something about !reference.

Edited by 🤖 GitLab Bot 🤖