Difference between revisions of "Template:Crossing"

From All About Ayrshire
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
--><table style="margin:6px;clear:right;" class="toc colour" align="right" width="267"><!--
+
<table style="margin:6px;clear:right;" class="toc colour" align="right" width="267"><!--
  
Name--><tr><td style="background:{{Get bg colour|{{{type|non primary}}} }}; border:1px solid #000000; color:{{Get road text colour|{{{type|non primary}}} }}; font-size:14pt; padding:4px; font-weight: bold;" align=center colspan="2">'''{{#if: {{{name|}}} | {{{name|}}} | {{PAGENAME}} }}'''<!--
+
Name--><tr><td style="background:{{Get bg colour|{{{type|ferry}}} }}; border:1px solid #000000; color:{{Get road text colour|{{{type|ferry}}} }}; font-size:14pt; padding:4px; font-weight: bold;" align=center colspan="2">'''{{#if: {{{name|}}} | {{{name|}}} | {{PAGENAME}} }}'''<!--
  
 
Check to see if type is valid
 
Check to see if type is valid
-->{{#switch: {{{type|non primary}}} | primary | non primary  | motorway  | defunct  | unbuilt motorway | former motorway  | future motorway  | future primary  | unbuilt primary  | future non primary | unbuilt non primary | historical | roman | tourist | euroroute | e road | ncn | cycle route | private | eurovelo = | #default = <br/><span style="font-size:8pt"><span style="color:red;">'''Error:'''</span> Invalid type specified</span><includeonly>[[Category:Pages with errors]]</includeonly> }} <!--
+
-->{{#switch: {{{type|non primary}}} | primary | non primary  | motorway  | defunct  | unbuilt motorway | former motorway  | future motorway  | future primary  | unbuilt primary  | future non primary | unbuilt non primary | historical | roman | tourist | euroroute | e road | ncn | cycle route | private | ferry | eurovelo = | #default = <br/><span style="font-size:8pt"><span style="color:red;">'''Error:'''</span> Invalid type specified</span><includeonly>[[Category:Pages with errors]]</includeonly> }} <!--
  
 
--></td></tr><!--
 
--></td></tr><!--
  
Name
+
 
-->{{#if: {{{name|}}} | <tr><td align="center" colspan="2">'''{{{name}}}'''</td></tr>}}<!--
 
  
  
Line 43: Line 42:
 
-->{{#if: {{{country|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Country'''</td></tr><tr><td colspan="2" align="center">
 
-->{{#if: {{{country|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Country'''</td></tr><tr><td colspan="2" align="center">
 
{{{country}}}  
 
{{{country}}}  
 +
</td></tr>}}<!--
 +
 +
County
 +
-->{{#if: {{{county|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''County'''</td></tr><tr><td colspan="2" align="center">
 +
{{{county}}}
 
</td></tr>}}<!--
 
</td></tr>}}<!--
  
 
Length
 
Length
 
-->{{#if: {{{miles|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Distance of Travel'''</td></tr><tr><td colspan="2" align="center">{{#expr:{{{miles}}} round 1}} miles ({{#expr: ({{{miles}}} * 1.6093) round 1 }} km)
 
-->{{#if: {{{miles|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Distance of Travel'''</td></tr><tr><td colspan="2" align="center">{{#expr:{{{miles}}} round 1}} miles ({{#expr: ({{{miles}}} * 1.6093) round 1 }} km)
 +
</td></tr>}}<!--
 +
 +
Time
 +
-->{{#if: {{{time|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Time of Travel'''</td></tr><tr><td colspan="2" align="center">
 +
{{{time}}}
 
</td></tr>}}<!--
 
</td></tr>}}<!--
  
Line 52: Line 61:
 
-->{{#if: {{{meets|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Meets'''</td></tr><tr><td colspan="2" align="center">
 
-->{{#if: {{{meets|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Meets'''</td></tr><tr><td colspan="2" align="center">
 
{{{meets}}}  
 
{{{meets}}}  
</td></tr>}}<!--
 
 
Authority
 
-->{{#if: {{{authority|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Highway Authority'''</td></tr><tr><td colspan="2" align="center">
 
{{{authority}}}
 
</td></tr>}}<!--
 
 
 
County
 
-->{{#if: {{{county|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''County'''</td></tr><tr><td colspan="2" align="center">
 
{{{county}}}
 
 
</td></tr>}}<!--
 
</td></tr>}}<!--
  
 
Operator
 
Operator
 
-->{{#if: {{{operator|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Operator'''</td></tr><tr><td colspan="2" align="center">
 
-->{{#if: {{{operator|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Operator'''</td></tr><tr><td colspan="2" align="center">
{{{Operator}}}  
+
{{{operator}}}  
 
</td></tr>}}<!--
 
</td></tr>}}<!--
  
Line 77: Line 75:
  
 
--></table><!--
 
--></table><!--
 
## Categories ##
 
--><includeonly><!--
 
 
Categorise in the main "All Crossings" category.  They will be sorted by the name given in then "name" parameter, unless that is not used, in which case it uses the page name.
 
-->{{DEFAULTSORT:{{{name|{{PAGENAME}}}}}}}
 
[[Category:All Crossings]]
 
 
<!-- If type is set to "ferry", add to "Ferries" category -->
 
{{#ifeq: {{{type|}}}| ferry | [[Category:Ferries]]}}</includeonly>
 

Latest revision as of 15:15, 13 October 2015

Crossing
From:-{{{from}}}
To:-{{{to}}}