Real Madrid forward Cristiano Ronaldo will be sidelined for around three weeks due to an ankle injury, the Primera Division club have confirmed.