Original: 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.
Simplified: The fictional Skarloey Railway was based on the Talyllyn Railway.