Sentencing him, Judge Andrew Lees said: "The message was clear - you were providing the name and address of Prince George's school, an image of Prince George's school and the instruction or threat that Prince George and other members of the royal family should be viewed as potential targets."

He added: "You provided what you regarded as inspiration for suitable targets for lone wolf terror attacks.

"Attacks in Western countries were in your eyes the only suitable acceptable alternative to jihad itself."

Rashid admitted three counts of engaging in conduct in preparation of terrorist acts, and was given a life sentence for each, with a minimum term of 25 years, and one count of encouraging terrorism.

Two further charges of dissemination of a terrorist publication were laid on file.

The offences spanned from October 2016 to April this year.

During his May trial, prosecutor Annabel Darlow told the court Rashid messaged the Telegram group with a picture of the young prince, saying: "Even the royal family will not be left alone."

He added: "School starts early."

A magazine he was producing contained suggestions to strike the 2018 World Cup in Russia with vehicles, weapons or bombs.

Rashid, who is said to have taught at the Muhammadi mosque, ran a "prolific" Telegram channel named the Lone Mujahid where he provided an "e-toolkit for terrorism", the prosecution said.

This allegedly included a recipe for the poison ricin from the Islamist propaganda magazine Inspire, how to make Molotov cocktails and napalm, and a suggestion of poisoning supermarket ice creams.

His list of targets were wide-ranging - including British Army bases, shopping centres, Jewish communities and Government buildings.

He also suggested that he planned to flee to Syria to fight for IS.

Judge Lees said Rashid's plans were "indiscriminate" and made no distinction between adult and child, between members of fighting forces and civilians.

His suggestions included injecting poison into supermarket ice creams and targeting Prince George at his first school.

He also plotted to bring down an aircraft with lasers with a British terrorist in Syria, the court heard.

Rashid also posted a photograph of the Burmese ambassador to the UK, saying: "You know what to do", urging others to "fight and spill the blood to the apes in your land" and calling for others to "start preparing tools and weapons/explosives".