Difference between revisions of "Template:Infobox port/doc"
Jump to navigation
Jump to search
imported>Rehman m (→Example: to avoid confusion) |
imported>Rehman (generic example) |
||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
| + | {{Infobox port | ||
| + | | embed = | ||
| + | | name = {{{name}}} | ||
| + | | image = Porto de Valparaiso - Chile - by Sérgio Schmiegelow.jpg | ||
| + | | image_alt = {{{image_alt}}} | ||
| + | | image_size = | ||
| + | | image_caption = {{{image_caption}}} | ||
| + | | logo = Port of Rotterdam logo.svg | ||
| + | | logo_alt = {{{logo_alt}}} | ||
| + | | logo_size = 100px | ||
| + | | logo_caption = {{{logo_caption}}} | ||
| + | | pushpin_map = Yes | ||
| + | | pushpin_map_geomask = | ||
| + | | pushpin_map_zoom = | ||
| + | | country = {{{country}}} | ||
| + | | location = {{{location}}} | ||
| + | | coordinates = {{Coordinates|51.8850|4.2867}} | ||
| + | | coordinates_footnotes = {{{coordinates_footnotes}}} | ||
| + | | grid_name = {{{grid_name}}} | ||
| + | | grid_position = {{{grid_position}}} | ||
| + | | locode = {{{locode}}} | ||
| + | | opened = {{{opened}}} | ||
| + | | operated = {{{operated}}} | ||
| + | | owner = {{{owner}}} | ||
| + | | type = {{{type}}} | ||
| + | | sizewater = {{{sizewater}}} | ||
| + | | sizeland = {{{sizeland}}} | ||
| + | | size = {{{size}}} | ||
| + | | berths = {{{berths}}} | ||
| + | | wharfs = {{{wharfs}}} | ||
| + | | piers = {{{piers}}} | ||
| + | | draft_depth = {{{draft_depth}}} | ||
| + | | air_draft = {{{air_draft}}} | ||
| + | | employees = {{{employees}}} | ||
| + | | leadershiptitle = {{{leadershiptitle}}} | ||
| + | | leader = {{{leader}}} | ||
| + | | blankdetailstitle1 = {{{blankdetailstitle1}}} | ||
| + | | blankdetails1 = {{{blankdetails1}}} | ||
| + | | blankdetailstitle2 = {{{blankdetailstitle2}}} | ||
| + | | blankdetails2 = {{{blankdetails2}}} | ||
| + | | blankdetailstitle3 = {{{blankdetailstitle3}}} | ||
| + | | blankdetails3 = {{{blankdetails3}}} | ||
| + | | arrivals = {{{arrivals}}} | ||
| + | | cargotonnage = {{{cargotonnage}}} | ||
| + | | containervolume = {{{containervolume}}} | ||
| + | | cargovalue = {{{cargovalue}}} | ||
| + | | passengertraffic = {{{passengertraffic}}} | ||
| + | | revenue = {{{revenue}}} | ||
| + | | profit = {{{profit}}} | ||
| + | | blankstatstitle1 = {{{blankstatstitle1}}} | ||
| + | | blankstats1 = {{{blankstats1}}} | ||
| + | | blankstatstitle2 = {{{blankstatstitle2}}} | ||
| + | | blankstats2 = {{{blankstats2}}} | ||
| + | | blankstatstitle3 = {{{blankstatstitle3}}} | ||
| + | | blankstats3 = {{{blankstats3}}} | ||
| + | | website = {{{website}}} | ||
| + | | embedded = | ||
| + | }} | ||
| + | |||
All fields are optional, if left blank they will not appear. Both the "Details" and "Statistics" have three blank spots to cover additional entries and allow for maximum flexibility. | All fields are optional, if left blank they will not appear. Both the "Details" and "Statistics" have three blank spots to cover additional entries and allow for maximum flexibility. | ||
| Line 99: | Line 158: | ||
}}</pre> | }}</pre> | ||
|} | |} | ||
| − | |||
=== Use as a child template === | === Use as a child template === | ||
| Line 130: | Line 188: | ||
}} | }} | ||
</pre> | </pre> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Parameter descriptions == | ==Parameter descriptions == | ||
| Line 282: | Line 248: | ||
== Tracking category == | == Tracking category == | ||
| − | * {{ | + | * {{Category link with count|Pages using infobox port with unknown parameters}} |
| − | + | * {{Category link with count|Pages using infobox port with deprecated parameters}} | |
| − | |||
| − | * {{ | ||
| − | |||
| − | <includeonly>{{ | + | <includeonly> |
| − | + | {{Sandbox other|| | |
[[Category:Transport infobox templates|Port]] | [[Category:Transport infobox templates|Port]] | ||
[[Category:Embeddable templates]] | [[Category:Embeddable templates]] | ||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 08:41, 20 May 2020
| This is a documentation subpage for Template:Infobox port. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Contents
Usage
| {{{name}}} | |
|---|---|
| {{{image_alt}}} {{{image_caption}}} | |
{{{logo_caption}}} | |
| Lua error in Module:Infobox_mapframe at line 185: attempt to index field 'wikibase' (a nil value). | |
| Location | |
| Country | {{{country}}} |
| Location | {{{location}}} |
| Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. {{{coordinates_footnotes}}} |
| Script error: No such module "If empty". | {{{grid_position}}} |
| UN/LOCODE | {{{locode}}} |
| Details | |
| Opened | {{{opened}}} |
| Operated by | {{{operated}}} |
| Owned by | {{{owner}}} |
| Type of harbor | {{{type}}} |
| Size of harbor | {{{sizewater}}} |
| Land area | {{{sizeland}}} |
| Size | {{{size}}} |
| Available berths | {{{berths}}} |
| Wharfs | {{{wharfs}}} |
| Piers | {{{piers}}} |
| Draft depth | {{{draft_depth}}} |
| Air draft | {{{air_draft}}} |
| Employees | {{{employees}}} |
| {{{leadershiptitle}}} | {{{leader}}} |
| {{{blankdetailstitle1}}} | {{{blankdetails1}}} |
| {{{blankdetailstitle2}}} | {{{blankdetails2}}} |
| {{{blankdetailstitle3}}} | {{{blankdetails3}}} |
| Statistics | |
| Vessel arrivals | {{{arrivals}}} |
| Annual cargo tonnage | {{{cargotonnage}}} |
| Annual container volume | {{{containervolume}}} |
| Value of cargo | {{{cargovalue}}} |
| Passenger traffic | {{{passengertraffic}}} |
| Annual revenue | {{{revenue}}} |
| Net income | {{{profit}}} |
| {{{blankstatstitle1}}} | {{{blankstats1}}} |
| {{{blankstatstitle2}}} | {{{blankstats2}}} |
| {{{blankstatstitle3}}} | {{{blankstats3}}} |
| Website {{{website}}} | |
All fields are optional, if left blank they will not appear. Both the "Details" and "Statistics" have three blank spots to cover additional entries and allow for maximum flexibility.
| Full version | Short version |
|---|---|
{{Infobox port
| embed =
| name =
| image =
| image_alt =
| image_size =
| image_caption =
| logo =
| logo_alt =
| logo_size =
| logo_caption =
| pushpin_map =
| pushpin_map_geomask =
| pushpin_map_zoom =
| country =
| location =
| coordinates =
| coordinates_footnotes =
| grid_name =
| grid_position =
| locode =
| opened =
| operated =
| owner =
| type =
| sizewater =
| sizeland =
| size =
| berths =
| wharfs =
| piers =
| draft_depth =
| air_draft =
| employees =
| leadershiptitle =
| leader =
| blankdetailstitle1 =
| blankdetails1 =
| blankdetailstitle2 =
| blankdetails2 =
| blankdetailstitle3 =
| blankdetails3 =
| arrivals =
| cargotonnage =
| containervolume =
| cargovalue =
| passengertraffic =
| revenue =
| profit =
| blankstatstitle1 =
| blankstats1 =
| blankstatstitle2 =
| blankstats2 =
| blankstatstitle3 =
| blankstats3 =
| website =
| embedded =
}}
|
{{Infobox port
| name =
| image =
| image_size =
| image_caption =
| pushpin_map =
| country =
| location =
| coordinates =
| locode =
| opened =
| operated =
| owner =
| type =
| sizewater =
| sizeland =
| size =
| berths =
| wharfs =
| piers =
| employees =
| arrivals =
| cargotonnage =
| containervolume =
| cargovalue =
| passengertraffic =
| website =
}}
|
Use as a child template
The embed parameter is used when embedding this infobox into another (see the Template:Infobox documentation which explains embedding and subboxes).
{{Infobox ABC
| name =
| <!-- etc. -->
| embedded = <!-- or module= -->
{{Infobox port
| embed = yes
| <!-- etc. -->
}}
}}
Embedding other templates
The embedded parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules).
{{Infobox port
| name =
| <!-- etc. -->
| embedded =
{{Infobox ABC
| embed = yes
| <!-- etc. -->
}}
}}
Parameter descriptions
|embed=|name=name of port|image=filename of image of the port|image_size=width of image in px (use only for images smaller than 250px)|image_caption=text for caption beneath image|logo=filename of official logo image for the port|logo_alt=alt text for the logo image|logo_size=width of logo image in px (use only for images smaller than 250px)|logo_caption=caption for logo image|pushpin_map=any value in this field will cause a map to appear|pushpin_map_geomask=if set to "Yes", the map with highlight the country and grey the rest|pushpin_map_zoom=set zoom level for the map|country=UN recognised country within which the port is located|location=nearest city (also state/province/locale where relevent)|coordinates=latitude and longitude- Use
{{coord}}with|display=inline,title
- Use
|coordinates_footnotes=footnotes for coordinates|grid_name=|grid_position=|locode=UN/Locode for the port|opened=year port was opened|operated=Operated by|owner=Owner|type=Type of port - open roadstead, coastal natural, coastal breakwater, coastal breakwater, coastal tide gate, river natural, river basin, river tide gate, lake, canal, offshore terminal - do not classify by cargo type (oil, container, etc) as this inevitably changes over time|sizewater=size/area of the water surface of the port|sizeland=size/area of the land of the port|size=|berths=number of berths within the port|wharfs=number of wharves within the port|piers=number of piers within the port|draft_depth=maximum draft or depth (please specify which) available within the port|air_draft=any above-water height restrictions for vessels using the port. Please also specify location of restriction, e.g. Hamilton Bridge.|employees=number of employees at the port|leadershiptitle=job title of the port CEO|leader=name of the port ceo|blankdetailstitle1=|blankdetails1=|blankdetailstitle2=|blankdetails2=|blankdetailstitle3=|blankdetails3=|arrivals=number of vessel arrivals at the port in an average or recent year|cargotonnage=annual tonnage of cargo handled at tthe port|containervolume=annual number of TEUs moved onto or off vessels|cargovalue=annual value of cargo handled at the port|passengertraffic=annual number of passengers handled at the port|revenue=annual revenue of the port|profit=annual profit of the port|blankstatstitle1=|blankstats1=|blankstatstitle2=|blankstats2=|blankstatstitle3=|blankstats3=|website=official websiter of the port (please us {{official}})|embedded=
Tracking category
- Category:Pages using infobox port with unknown parameters (0)
- Category:Pages using infobox port with deprecated parameters (0)