Template:Tees bridge list: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 45: Line 45:
|type=
|type=
}}|8
}}|8
|Victoria Bridge={{#switch:{{{2}}}
|Victoria Bridge, Stockton-on-Tees={{#switch:{{{2}}}
|name=Victoria Bridge
|name=Victoria Bridge, Stockton-on-Tees
|name 2=
|name 2=Victoria Bridge
|n=8
|n=8
|type=
|type=
Line 75: Line 75:
|type=
|type=
}}|13
}}|13
|Yarm Road Bridge={{#switch:{{{2}}}
|Yarm Bridge={{#switch:{{{2}}}
|name=Yarm Road Bridge
|name=Yarm Bridge
|name 2=
|name 2=
|n=13
|n=13
Line 123: Line 123:
|type=
|type=
}}|21
}}|21
|Croft Road Bridge={{#switch:{{{2}}}
|Croft Bridge={{#switch:{{{2}}}
|name=Croft Road Bridge
|name=Croft Bridge
|name 2=
|name 2=
|n=21
|n=21
|type=
|type=
}}|22
}}|22
|Blackwell Bridge, Darlington={{#switch:{{{2}}}
|Blackwell Bridge={{#switch:{{{2}}}
|name=Blackwell Bridge, Darlington
|name=Blackwell Bridge
|name 2=Blackwell Bridge
|name 2=
|n=22
|n=22
|type=
|type=
Line 183: Line 183:
|type=
|type=
}}|31
}}|31
|Abbey Bridge={{#switch:{{{2}}}
|Abbey Bridge, Egglestone={{#switch:{{{2}}}
|name=Abbey Bridge
|name=Abbey Bridge, Egglestone
|name 2=
|name 2=Abbey Bridge
|n=31
|n=31
|type=
|type=

Latest revision as of 22:31, 17 September 2024


{{Tees bridges}} is a bottom box that may be included at the foot of any article about a bridge on the River Tees, from the Middlesbrough Transporter Bridge up to the source of the river. It should show the bridge which the article concerns and the next three crossings each side, upstream and downstream (or in the case of one close to either end of the range, that end of the range).

Further developments could include putting tunnels and locks (for example) in italics, or perhaps showing tunnels below the line.

The bottom box runs off a database template, {{Tees bridge list}}. The text of this template was generated with a mail merge from an Excel file held by RB, so if a bridge has to be added or deleted, the merge should be re-run, to avoid having to renumber every data record.

(The '#switch' function at the start of {{Tees bridges}} will also have to be adjusted if the number of data records increases or decreases.)

If the name of the Article does not match the name given in the data template {{Tees bridge list}} (in the #switch:{{{1}}} function and as "name=") then it will not "catch" and the data (and the Excel file) should be changed. A short name can be given in "name 2=".

The bridge name will be shown on the list just in black if there is no corresponding article, but it will appear as a blue link when an article is created. If the "name 2=" field is filled in, it will appear as a link even if there is no article yet.