Template:Bridge: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(85 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the "Bridge" template. | This is the "Bridge" template. | ||
Use [[Form:Bridge|Bridge Form]] to add/edit a bridge entry. | |||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
Line 23: | Line 26: | ||
|Link3= | |Link3= | ||
|Poster= | |Poster= | ||
| | |Posted= | ||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | |||
{{#cargo_declare:_table=bridge|Name=String|Road=String|Water=String|City=String|County=String|Type=String|Builder=String|Length=Integer|Height=Integer|Built=Date|FDOT= | <noinclude> | ||
</noinclude><includeonly>{{#cargo_store:_table=bridge|Name={{{Name|}}}|Road={{{Road|}}}|Water={{{Water|}}}|City={{{City|}}}|County={{{County|}}}|Type={{{Type|}}}|Builder={{{Builder|}}}|Length={{{Length|}}}|Height={{{Height|}}}|Built={{{Built|}}}|FDOT={{{FDOT|}}}|Coordinates={{{Coordinates|}}}|Description={{{Description|}}}|Article={{{Article|}}}|Image={{{Image|}}}|Link1={{{Link1|}}}|Link2={{{Link2|}}}|Link3={{{Link3|}}}|Poster={{{Poster|}}}| | {{#cargo_declare:_table=bridge|Name=String|Road=String|Water=String|City=String|County=String|Type=String|Builder=String|Length=Integer|Height=Integer|Built=Date|FDOT=String|Coordinates=Coordinates|Description=Wikitext|Article=Page|Image=File|Link1=URL|Link2=URL|Link3=URL|Poster=String|Posted=String}} | ||
</noinclude><includeonly>{{#cargo_store:_table=bridge|Name={{{Name|}}}|Road={{{Road|}}}|Water={{{Water|}}}|City={{{City|}}}|County={{{County|}}}|Type={{{Type|}}}|Builder={{{Builder|}}}|Length={{{Length|}}}|Height={{{Height|}}}|Built={{{Built|}}}|FDOT={{{FDOT|}}}|Coordinates={{{Coordinates|}}}|Description={{{Description|}}}|Article={{{Article|}}}|Image={{{Image|}}}|Link1={{{Link1|}}}|Link2={{{Link2|}}}|Link3={{{Link3|}}}|Poster={{{Poster|}}}|Posted={{{Posted|}}} }}</includeonly> | |||
<includeonly> | |||
{{#ifeq:{{NAMESPACE}}| Info | <div class="irlbody irlbow">{{IRL header|cat=Bridges|toc=no}} }} | |||
<div class="irlcontenttop"> | |||
{| class="wikitable" | {| class="wikitable" | ||
! colspan="5" | {{#if:{{{Article|}}}|[[{{{Article|}}}|{{{Name|}}}]]|{{{Name|}}} }} | ! colspan="5" | {{#if:{{{Article|}}} | <span class="irltabletitle"><h3>[[{{{Article|}}}|{{{Name|}}}]]</h3></span> | <span class="irltabletitle"><h3>{{{Name|}}}</h3></span> }} | ||
{{#if:{{{Image|}}} | {{!}}- | |||
{{!}} colspan="5" {{!}} [[File:{{{Image}}}|640px|frameless|left|{{{Name}}}|link={{{Article|}}} ]] | |||
}} | |||
|- | |- | ||
| colspan="5" | {{ | | colspan="5" |{{{Description|}}} {{#if:{{{Article|}}}|[[{{{Article|}}}|Article]]| }} | ||
|- | |- | ||
| colspan="4" | Waterway: {{{Water|}}} | | colspan="4" | Waterway: {{{Water|}}} | ||
Line 48: | Line 58: | ||
| style="text-align: right;" | {{#if:{{{Built|}}}|Built: {{{Built|}}} }} | | style="text-align: right;" | {{#if:{{{Built|}}}|Built: {{{Built|}}} }} | ||
|- | |- | ||
| colspan="5" |{{#if:{{{Coordinates|}}}|<div class="toccolours mw-collapsible mw- | | colspan="5" |{{#if:{{{Coordinates|}}}|{{#if:{{{Image|}}}| <div class="toccolours mw-collapsible" data-expandtext="Show Map" data-collapsetext="Hide Map"> | <div class="toccolours mw-collapsible" data-expandtext="Show Map" data-collapsetext="Hide Map"> }} Location: {{{Coordinates|}}} | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
{{ | {{Map Embed|coord={{{Coordinates|}}}|zoom=12|width=640}} | ||
</div> | </div></div> }} | ||
</div | |||
|} | |} | ||
{{# | </div> <!-- END IRL TOP --> | ||
[[Category:{{{ | {{#ifeq:{{NAMESPACE}} | Info | {{#if:{{{Link1|}}} | <div class="irlcontentmiddle noprint"> | ||
[[Category:{{{ | ==Web Links== | ||
[{{{Link1|}}}] {{#if:{{{Link2|}}}|<br/>[{{{Link2|}}}] }} {{#if:{{{Link3|}}}|<br/>[{{{Link3|}}}] }}</div> | }} | |||
[[Category:{{{Water|}}} Bridges]][[Category:{{{County|}}} County Bridges]]{{#default_form:Bridge}} | |||
</div> <!-- END IRL BODY --> | |||
| }} | |||
</includeonly> | </includeonly> | ||
<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 10:38, December 26, 2021
This is the "Bridge" template.
Use Bridge Form to add/edit a bridge entry.
It should be called in the following format:
{{Bridge |Name= |Road= |Water= |City= |County= |Type= |Builder= |Length= |Height= |Built= |FDOT= |Coordinates= |Description= |Article= |Image= |Link1= |Link2= |Link3= |Poster= |Posted= }}
This template defines the table "bridge". View table.
Bridge Info Box Template
Bridge Template uses Bridge Form to collect info needed for a Bridge Info Box. The data is stored in Cargo Table: Bridge.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Bridge Name | Name | Official Name of the Bridge | String | required |
Road Number | Road | The official roadway designation (SR528). | String | required |
Waterway | Water | The name of the waterway the bridge spans. | String | required |
City | City | The city or locale the bridge is in. | Unknown | required |
County | County | The name of the county the bridge is in. | String | required |
Bridge Type | Type | The bridge type (ie: drawbridge, swingspan, concrete girder, etc.) | String | optional |
Builder | Builder | Name of the builder that constructed the bridge. | String | optional |
Length | Length | Length of the bridge in feet./ | Number | optional |
Height | Height | Height of the bridge in feet. | Number | optional |
Year | Built | Year the bridge was built. | Number | optional |
FDOT Number | FDOT | The Bridge's Florida Department of Transportation designation | String | optional |
Coordinates | Coordinates | Enter the GIS Coordinates for the bridge location. | String | optional |
Description | Description | A brief one or two paragraph description of the bridge. | Content | required |
Related Article | Article | A related article title from this site. | Page name | optional |
Image | Image | Enter a .jpg image filename or upload an image. | File | suggested |
Web Link 1 | Link1 | Full URL pointing to a related web site. | URL | optional |
Web Link 2 | Link2 | Full URL pointing to a related web site. | Unknown | optional |
Web Link 3 | Link3 | Full URL pointing to a related web site. | URL | optional |
Poster | Poster | Poster's username. Auto-filled
| User | optional |
Post Date | Posted | Date the entry was created. Auto-filled
| String | optional |
The above documentation is transcluded from Template:Bridge/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |