The fictional Skarloey Railway was based on the Talyllyn Railway . The Talyllyn Railway is represented in the Thomas the Tank Engine books as the Skarloey Railway ; most of the fictional locomotives are based on real-life equivalents .