Difference between revisions of "Template:Infobox waterlock/doc"

From blackwiki
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 | map_width | map_alt | map_text | coordinates | extra }}
+
{{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_width    =  
+
| map_size            =  
| map_alt       =  
+
| map_alt             =
| map_text      =  
+
| 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_width: Map width in a standard value (pixels, for example)
+
; 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_text: Caption beneath 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         = Teddington Lock
+
| name               = Teddington Lock
| image         = TeddLock.JPG
+
| image               = TeddLock.JPG
| caption       = Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock
+
| image_upright      = 1.1
| waterway     = [[River Thames]]
+
| caption             = Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock
| country       = England
+
| waterway           = [[River Thames]]
| county       = [[Greater London]]
+
| country             = England
| maint         = [[Environment Agency]]
+
| county             = [[Greater London]]
| operation     = {{unbulleted list
+
| maint               = [[Environment Agency]]
   | Launch Hydraulic
+
| operation           = {{unbulleted list
   | Skiff Manual
+
   | Launch: Hydraulic
   | Barge Hydraulic
+
   | SkiffManual
 +
   | BargeHydraulic
 
   }}
 
   }}
| first         = {{unbulleted list
+
| first               = {{unbulleted list
   | Launch 1811
+
   | Launch: 1811
   | Skiff 1858
+
   | Skiff1858
  }} Barge 1904
+
   | 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
+
| length              = {{unbulleted list
   | Launch {{convert|7.41|m|ftin|abbr=on}}
+
   | Launch: {{convert|54.22|m|ftin|abbr=on}}
   | Skiff  {{convert|1.77|m|ftin|abbr=on}}
+
   | Skiff: {{convert|15.08|m|ftin|abbr=on}}
   | Barge {{convert|7.54|m|ftin|abbr=on}}
+
   | Barge{{convert|198.12|m|ftin|abbr=on}}
 
   }}
 
   }}
| fall         = {{convert|2.68|m|ftin|abbr=on}}
+
| width              = {{unbulleted list
| sealevel     = {{convert|14|ft|m}}
+
  | Launch: {{convert|7.41|m|ftin|abbr=on}}
| map_image    =  
+
  | Skiff:  {{convert|1.77|m|ftin|abbr=on}}
| coordinates   = {{Coord|51|25|54|N|0|19|26|W|type:landmark_region:GB|display=inline<!--,title-->}}
+
  | Barge:  {{convert|7.54|m|ftin|abbr=on}}
| extra         = Teddington is normally manned 24 hours
+
  }}
 +
| 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         = Teddington Lock
+
| name               = Teddington Lock
| image         = TeddLock.JPG
+
| image               = TeddLock.JPG
| caption       = Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock
+
| image_upright      = 1.1
| waterway     = [[River Thames]]
+
| caption             = Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock
| country       = England
+
| waterway           = [[River Thames]]
| county       = [[Greater London]]
+
| country             = England
| maint         = [[Environment Agency]]
+
| county             = [[Greater London]]
| operation     = {{unbulleted list
+
| maint               = [[Environment Agency]]
   | Launch Hydraulic
+
| operation           = {{unbulleted list
   | Skiff Manual
+
   | Launch: Hydraulic
   | Barge Hydraulic
+
   | SkiffManual
 +
   | BargeHydraulic
 +
  }}
 +
| first              = {{unbulleted list
 +
  | Launch: 1811
 +
  | Skiff:  1858
 +
  | Barge:  1904
 
   }}
 
   }}
| first        = {{unbulleted list
+
| length             = {{unbulleted list
  | Launch 1811
+
   | Launch: {{convert|54.22|m|ftin|abbr=on}}
  | Skiff 1858
+
   | Skiff: {{convert|15.08|m|ftin|abbr=on}}
  }} Barge 1904
+
   | Barge: {{convert|198.12|m|ftin|abbr=on}}
| 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
+
| 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         = {{convert|2.68|m|ftin|abbr=on}}
+
| fall               = {{convert|2.68|m|ftin|abbr=on}}
| sealevel     = {{convert|14|ft|m}}
+
| sealevel           = {{convert|14|ft|m|abbr=on}}
| map_image    =  
+
| pushpin_map        = United Kingdom Greater London
| coordinates   = {{Coord|51|25|54|N|0|19|26|W|type:landmark_region:GB|display=inline,title}}
+
| pushpin_map_size    = 242 <!-- 220 x 1.1 -->
| extra         = Teddington is normally manned 24 hours
+
| 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

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

Script error: No such module "If empty".
File:TeddLock.JPG
Teddington Lock undergoing maintenance. From left to right – rollers, skiff lock, launch lock and barge lock
WaterwayRiver Thames
CountryEngland
CountyGreater London
Maintained byEnvironment Agency
Operation
  • Launch: Hydraulic
  • Skiff: Manual
  • Barge: Hydraulic
First built
  • Launch: 1811
  • Skiff: 1858
  • Barge: 1904
Length
  • Launch: 54.22 m (177 ft 11 in)
  • Skiff: 15.08 m (49 ft 6 in)
  • Barge: 198.12 m (650 ft 0 in)
Width
  • Launch: 7.41 m (24 ft 4 in)
  • Skiff: 1.77 m (5 ft 10 in)
  • Barge: 7.54 m (24 ft 9 in)
Fall2.68 m (8 ft 10 in)
Above sea level14 ft (4.3 m)
Lua error in Module:Location_map at line 399: Malformed coordinates value.
CoordinatesLua 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