Difference between revisions of "Template:Tweed bridge list"

From Wikishire
Jump to: navigation, search
Line 100: Line 100:
 
|Melrose Bridge={{#switch:{{{2}}}
 
|Melrose Bridge={{#switch:{{{2}}}
 
|name=Melrose Bridge
 
|name=Melrose Bridge
|name 2=Melrose Bridge
+
|name 2=
 
|n=17
 
|n=17
 
|type=b
 
|type=b
Line 106: Line 106:
 
|Redbridge Viaduct={{#switch:{{{2}}}
 
|Redbridge Viaduct={{#switch:{{{2}}}
 
|name=Redbridge Viaduct
 
|name=Redbridge Viaduct
|name 2=Redbridge Viaduct
+
|name 2=
 
|n=18
 
|n=18
 
|type=v
 
|type=v
Line 112: Line 112:
 
|Galafoot Bridge={{#switch:{{{2}}}
 
|Galafoot Bridge={{#switch:{{{2}}}
 
|name=Galafoot Bridge
 
|name=Galafoot Bridge
|name 2=Galafoot Bridge
+
|name 2=
 
|n=19
 
|n=19
 
|type=b
 
|type=b
Line 124: Line 124:
 
|Yair Bridge={{#switch:{{{2}}}
 
|Yair Bridge={{#switch:{{{2}}}
 
|name=Yair Bridge
 
|name=Yair Bridge
|name 2=Yair Bridge
+
|name 2=
 
|n=21
 
|n=21
 
|type=b
 
|type=b
Line 130: Line 130:
 
|Ashiestiel Bridge={{#switch:{{{2}}}
 
|Ashiestiel Bridge={{#switch:{{{2}}}
 
|name=Ashiestiel Bridge
 
|name=Ashiestiel Bridge
|name 2=Ashiestiel Bridge
+
|name 2=
 
|n=22
 
|n=22
 
|type=b
 
|type=b
Line 136: Line 136:
 
|Walkerburn Bridge={{#switch:{{{2}}}
 
|Walkerburn Bridge={{#switch:{{{2}}}
 
|name=Walkerburn Bridge
 
|name=Walkerburn Bridge
|name 2=Walkerburn Bridge
+
|name 2=
 
|n=23
 
|n=23
 
|type=b
 
|type=b
Line 142: Line 142:
 
|Innerleithen Railway Bridge={{#switch:{{{2}}}
 
|Innerleithen Railway Bridge={{#switch:{{{2}}}
 
|name=Innerleithen Railway Bridge
 
|name=Innerleithen Railway Bridge
|name 2=Innerleithen Railway Bridge
+
|name 2=
 
|n=24
 
|n=24
 
|type=v
 
|type=v
Line 148: Line 148:
 
|Innerleithen Bridge={{#switch:{{{2}}}
 
|Innerleithen Bridge={{#switch:{{{2}}}
 
|name=Innerleithen Bridge
 
|name=Innerleithen Bridge
|name 2=Innerleithen Bridge
+
|name 2=
 
|n=25
 
|n=25
 
|type=b
 
|type=b
Line 154: Line 154:
 
|Cardrona Bridge={{#switch:{{{2}}}
 
|Cardrona Bridge={{#switch:{{{2}}}
 
|name=Cardrona Bridge
 
|name=Cardrona Bridge
|name 2=Cardrona Bridge
+
|name 2=
 
|n=26
 
|n=26
 
|type=b
 
|type=b
Line 160: Line 160:
 
|Cardrona Railway Bridge={{#switch:{{{2}}}
 
|Cardrona Railway Bridge={{#switch:{{{2}}}
 
|name=Cardrona Railway Bridge
 
|name=Cardrona Railway Bridge
|name 2=Cardrona Railway Bridge
+
|name 2=
 
|n=27
 
|n=27
 
|type=v
 
|type=v
Line 166: Line 166:
 
|Kailzie Bridge={{#switch:{{{2}}}
 
|Kailzie Bridge={{#switch:{{{2}}}
 
|name=Kailzie Bridge
 
|name=Kailzie Bridge
|name 2=Kailzie Bridge
+
|name 2=
 
|n=28
 
|n=28
 
|type=f
 
|type=f
Line 172: Line 172:
 
|Priorsford Footbridge={{#switch:{{{2}}}
 
|Priorsford Footbridge={{#switch:{{{2}}}
 
|name=Priorsford Footbridge
 
|name=Priorsford Footbridge
|name 2=Priorsford Footbridge
+
|name 2=
 
|n=29
 
|n=29
 
|type=f
 
|type=f
Line 184: Line 184:
 
|Fotheringham Footbridge={{#switch:{{{2}}}
 
|Fotheringham Footbridge={{#switch:{{{2}}}
 
|name=Fotheringham Footbridge
 
|name=Fotheringham Footbridge
|name 2=Fotheringham Footbridge
+
|name 2=
 
|n=31
 
|n=31
 
|type=f
 
|type=f
Line 190: Line 190:
 
|Neidpath Viaduct={{#switch:{{{2}}}
 
|Neidpath Viaduct={{#switch:{{{2}}}
 
|name=Neidpath Viaduct
 
|name=Neidpath Viaduct
|name 2=Neidpath Viaduct
+
|name 2=
 
|n=32
 
|n=32
 
|type=v
 
|type=v
Line 202: Line 202:
 
|Stobo Bridge={{#switch:{{{2}}}
 
|Stobo Bridge={{#switch:{{{2}}}
 
|name=Stobo Bridge
 
|name=Stobo Bridge
|name 2=Stobo Bridge
+
|name 2=
 
|n=34
 
|n=34
 
|type=b
 
|type=b
Line 208: Line 208:
 
|Daywyck Mill Bridge={{#switch:{{{2}}}
 
|Daywyck Mill Bridge={{#switch:{{{2}}}
 
|name=Daywyck Mill Bridge
 
|name=Daywyck Mill Bridge
|name 2=Daywyck Mill Bridge
+
|name 2=
 
|n=35
 
|n=35
 
|type=b
 
|type=b
Line 214: Line 214:
 
|Crownhead Bridge={{#switch:{{{2}}}
 
|Crownhead Bridge={{#switch:{{{2}}}
 
|name=Crownhead Bridge
 
|name=Crownhead Bridge
|name 2=Crownhead Bridge
+
|name 2=
 
|n=36
 
|n=36
 
|type=b
 
|type=b
Line 220: Line 220:
 
|Merlindale Bridge={{#switch:{{{2}}}
 
|Merlindale Bridge={{#switch:{{{2}}}
 
|name=Merlindale Bridge
 
|name=Merlindale Bridge
|name 2=Merlindale Bridge
+
|name 2=
 
|n=37
 
|n=37
 
|type=b
 
|type=b
Line 226: Line 226:
 
|Easter Stanhope Bridge={{#switch:{{{2}}}
 
|Easter Stanhope Bridge={{#switch:{{{2}}}
 
|name=Easter Stanhope Bridge
 
|name=Easter Stanhope Bridge
|name 2=Easter Stanhope Bridge
+
|name 2=
 
|n=38
 
|n=38
 
|type=b
 
|type=b
Line 232: Line 232:
 
|Patervan Bridge={{#switch:{{{2}}}
 
|Patervan Bridge={{#switch:{{{2}}}
 
|name=Patervan Bridge
 
|name=Patervan Bridge
|name 2=Patervan Bridge
+
|name 2=
 
|n=39
 
|n=39
 
|type=b
 
|type=b
Line 238: Line 238:
 
|Polmood Bridge={{#switch:{{{2}}}
 
|Polmood Bridge={{#switch:{{{2}}}
 
|name=Polmood Bridge
 
|name=Polmood Bridge
|name 2=Polmood Bridge
+
|name 2=
 
|n=40
 
|n=40
 
|type=b
 
|type=b
Line 244: Line 244:
 
|Hearthstane Bridge={{#switch:{{{2}}}
 
|Hearthstane Bridge={{#switch:{{{2}}}
 
|name=Hearthstane Bridge
 
|name=Hearthstane Bridge
|name 2=Hearthstane Bridge
+
|name 2=
 
|n=41
 
|n=41
 
|type=b
 
|type=b
Line 250: Line 250:
 
|Glennrusco Pipe Bridge={{#switch:{{{2}}}
 
|Glennrusco Pipe Bridge={{#switch:{{{2}}}
 
|name=Glennrusco Pipe Bridge
 
|name=Glennrusco Pipe Bridge
|name 2=Glennrusco Pipe Bridge
+
|name 2=
 
|n=42
 
|n=42
 
|type=p
 
|type=p
 
}}|43
 
}}|43
 +
|Carlows Bridge
 
|Carlow's Bridge={{#switch:{{{2}}}
 
|Carlow's Bridge={{#switch:{{{2}}}
 
|name=Carlow's Bridge
 
|name=Carlow's Bridge
Line 262: Line 263:
 
|Hawkshaw Bridge={{#switch:{{{2}}}
 
|Hawkshaw Bridge={{#switch:{{{2}}}
 
|name=Hawkshaw Bridge
 
|name=Hawkshaw Bridge
|name 2=Hawkshaw Bridge
+
|name 2=
 
|n=44
 
|n=44
 
|type=b
 
|type=b
Line 274: Line 275:
 
|Fingland Bridge={{#switch:{{{2}}}
 
|Fingland Bridge={{#switch:{{{2}}}
 
|name=Fingland Bridge
 
|name=Fingland Bridge
|name 2=Fingland Bridge
+
|name 2=
 
|n=46
 
|n=46
 
|type=b
 
|type=b

Revision as of 21:27, 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.