Template:Thames 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
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch:{{{1}}}
{{#switch:{{{1}}}
|1
|1
|Dartford Crossing
|Queen Elizabeth II Bridge={{#switch:{{{2}}}
|Queen Elizabeth II Bridge={{#switch:{{{2}}}
|name=Queen Elizabeth II Bridge
|name=Queen Elizabeth II Bridge
Line 80: Line 81:
|type=b
|type=b
}}|14
}}|14
|London Millennium Bridge={{#switch:{{{2}}}
|Millennium Bridge, London={{#switch:{{{2}}}
|name=London Millennium Bridge
|name=Millennium Bridge, London
|name 2=
|name 2=Millennium Bridge
|n=14
|n=14
|type=b
|type=b
Line 182: Line 183:
|type=b
|type=b
}}|31
}}|31
|Barnes Railway Bridge={{#switch:{{{2}}}
|Barnes Bridge={{#switch:{{{2}}}
|name=Barnes Railway Bridge
|name=Barnes Bridge
|name 2=
|name 2=
|n=31
|n=31
Line 341: Line 342:
|type=b
|type=b
}}|57
}}|57
|Queen Elizabeth Bridge, Windsor={{#switch:{{{2}}}
|Queen Elizabeth Bridge={{#switch:{{{2}}}
|name=Queen Elizabeth Bridge, Windsor
|name=Queen Elizabeth Bridge
|name 2=Queen Elizabeth Bridge
|name 2=
|n=57
|n=57
|type=b
|type=b
Line 772: Line 773:
|type=b
|type=b
}}
}}
}}
}}<noinclude>
{{Thames bridges/doc}}
[[Category:Bridge list templates]]</noinclude>

Latest revision as of 21:58, 25 August 2020


{{Thames bridges}} is a bottom box that may be included at the foot of any article about a bridge on the River Thames, from the Dartford Crossing up to the Cricklade Town Bridge. 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, {{Thames 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 {{Thames 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 {{Thames 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.