Originally shared on the public FactorioPrints / Factorio School archive (factorioprints.com · factorio.school). Authorship preserved from the public catalog.
This train station automatically sets the train limit for the station, up to a configurable Max (default M=2) and train length (W=4). It uses the new Selector Combinator from Factorio 2.0 to make this work.