Template:Tyne bridges: Difference between revisions
Created page with "{{#vardefine:bn|{{#if:{{{1|}}}|{{Tyne bridge list|{{{1}}}|n}}|{{#switch:{{Tyne bridge list|{{PAGENAME}}|n}} |1=4 |2=4 |3=4 |23 |24 |25=22 |{{Tyne bridge list|{{PAGENAME}}|n}}..." |
No edit summary |
||
Line 13: | Line 13: | ||
| {{#var:b3}} || {{#var:b2}} || {{#var:b1}} || {{#var:b0}} || {{#var:b-1}} || {{#var:b-2}} || {{#var:b-3}} | | {{#var:b3}} || {{#var:b2}} || {{#var:b1}} || {{#var:b0}} || {{#var:b-1}} || {{#var:b-2}} || {{#var:b-3}} | ||
|}<noinclude>{{documentation}} | |}<noinclude>{{documentation}} | ||
[[Category:Bottom boxes|Tyne bridges]]</noinclude> | [[Category:Bottom boxes|Tyne bridges]] | ||
[[Category:Bridge templates]]</noinclude> |
Latest revision as of 22:04, 25 August 2020
Bridges and crossings on the River Tyne | ||||||
---|---|---|---|---|---|---|
Tyne Road Tunnels | Shields Ferry | mouth |
{{Tyne bridges}} is a bottom box that may be included at the foot of any article about a bridge on the River Tyne, from the mouth of the river up to teh Meeting of the Waters where the North Tyne and South Tyne join. 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 intent is to develop it further to show North and South Tyne going off too.
In the same form we have {{North Tyne bridges}} and will have {{South Tyne bridges}}.
The bottom box runs off a database template, {{Tyne 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 {{Tyne 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 {{Tyne 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.
The above documentation is transcluded from Template:Tyne bridges/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |