Template:Tweed 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
Line 9: Line 9:
|Berwick Bridge={{#switch:{{{2}}}
|Berwick Bridge={{#switch:{{{2}}}
|name=Berwick Bridge
|name=Berwick Bridge
|name 2=Berwick Bridge
|name 2=
|n=2
|n=2
|type=b
|type=b
Line 15: Line 15:
|Royal Tweed Bridge={{#switch:{{{2}}}
|Royal Tweed Bridge={{#switch:{{{2}}}
|name=Royal Tweed Bridge
|name=Royal Tweed Bridge
|name 2=Royal Tweed Bridge
|name 2=
|n=3
|n=3
|type=b
|type=b
Line 21: Line 21:
|Royal Border Bridge={{#switch:{{{2}}}
|Royal Border Bridge={{#switch:{{{2}}}
|name=Royal Border Bridge
|name=Royal Border Bridge
|name 2=Royal Border Bridge
|name 2=
|n=4
|n=4
|type=b
|type=b
}}|5
}}|5
|A1 Tweed Bridge
|Berwick Bypass Bridge={{#switch:{{{2}}}
|Berwick Bypass Bridge={{#switch:{{{2}}}
|name=Berwick Bypass Bridge
|name=Berwick Bypass Bridge
|name 2=Berwick Bypass Bridge
|name 2=
|n=5
|n=5
|type=b
|type=b
Line 40: Line 41:
|Ladykirk and Norham Bridge={{#switch:{{{2}}}
|Ladykirk and Norham Bridge={{#switch:{{{2}}}
|name=Ladykirk and Norham Bridge
|name=Ladykirk and Norham Bridge
|name 2=Ladykirk and Norham Bridge
|name 2=
|n=7
|n=7
|type=b
|type=b
Line 46: Line 47:
|Coldstream Bridge={{#switch:{{{2}}}
|Coldstream Bridge={{#switch:{{{2}}}
|name=Coldstream Bridge
|name=Coldstream Bridge
|name 2=Coldstream Bridge
|name 2=
|n=8
|n=8
|type=b
|type=b
}}|9
}}|9
|Hunters Bridge
|Hunter's Bridge={{#switch:{{{2}}}
|Hunter's Bridge={{#switch:{{{2}}}
|name=Hunter's Bridge
|name=Hunter's Bridge
|name 2=Hunter's Bridge
|name 2=
|n=9
|n=9
|type=b
|type=b
Line 58: Line 60:
|Kelso Bridge={{#switch:{{{2}}}
|Kelso Bridge={{#switch:{{{2}}}
|name=Kelso Bridge
|name=Kelso Bridge
|name 2=Kelso Bridge
|name 2=
|n=10
|n=10
|type=b
|type=b
Line 64: Line 66:
|Mertoun Bridge={{#switch:{{{2}}}
|Mertoun Bridge={{#switch:{{{2}}}
|name=Mertoun Bridge
|name=Mertoun Bridge
|name 2=Mertoun Bridge
|name 2=
|n=11
|n=11
|type=b
|type=b
Line 70: Line 72:
|Dryburgh Suspension Bridge={{#switch:{{{2}}}
|Dryburgh Suspension Bridge={{#switch:{{{2}}}
|name=Dryburgh Suspension Bridge
|name=Dryburgh Suspension Bridge
|name 2=Dryburgh Suspension Bridge
|name 2=
|n=12
|n=12
|type=f
|type=f
Line 76: Line 78:
|Leaderfoot Bridge={{#switch:{{{2}}}
|Leaderfoot Bridge={{#switch:{{{2}}}
|name=Leaderfoot Bridge
|name=Leaderfoot Bridge
|name 2=Leaderfoot Bridge
|name 2=
|n=13
|n=13
|type=b
|type=b
Line 82: Line 84:
|Drygrange Old Bridge={{#switch:{{{2}}}
|Drygrange Old Bridge={{#switch:{{{2}}}
|name=Drygrange Old Bridge
|name=Drygrange Old Bridge
|name 2=Drygrange Old Bridge
|name 2=
|n=14
|n=14
|type=b
|type=b
Line 88: Line 90:
|Leaderfoot Viaduct={{#switch:{{{2}}}
|Leaderfoot Viaduct={{#switch:{{{2}}}
|name=Leaderfoot Viaduct
|name=Leaderfoot Viaduct
|name 2=Leaderfoot Viaduct
|name 2=
|n=15
|n=15
|type=v
|type=v
Line 94: Line 96:
|Gattonside Suspension Bridge={{#switch:{{{2}}}
|Gattonside Suspension Bridge={{#switch:{{{2}}}
|name=Gattonside Suspension Bridge
|name=Gattonside Suspension Bridge
|name 2=Gattonside Suspension Bridge
|name 2=
|n=16
|n=16
|type=f
|type=f

Revision as of 21:44, 15 August 2020


{{Tweed bridges}} is a bottom box that may be included at the foot of any article about a bridge on the River Tweed, from the Mouth of the river up to its source at Tweed's Well. 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).

The bottom box runs off a database template, {{Tweed 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 {{Tweed 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 {{Tweed 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.