Difference between revisions of "Template:Routebox"
Jump to navigation
Jump to search
(Allow any filetype to be used as map) |
(Added created_text variable) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div | + | <div class="routebox"> |
<table width="100%"> | <table width="100%"> | ||
<tr> | <tr> | ||
− | <td colspan="2" | + | <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| | ||
− | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td colspan="2" | + | <td colspan="2" class="center rb-routename">{{{name|Route Name Here}}}</td> |
− | {{{name|Route Name Here}}} | ||
− | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td colspan="2" | + | <td colspan="2" class="center rb-highwayname">{{{highway|Highway Name Here}}}{{#if: {{{addl_highways|}}} | <br />{{{addl_highways}}} | }}</td> |
− | {{{highway| | ||
− | {{#if: {{{addl_highways|}}} | {{{addl_highways}}} | }} | ||
− | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td colspan="2" | + | <td colspan="2" class="center rb-map">{{#if: {{{map|}}} | [[File:{{{map}}}|300px]] | }}</td> |
− | {{#if: {{{map|}}} | [[File:{{{map}}}|300px]] | }} | ||
− | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <th colspan="2" | + | <th colspan="2" class="center rb-subheader">Route Information</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td colspan="2" | + | <td colspan="2" class="center">Maintained by {{{maintained_by|Jurisdiction}}}</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <th | + | <th class="right">Length{{#if: {{{addl_lengths|}}} | s | }}</th> |
− | <td | + | <td class="left">{{{length|0.00}}} mi. {{#if: {{{length_note|}}} | — {{{length_note}}} | }}{{#if: {{{length_ref|}}} | {{{length_ref}}} | }}{{#if: {{{addl_lengths|}}} | <br />{{{addl_lengths}}} | }}</td> |
− | {{{length|0.00}}} mi.{{#if: {{{length_note|}}} | — {{{length_note}}} | }} | ||
− | {{#if: {{{addl_lengths|}}} | {{{addl_lengths}}} | }} | ||
− | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <th | + | <th class="right">{{{created_text|Existed}}}</th> |
− | <td | + | <td class="left">{{{created|1900}}} to {{{removed|present}}}{{#if: {{{addl_timespans|}}} | <br />{{{addl_timespans}}} | }}</td> |
− | {{{created|1900}}} | ||
− | {{#if: {{{addl_timespans|}}} | {{{addl_timespans}}} | }} | ||
− | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <th colspan="2" | + | <th colspan="2" class="center rb-subheader">Junctions</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <th | + | <th class="right">{{{start_terminus_dir|One}}} End</th> |
− | <td | + | <td class="left">{{{start_terminus|}}}</td> |
</td> | </td> | ||
</tr> | </tr> | ||
{{#if: {{{junctions|}}} | {{#if: {{{junctions|}}} | ||
| <tr> | | <tr> | ||
− | <th | + | <th class="right"> </th> |
− | <td | + | <td class="left">{{{junctions}}}</td> |
</td> | </td> | ||
</tr> | </tr> | ||
| }} | | }} | ||
<tr> | <tr> | ||
− | <th | + | <th class="right">{{{end_terminus_dir|Other}}} End</th> |
− | <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"> </th> | ||
+ | <td class="left">{{{multiplexes}}}</td> | ||
</td> | </td> | ||
</tr> | </tr> | ||
+ | | }} | ||
<tr> | <tr> | ||
− | <th colspan="2" | + | <th colspan="2" class="center rb-subheader">Navigation</th> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td colspan="2" | + | <td colspan="2" class="center"> |
<table width="100%"> | <table width="100%"> | ||
<tr> | <tr> | ||
− | <td | + | <td class="left">← {{{prev_route|}}}</td> |
− | ← {{{prev_route|}}} | + | <td class="right">{{{next_route|}}} →</td> |
− | </td> | ||
− | <td | ||
− | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 79: | Line 71: | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | </div | + | </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 | |||
|