The fictional Skarloey Railway was based on the Talyllyn Railway . This fictional railway formed part of the Railway Series of children 's books by The Rev. W. Awdry . The fictional Skarloey Railway , which formed part of the Railway Series of children 's books by The Rev. W. Awdry , was based on the Talyllyn Railway .