|
|
Line 1: |
Line 1: |
| <noinclude> | | <noinclude>This template is used to query the Cargo Bridge Table for a single entry.</noinclude> |
| This template is used to display Bridge Queries. | | <includeonly> |
| | | {{#cargo_query: |
| </noinclude><includeonly> | | tables=bridge |
| {| class="wikitable"
| | |fields=Name, Road, Water, City, County, Type, Builder, Length, Height, Built, CONCAT(FDOT)=FDOT, Coordinates, Description, Article, Image, Link1, Link2, Link3 |
| ! colspan="5" | {{#if:{{{Article|}}}|[[{{{Article|}}}|{{{Name|}}}]]|{{{Name|}}} }}
| | |where=Name LIKE '{{{1|}}}' |
| |-
| | |order by=_ID DESC |
| | colspan="5" | {{#if:{{{Image|}}}|[[File:{{{Image|}}}|400px|frameless|center|{{{Name|}}}|link={{{Article|}}} ]] }} | | |limit=1 |
| |-
| | |format=template |
| | colspan="4" | Waterway: {{{Water|}}}
| | |named args=yes |
| | style="text-align: right;" | Road: {{{Road|}}}
| | |template=Bridge Box |
| |-
| | |more results text= |
| | colspan="3" | City: {{{City|}}}
| |
| | colspan="2" style="text-align: right;" | County: {{{County|}}}
| |
| |-
| |
| | colspan="3" | Type: {{{Type|}}}
| |
| | colspan="2" style="text-align: right;" | {{#if:{{{Builder|}}}|Builder:{{{Builder|}}} }}
| |
| |-
| |
| | colspan="2" | {{#if:{{{FDOT|}}}|DOT: {{{FDOT|}}} }}
| |
| | {{#if:{{{Length|}}}|L: {{{Length|}}}' }} | |
| | {{#if:{{{Height|}}}|H: {{{Height|}}}' }}
| |
| | style="text-align: right;" | {{#if:{{{Built|}}}|Built: {{{Built|}}} }} | |
| |- | |
| | colspan="5" |{{#if:{{{Coordinates|}}}|<div class="toccolours mw-collapsible mw-collapsed" data-expandtext="Show Map" data-collapsetext="Hide Map">Location: ({{{Coordinates|}}}) | |
| <div class="mw-collapsible-content">
| |
| {{#cargo_display_map:point= {{{Coordinates|}}}|service=googlemaps|width=400px|height=300px|zoom=14}}
| |
| </div>
| |
| }} | | }} |
| |-
| | </includeonly> |
| | colspan="5" | {{{Description|}}} {{#if:{{{Article|}}}|[[{{{Article|}}}|Read Article]] }}
| |
| |-
| |
| | colspan="5" | {{#if:{{{Link1|}}}|[{{{Link1|}}}] }} {{#if:{{{Link2|}}}|<br/>[{{{Link2|}}}] }} {{#if:{{{Link3|}}}|<br/>[{{{Link3|}}}] }}
| |
| |}</div></includeonly>
| |