Template:Rail line one to four

{{s-start}}

{{rail line |lightcol= {{safesubst:if empty| {{{lightcol1|}}} | {{{lightcol|}}} }}

|col= {{safesubst:if empty | {{{col1|}}} | {{{col|}}} }}

|previous= {{{previous|}}}|rows1=4

|route= {{safesubst:if empty| {{{route|}}} | {{{route1}}} }} | rowsmid = {{safesubst:#if:{{{route|}}}|4|1}}

|next= {{{next1|}}}

}}

{{rail line |lightcol={{safesubst:if empty| {{{lightcol2|}}} | {{{lightcol|}}} }}

|col= {{safesubst:if empty | {{{col2|}}} | {{{col|}}} }}

|hide1=yes|mergecol={{safesubst:#if:{{{col|}}}|yes}}

|route= {{safesubst:if empty| {{{route|}}} | {{{route2}}} }} | hidemid = {{safesubst:#if:{{{route|}}}|yes}}

|next= {{{next2|}}}

}}

{{rail line |lightcol={{safesubst:if empty| {{{lightcol3|}}} | {{{lightcol|}}} }}

|col= {{safesubst:if empty | {{{col3|}}} | {{{col|}}} }}

|hide1=yes|mergecol={{safesubst:#if:{{{col|}}}|yes}}

|route= {{safesubst:if empty| {{{route|}}} | {{{route3}}} }} | hidemid = {{safesubst:#if:{{{route|}}}|yes}}

|next= {{{next3|}}}

}}

{{rail line |lightcol={{safesubst:if empty| {{{lightcol4|}}} | {{{lightcol|}}} }}

|col= {{safesubst:if empty | {{{col4|}}} | {{{col|}}} }}

|hide1=yes|mergecol={{safesubst:#if:{{{col|}}}|yes}}

|route= {{safesubst:if empty| {{{route|}}} | {{{route4}}} }} | hidemid = {{safesubst:#if:{{{route|}}}|yes}}

|next= {{{next4|}}}

}}{{safesubst:#if:{{{previous1|}}}{{{previous2|}}}{{{previous3|}}}{{{previous4|}}}{{{next|}}}|Category:Incompatible parameters in rail line template

}}{{safesubst:#if:{{{route|}}}|{{safesubst:#if:{{{route1|}}}{{{route2|}}}{{{route3|}}}{{{route4|}}}|Category:Incompatible parameters in rail line template}}

}}{{safesubst:#if:{{{col|}}}|{{safesubst:#if:{{{col1|}}}{{{col2|}}}{{{col3|}}}{{{col4|}}}|Category:Incompatible parameters in rail line template}}

}}

{{s-end}}

{{documentation}}