Difference between revisions of "Template:Infobox waterlock/doc"
Jump to navigation
Jump to search
imported>Zyxw (add {{Parameter names example}}, add missing parameters to blank template, add actual example and code) |
imported>Zyxw (update documentation and examples) |
||
| Line 6: | Line 6: | ||
== Usage == | == Usage == | ||
| − | {{Parameter names example | name | lock_name | native_name | image | image_upright | alt | caption | waterway | country | province | state | county | maint | operation | first | latest | length | width | fall | sealevel | distenda | enda | distendb | endb | heritage | map_image | | + | {{Parameter names example | name | lock_name | native_name | image | image_upright | alt | caption | waterway | country | province | state | county | maint | operation | first | latest | length | width | fall | sealevel | distenda | enda | distendb | endb | heritage | map_image | map_size | map_alt | map_caption | pushpin_map=World <!-- | pushpin_map_size --> | pushpin_map_alt | pushpin_map_caption | coordinates={{Coord|0|0}} | extra }} |
Copy and paste the template below: | Copy and paste the template below: | ||
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
{{Infobox waterlock | {{Infobox waterlock | ||
| − | | name | + | | name = |
| − | | native_name | + | | native_name = |
| − | | image | + | | image = |
| − | | image_upright = | + | | image_upright = |
| − | | alt | + | | alt = |
| − | | caption | + | | caption = |
| − | | waterway | + | | waterway = |
| − | | country | + | | country = |
| − | | province | + | | province = |
| − | | state | + | | state = |
| − | | county | + | | county = |
| − | | maint | + | | maint = |
| − | | operation | + | | operation = |
| − | | first | + | | first = |
| − | | latest | + | | latest = |
| − | | length | + | | length = |
| − | | width | + | | width = |
| − | | fall | + | | fall = |
| − | | sealevel | + | | sealevel = |
| − | | enda | + | | enda = |
| − | | distenda | + | | distenda = |
| − | | endb | + | | endb = |
| − | | distendb | + | | distendb = |
| − | | heritage | + | | heritage = |
| − | | map_image | + | | map_image = |
| − | | | + | | map_size = |
| − | | map_alt | + | | map_alt = |
| − | | | + | | map_caption = |
| − | | coordinates | + | | pushpin_map = |
| − | | extra | + | | pushpin_map_size = |
| + | | pushpin_map_alt = | ||
| + | | pushpin_map_caption = | ||
| + | | coordinates = | ||
| + | | extra = | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 61: | Line 65: | ||
; first : Date when lock was originally built | ; first : Date when lock was originally built | ||
; latest : Date of latest reconstruction of lock | ; latest : Date of latest reconstruction of lock | ||
| − | ; length: Length of lock with units | + | ; length : Length of lock with units |
| − | ; width: Width of the lock with units | + | ; width : Width of the lock with units |
| − | ; fall: Depth of fall of water in the lock with units | + | ; fall : Depth of fall of water in the lock with units |
; sealevel : Height of top water level above sea level | ; sealevel : Height of top water level above sea level | ||
; enda : One relevant end point of waterway | ; enda : One relevant end point of waterway | ||
| Line 70: | Line 74: | ||
; distendb : distance to above | ; distendb : distance to above | ||
; heritage : Heritage status | ; heritage : Heritage status | ||
| − | ; map_image: Filename of map image | + | ; map_image : Filename of map image |
| − | ; | + | ; map_size : Map width in a standard value (pixels, for example) |
; map_alt : alternative text for the map image | ; map_alt : alternative text for the map image | ||
| − | ; | + | ; map_caption : Caption beneath map image |
| − | ; coordinates: Latitude and longitude using {{tl|coord}} with ''display:inline,title''. | + | ; pushpin_map : |
| − | ; extras: free form, spans both columns, use sparingly | + | ; pushpin_map_size : |
| + | ; pushpin_map_alt : | ||
| + | ; pushpin_map_caption : | ||
| + | ; coordinates : Latitude and longitude using {{tl|coord}} with ''display:inline,title''. | ||
| + | ; extras : free form, spans both columns, use sparingly | ||
== Example == | == Example == | ||
{{Infobox waterlock | {{Infobox waterlock | ||
| − | | name | + | | name = Teddington Lock |
| − | | image | + | | image = TeddLock.JPG |
| − | | caption | + | | image_upright = 1.1 |
| − | | waterway | + | | caption = Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock |
| − | | country | + | | waterway = [[River Thames]] |
| − | | county | + | | country = England |
| − | | maint | + | | county = [[Greater London]] |
| − | | operation | + | | maint = [[Environment Agency]] |
| − | | Launch Hydraulic | + | | operation = {{unbulleted list |
| − | | Skiff Manual | + | | Launch: Hydraulic |
| − | | Barge Hydraulic | + | | Skiff: Manual |
| + | | Barge: Hydraulic | ||
}} | }} | ||
| − | | first | + | | first = {{unbulleted list |
| − | | Launch 1811 | + | | Launch: 1811 |
| − | | Skiff 1858 | + | | Skiff: 1858 |
| − | + | | Barge: 1904 | |
| − | |||
| − | |||
| − | |||
| − | | Barge | ||
}} | }} | ||
| − | | | + | | length = {{unbulleted list |
| − | | Launch {{convert| | + | | Launch: {{convert|54.22|m|ftin|abbr=on}} |
| − | | Skiff {{convert| | + | | Skiff: {{convert|15.08|m|ftin|abbr=on}} |
| − | | Barge {{convert| | + | | Barge: {{convert|198.12|m|ftin|abbr=on}} |
}} | }} | ||
| − | | fall | + | | width = {{unbulleted list |
| − | | sealevel | + | | Launch: {{convert|7.41|m|ftin|abbr=on}} |
| − | | | + | | Skiff: {{convert|1.77|m|ftin|abbr=on}} |
| − | | coordinates | + | | Barge: {{convert|7.54|m|ftin|abbr=on}} |
| − | | extra | + | }} |
| + | | fall = {{convert|2.68|m|ftin|abbr=on}} | ||
| + | | sealevel = {{convert|14|ft|m|abbr=on}} | ||
| + | | pushpin_map = United Kingdom Greater London | ||
| + | | pushpin_map_size = 242 <!-- 220 x 1.1 --> | ||
| + | | pushpin_map_caption = Location of Teddington Lock in Greater London | ||
| + | | coordinates = {{Coord|51|25|54|N|0|19|26|W|type:landmark_region:GB|display=inline<!--,title-->}} | ||
| + | | extra = Teddington is normally manned 24 hours | ||
}} | }} | ||
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
{{Infobox waterlock | {{Infobox waterlock | ||
| − | | name | + | | name = Teddington Lock |
| − | | image | + | | image = TeddLock.JPG |
| − | | caption | + | | image_upright = 1.1 |
| − | | waterway | + | | caption = Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock |
| − | | country | + | | waterway = [[River Thames]] |
| − | | county | + | | country = England |
| − | | maint | + | | county = [[Greater London]] |
| − | | operation | + | | maint = [[Environment Agency]] |
| − | | Launch Hydraulic | + | | operation = {{unbulleted list |
| − | | Skiff Manual | + | | Launch: Hydraulic |
| − | | Barge Hydraulic | + | | Skiff: Manual |
| + | | Barge: Hydraulic | ||
| + | }} | ||
| + | | first = {{unbulleted list | ||
| + | | Launch: 1811 | ||
| + | | Skiff: 1858 | ||
| + | | Barge: 1904 | ||
}} | }} | ||
| − | + | | length = {{unbulleted list | |
| − | + | | Launch: {{convert|54.22|m|ftin|abbr=on}} | |
| − | + | | Skiff: {{convert|15.08|m|ftin|abbr=on}} | |
| − | + | | Barge: {{convert|198.12|m|ftin|abbr=on}} | |
| − | | length | ||
| − | | Launch {{convert|54.22|m|ftin|abbr=on}} | ||
| − | | Skiff {{convert|15.08|m|ftin|abbr=on}} | ||
| − | | Barge {{convert|198.12|m|ftin|abbr=on}} | ||
}} | }} | ||
| − | | width | + | | width = {{unbulleted list |
| − | | Launch {{convert|7.41|m|ftin|abbr=on}} | + | | Launch: {{convert|7.41|m|ftin|abbr=on}} |
| − | | Skiff {{convert|1.77|m|ftin|abbr=on}} | + | | Skiff: {{convert|1.77|m|ftin|abbr=on}} |
| − | | Barge {{convert|7.54|m|ftin|abbr=on}} | + | | Barge: {{convert|7.54|m|ftin|abbr=on}} |
}} | }} | ||
| − | | fall | + | | fall = {{convert|2.68|m|ftin|abbr=on}} |
| − | | sealevel | + | | sealevel = {{convert|14|ft|m|abbr=on}} |
| − | | | + | | pushpin_map = United Kingdom Greater London |
| − | | coordinates | + | | pushpin_map_size = 242 <!-- 220 x 1.1 --> |
| − | | extra | + | | pushpin_map_caption = Location of Teddington Lock in Greater London |
| + | | coordinates = {{Coord|51|25|54|N|0|19|26|W|type:landmark_region:GB|display=inline,title}} | ||
| + | | extra = Teddington is normally manned 24 hours | ||
}} | }} | ||
</pre> | </pre> | ||
Revision as of 16:48, 3 March 2017
| 40px | This is a documentation subpage for Template:Infobox waterlock. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
Usage
Template:Parameter names example
Copy and paste the template below:
{{Infobox waterlock
| name =
| native_name =
| image =
| image_upright =
| alt =
| caption =
| waterway =
| country =
| province =
| state =
| county =
| maint =
| operation =
| first =
| latest =
| length =
| width =
| fall =
| sealevel =
| enda =
| distenda =
| endb =
| distendb =
| heritage =
| map_image =
| map_size =
| map_alt =
| map_caption =
| pushpin_map =
| pushpin_map_size =
| pushpin_map_alt =
| pushpin_map_caption =
| coordinates =
| extra =
}}
Parameter descriptions
- name
- Name of lock
- native_name
- image
- Filename of image
- image_upright
- alt
- alternative text for the image
- caption
- Text for caption beneath image
- waterway
- Waterway on which the lock is situated
- country
- Country
- province
- state
- State or province
- county
- Location of lock
- maint
- Maintaining Entity
- operation
- Type of operation - e.g. manual or hydraulic
- first
- Date when lock was originally built
- latest
- Date of latest reconstruction of lock
- length
- Length of lock with units
- width
- Width of the lock with units
- fall
- Depth of fall of water in the lock with units
- sealevel
- Height of top water level above sea level
- enda
- One relevant end point of waterway
- distenda
- distance to above
- endb
- the other relevant end point of waterway
- distendb
- distance to above
- heritage
- Heritage status
- map_image
- Filename of map image
- map_size
- Map width in a standard value (pixels, for example)
- map_alt
- alternative text for the map image
- map_caption
- Caption beneath map image
- pushpin_map
- pushpin_map_size
- pushpin_map_alt
- pushpin_map_caption
- coordinates
- Latitude and longitude using {{coord}} with display:inline,title.
- extras
- free form, spans both columns, use sparingly
Example
| File:TeddLock.JPG Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock | |
| Waterway | River Thames |
|---|---|
| Country | England |
| County | Greater London |
| Maintained by | Environment Agency |
| Operation |
|
| First built |
|
| Length |
|
| Width |
|
| Fall | 2.68 m (8 ft 10 in) |
| Above sea level | 14 ft (4.3 m) |
| Lua error in Module:Location_map at line 399: Malformed coordinates value. | |
| Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
| Teddington is normally manned 24 hours | |
{{Infobox waterlock
| name = Teddington Lock
| image = TeddLock.JPG
| image_upright = 1.1
| caption = Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock
| waterway = [[River Thames]]
| country = England
| county = [[Greater London]]
| maint = [[Environment Agency]]
| operation = {{unbulleted list
| Launch: Hydraulic
| Skiff: Manual
| Barge: Hydraulic
}}
| first = {{unbulleted list
| Launch: 1811
| Skiff: 1858
| Barge: 1904
}}
| length = {{unbulleted list
| Launch: {{convert|54.22|m|ftin|abbr=on}}
| Skiff: {{convert|15.08|m|ftin|abbr=on}}
| Barge: {{convert|198.12|m|ftin|abbr=on}}
}}
| width = {{unbulleted list
| Launch: {{convert|7.41|m|ftin|abbr=on}}
| Skiff: {{convert|1.77|m|ftin|abbr=on}}
| Barge: {{convert|7.54|m|ftin|abbr=on}}
}}
| fall = {{convert|2.68|m|ftin|abbr=on}}
| sealevel = {{convert|14|ft|m|abbr=on}}
| pushpin_map = United Kingdom Greater London
| pushpin_map_size = 242 <!-- 220 x 1.1 -->
| pushpin_map_caption = Location of Teddington Lock in Greater London
| coordinates = {{Coord|51|25|54|N|0|19|26|W|type:landmark_region:GB|display=inline,title}}
| extra = Teddington is normally manned 24 hours
}}
Tracking category