Difference between revisions of "Template:Bus route table"

From blackwiki
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=3>{{{stop|<noinclude>{{{stop}}}</noinclude>}}}</td>
+
<td rowspan={{{sspan|1}}}>{{{stop|}}}</td>}}
<th scope=row>{{{route|<noinclude>{{{route}}}</noinclude>}}}</th>
+
<th scope=row>{{{route|}}}</th>
<td>{{{dest|<noinclude>{{{dest}}}</noinclude>}}}</td>
+
<td>{{{dest|}}}</td>
<td>{{{notes|<noinclude>{{{notes}}}</noinclude>}}}</td>
+
<td>{{{notes|}}}</td>
</tr><noinclude></table></noinclude>}}
+
</tr><noinclude></table></noinclude>
 +
}}

Revision as of 09:33, 3 February 2016