Difference between revisions of "Template:Routebox"

From Beaver State Roads
Jump to navigation Jump to search
(Tightened up routebox spacing)
(Added created_text variable)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float: right; width: 22em; width: 300px; text-align: center;">
+
<div class="routebox">
 
<table width="100%">
 
<table width="100%">
 
<tr>
 
<tr>
<td colspan="2" align="center">{{#ifexpr: {{{noshield|0}}} |  | [[File:{{{type}}}_{{{number}}}{{#if: {{{shield_variant|}}} | _{{{shield_variant}}} | }}.png|150px]] }}</td>
+
<td colspan="2" class="center rb-shield">{{#ifexpr: {{{noshield|0}}} |  | [[File:{{{type}}}_{{{number}}}{{#if: {{{shield_variant|}}} | _{{{shield_variant}}} | }}.png|80px]] }}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="2" align="center">{{{name|Route Name Here}}}</td>
+
<td colspan="2" class="center rb-routename">{{{name|Route Name Here}}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="2" align="center">{{{highway|HighwayName Here}}}{{#if: {{{addl_highways|}}} | <br />{{{addl_highways}}} | }}</td>
+
<td colspan="2" class="center rb-highwayname">{{{highway|Highway Name Here}}}{{#if: {{{addl_highways|}}} | <br />{{{addl_highways}}} | }}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="2" align="center">{{#if: {{{map|}}} | [[File:{{{map}}}|300px]] | }}</td>
+
<td colspan="2" class="center rb-map">{{#if: {{{map|}}} | [[File:{{{map}}}|300px]] | }}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<th colspan="2" align="center" class="subheader">Route Information</th>
+
<th colspan="2" class="center rb-subheader">Route Information</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="2" align="center">Maintained by {{{maintained_by|Jurisdiction}}}</td>
+
<td colspan="2" class="center">Maintained by {{{maintained_by|Jurisdiction}}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<th align="right">Length{{#if: {{{addl_lengths|}}} | s | }}</th>
+
<th class="right">Length{{#if: {{{addl_lengths|}}} | s | }}</th>
<td align="left">{{{length|0.00}}} mi.{{#if: {{{length_note|}}} | &mdash; {{{length_note}}} | }}{{#if: {{{addl_lengths|}}} | <br />{{{addl_lengths}}} | }}</td>
+
<td class="left">{{{length|0.00}}} mi. {{#if: {{{length_note|}}} | &mdash; {{{length_note}}} | }}{{#if: {{{length_ref|}}} | {{{length_ref}}} | }}{{#if: {{{addl_lengths|}}} | <br />{{{addl_lengths}}} | }}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<th align="right">Existed</th>
+
<th class="right">{{{created_text|Existed}}}</th>
<td align="left">{{{created|1900}}}-{{{removed|present}}}{{#if: {{{addl_timespans|}}} | <br />{{{addl_timespans}}} | }}</td>
+
<td class="left">{{{created|1900}}} to {{{removed|present}}}{{#if: {{{addl_timespans|}}} | <br />{{{addl_timespans}}} | }}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<th colspan="2" align="center" class="subheader">Junctions</th>
+
<th colspan="2" class="center rb-subheader">Junctions</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<th align="right">{{{start_terminus_dir|One}}} End</th>
+
<th class="right">{{{start_terminus_dir|One}}} End</th>
<td align="left">{{{start_terminus|}}}</td>
+
<td class="left">{{{start_terminus|}}}</td>
 
</td>
 
</td>
 
</tr>
 
</tr>
 
{{#if: {{{junctions|}}}  
 
{{#if: {{{junctions|}}}  
 
| <tr>
 
| <tr>
<th align="right">&nbsp;</th>
+
<th class="right">&nbsp;</th>
<td align="left">{{{junctions}}}</td>
+
<td class="left">{{{junctions}}}</td>
 
</td>
 
</td>
 
</tr>
 
</tr>
 
| }}
 
| }}
 
<tr>
 
<tr>
<th align="right">{{{end_terminus_dir|Other}}} End</th>
+
<th class="right">{{{end_terminus_dir|Other}}} End</th>
<td align="left">{{{end_terminus|}}}</td>
+
<td class="left">{{{end_terminus|}}}</td>
 
</td>
 
</td>
 
</tr>
 
</tr>
 +
{{#if: {{{multiplexes|}}}
 +
| <tr>
 +
<th colspan="2" class="center rb-subheader">Multiplexes</th>
 +
</tr>
 +
<tr>
 +
<th class="right">&nbsp;</th>
 +
<td class="left">{{{multiplexes}}}</td>
 +
</td>
 +
</tr>
 +
| }}
 
<tr>
 
<tr>
<th colspan="2" align="center" class="subheader">Navigation</th>
+
<th colspan="2" class="center rb-subheader">Navigation</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="2" align="center>
+
<td colspan="2" class="center">
 
<table width="100%">
 
<table width="100%">
 
<tr>
 
<tr>
<td align="left">&larr; {{{prev_route|}}}</td>
+
<td class="left">&larr; {{{prev_route|}}}</td>
<td align="right">{{{next_route|}}} &rarr;</td>
+
<td class="right">{{{next_route|}}} &rarr;</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 61: Line 71:
 
</tr>
 
</tr>
 
</table>
 
</table>
</div><!--[[File:OR_64_1948.png|20px]]-->
+
</div>

Latest revision as of 12:02, 13 October 2022

[[File:{{{type}}}_{{{number}}}.png|80px]]
Route Name Here
Highway Name Here
Route Information
Maintained by Jurisdiction
Length 0.00 mi.
Existed 1900 to present
Junctions
One End
Other End
Navigation