Difference between revisions of "Template:Bus route table"
Jump to navigation
Jump to search
imported>Evad37 (start) |
imported>Evad37 (allow stop cell to span rows (and be omitted from others)) |
||
| Line 1: | Line 1: | ||
{{#switch:{{{1|}}} | {{#switch:{{{1|}}} | ||
| + | |||
|top = <table class="wikitable plainrowheaders">{{#if:{{{caption|}}}|<caption>{{{caption|}}}}}</caption> | |top = <table class="wikitable plainrowheaders">{{#if:{{{caption|}}}|<caption>{{{caption|}}}}}</caption> | ||
<tr> | <tr> | ||
| Line 7: | Line 8: | ||
<th scope="col">Notes</th> | <th scope="col">Notes</th> | ||
</tr><noinclude></table></noinclude> | </tr><noinclude></table></noinclude> | ||
| + | |||
|bottom=<noinclude><table> | |bottom=<noinclude><table> | ||
</noinclude>{{#if:{{{key|}}}|<tr><td rowspan=4 style="text-align:center; background:#f2f2f2;">{{{key|3}}}</td></tr> | </noinclude>{{#if:{{{key|}}}|<tr><td rowspan=4 style="text-align:center; background:#f2f2f2;">{{{key|3}}}</td></tr> | ||
}}</table> | }}</table> | ||
| + | |||
|#default=<noinclude><table class="wikitable plainrowheaders"> | |#default=<noinclude><table class="wikitable plainrowheaders"> | ||
| − | </noinclude><tr> | + | </noinclude><tr>{{#if:{{{stop|}}}| |
| − | <td rowspan= | + | <td rowspan={{{sspan|1}}}>{{{stop|}}}</td>}} |
| − | <th scope=row>{{{route| | + | <th scope=row>{{{route|}}}</th> |
| − | <td>{{{dest| | + | <td>{{{dest|}}}</td> |
| − | <td>{{{notes| | + | <td>{{{notes|}}}</td> |
| − | </tr><noinclude></table></noinclude>}} | + | </tr><noinclude></table></noinclude> |
| + | }} | ||