Jump to content

Template:Whyte and Template:Whyte/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Special case 0-8-4 as the main article is not about the wheel arrangement
 
m fix
 
Line 1: Line 1:
{{nowrap|{{#switch: {{{1|}}}
<includeonly>{{nowrap|{{#if: {{{1|}}}|{{#switch: {{{1|}}}{{{2|}}}|
<!-- Place any wheel arrangements WITH SUFFIXES, which (root+suffix combined) are disambiguation pages or the wheel arangement isn't the primary topic, below -->
|4-4-2=[[4-4-2 (locomotive)|4-4-2]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
foobar = [[WP:Example|foobar]]
|2-4-4=[[2-4-4T|2-4-4]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
<!-- end of list -->
|0-8-4=[[0-8-4T|0-8-4]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|{{#if: {{{2|}}}|
|4w=[[Whyte notation#Internal combustion locomotives|4w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
{{#ifexist: {{{1|}}}{{{2|}}}
|6w=[[Whyte notation#Internal combustion locomotives|6w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|[[{{{1|}}}{{{2|}}}]]}}<!-- Gives a direct link if there is one -->
|8w=[[Whyte notation#Internal combustion locomotives|8w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|{{#ifexist: {{{1|}}}|
|{{#switch: {{{1|}}}
<!-- Place any wheel arrangements WITHOUT SUFFIXES, which are dab pages, below -->
[[{{{1|}}}]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}|
{{{1|}}}{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|4-4-2 = [[4-4-2 (locomotive)|4-4-2]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|4w = [[4w (locomotive)|4w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
}}}}}}<noinclude>
|6w = [[6w (locomotive)|6w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}

|8w = [[8w (locomotive)|8w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
{{doc}}
<!--end of list -->
</noinclude>
|[[{{{1|}}}]]{{Whyte suffix|{{{2|}}}}}
}}
}}|
<!-- This should duplicate above -->
{{#switch: {{{1|}}}
|4-4-2 = [[4-4-2 (locomotive)|4-4-2]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|4w = [[4w (locomotive)|4w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|6w = [[6w (locomotive)|6w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|8w = [[8w (locomotive)|8w]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
|[[{{{1|}}}]]{{Whyte suffix|{{{2|}}}|{{{3|}}}}}
}}
<!--end of duplication -->
}}
}}|{{error|[[Template:Whyte]] used without any parameters}}}}</includeonly><noinclude>{{doc}}</noinclude>