A MINI-episode of Doctor Who has been written by schoolchildren from Oakley.

The pupils, from Oakley Junior School, won a competition to write a mini-adventure that will star Matt Smith as the Doctor, and be broadcast in the autumn.

Four children from the school in Oakley Lane travelled to the BBC studios in Cardiff, where their script was brought to life and filmed by the Doctor Who team.

The BBC’s Script to Screen competition was aimed at upper primary school pupils, and involved them writing a three-minute script that takes the Time Lord on a new quest, travelling through space and time inside the Tardis.

Kevin Downing, a Year 6 teacher at the school, said that the pupils were delighted to win.

He added: “I told all the upper school children about the Doctor Who competition in assembly and asked them to come up with a good plot in groups of two to four.”

He said that the four children who won the competition told him their idea, and he knew straight away that it had potential, because of its originality, humour and mystery.

Mr Downing added: “The children had great fun deliberating over how The Doctor would react to things.”

Details of the winning script are a closely guarded secret, but it includes a well-known historical figure.

Winning pupils Adam Shephard, Daniel Heaton, Ben Weston and Katie Hossick, went behind the scenes to find out how the script is developed from paper to television screen. The competition required a story that included one of four fearsome monsters from the show, as well as a new human character to test the wits of The Doctor.

Steven Moffat, head writer at Doctor Who, said: “I loved the shortlisted scripts. There was so much skill and enthusiasm on display that it was actually genuinely very, very difficult to judge.”