Difference between revisions of "Template:Routebox"

From Beaver State Roads
Jump to navigation Jump to search
(Added width to main table)
(Added created_text variable)
 
(11 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">
+
<td colspan="2" class="center rb-shield">{{#ifexpr: {{{noshield|0}}} |  | [[File:{{{type}}}_{{{number}}}{{#if: {{{shield_variant|}}} | _{{{shield_variant}}} | }}.png|80px]] }}</td>
{{#ifexpr: {{{noshield|0}}} |  | [[File:{{{type}}}_{{{number}}}{{#if: {{{shield_variant|}}} | _{{{shield_variant}}} | }}.png|150px]] }}
 
</td>
 
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="2" align="center">
+
<td colspan="2" class="center rb-routename">{{{name|Route Name Here}}}</td>
{{{name|Route Name Here}}}
 
</td>
 
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="2" align="center">
+
<td colspan="2" class="center rb-highwayname">{{{highway|Highway Name Here}}}{{#if: {{{addl_highways|}}} | <br />{{{addl_highways}}} | }}</td>
{{{highway|HighwayName Here}}}
 
{{#if: {{{addl_highways|}}} | {{{addl_highways}}} | }}
 
</td>
 
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td colspan="2" align="center">
+
<td colspan="2" class="center rb-map">{{#if: {{{map|}}} | [[File:{{{map}}}|300px]] | }}</td>
{{#if: {{{map|}}} | [[File:{{{map}}}.jpg|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">
+
<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>
{{{length|0.00}}} mi.{{#if: {{{length_note|}}} | &mdash; {{{length_note}}} | }}
 
{{#if: {{{addl_lengths|}}} | {{{addl_lengths}}} | }}
 
</td>
 
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<th align="right">Existed</th>
+
<th class="right">{{{created_text|Existed}}}</th>
<td align="left">
+
<td class="left">{{{created|1900}}} to {{{removed|present}}}{{#if: {{{addl_timespans|}}} | <br />{{{addl_timespans}}} | }}</td>
{{{created|1900}}}-{{{removed|present}}}
 
{{#if: {{{addl_timespans|}}} | {{{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>
 +
</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>
 
</td>
 
</tr>
 
</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">
+
<td class="left">&larr; {{{prev_route|}}}</td>
&larr; {{{prev_route|}}}
+
<td class="right">{{{next_route|}}} &rarr;</td>
</td>
 
<td align="right">{{{next_route|}}} &rarr;
 
</td>
 
 
</tr>
 
</tr>
 
</table>
 
</table>
Line 79: 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