Difference between revisions of "Template:Infobox waterlock/sandbox"
Jump to navigation
Jump to search
imported>Zyxw (copy of current template) |
imported>Zyxw (add location map) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{ | + | <includeonly>{{Infobox |
| bodyclass = vcard | | bodyclass = vcard | ||
| Line 59: | Line 59: | ||
| data16 = {{{heritage|}}} | | data16 = {{{heritage|}}} | ||
| − | | data17 = {{#if:{{{map_image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image}}}|size={{{map_width|}}}|alt={{{map_alt|}}}}}{{#if:{{{map_text|}}}|<div>{{{map_text}}}</div>}}}} | + | | data17 = {{#if:{{{map_image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image}}}|size={{{map_size|{{{map_width|}}}}}}|alt={{{map_alt|}}}}}{{#if:{{{map_caption|{{{map_text|}}}}}}|<div>{{{map_caption|{{{map_text}}}}}}</div>}}}} |
| − | + | | data18 = {{#if: {{{pushpin_map|}}} | {{Location map | |
| − | | data18 | + | | {{{pushpin_map|}}} |
| + | | coordinates = {{{coordinates|}}} | ||
| + | | float = center | ||
| + | | border = none | ||
| + | | width = {{{pushpin_map_size|}}} | ||
| + | | default_width = 220 | ||
| + | | alt = {{{pushpin_map_alt|}}} | ||
| + | | caption = <!--see below--> | ||
| + | }}{{#if: {{{pushpin_map_caption|}}} | <small>{{{pushpin_map_caption}}}</small> }} | ||
| + | }} | ||
| − | | data19 = {{{extra|}}} | + | | label19 = [[Geographic coordinate system|Coordinates]] |
| − | }}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox waterlock with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox waterlock]] with unknown parameter "_VALUE_" | + | | data19 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}} }} |
| − | {{ | + | |
| + | | data20 = {{{extra|}}} | ||
| + | |||
| + | }}</includeonly>{{#invoke:Check for unknown parameters | check | ignoreblank = y | ||
| + | | unknown = {{main other|[[Category:Pages using infobox waterlock with unknown parameters|_VALUE_{{PAGENAME}}]]}} | ||
| + | | preview = Page using [[Template:Infobox waterlock]] with unknown parameter "_VALUE_" | ||
| + | | alt | caption | coordinates | country | county | distenda | distendb | enda | endb | extra | fall | first | heritage | image | image_upright | latest | length | lock_name | maint | map_alt | map_caption | map_image | map_size | map_text | map_width | name | native_name | operation | province | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_map_size | sealevel | state | waterway | width | ||
| + | }}<noinclude> | ||
| + | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:19, 3 March 2017
| This is the template sandbox page for Template:Infobox waterlock (diff). |
| 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
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 staffed 24 hours a day | |
{{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 staffed 24 hours a day
}}
Tracking category
| The above documentation is transcluded from Template:Infobox waterlock/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |