Template:Infobox port/doc

< Template:Infobox port
Revision as of 16:24, 3 August 2018 by en>QYYZ (→‎Usage: fixed spacing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

{{{name}}}
[[File:{{{image}}}|{{{image_size}}}]]
{{{caption}}}
Lua error in Module:Location_map at line 408: Malformed coordinates value.
Location
Country{{{country}}}
Location{{{location}}}
CoordinatesLua error: callParserFunction: function "#coordinates" was not found. {{{coordinates_footnotes}}}
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
| name                   = 
| image                  = 
| image_size             = 
| caption                = 
| pushpin_map            = 
| pushpin_map_alt        = 
| pushpin_mapsize        = 
| pushpin_relief         = 
| pushpin_image          = 
| pushpin_label          = 
| pushpin_label_position = 
| pushpin_map_caption    = 
| country                = 
| location               = 
| coordinates            = 
| 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                = 
}}
{{Infobox port
| name             = 
| image            = 
| image_size       = 
| caption          = 
| 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 <!-- or child=yes or subbox=yes-->
  | <!-- etc. -->
  }}
}}

Example

Port of Afghanistan
Porto de Valparaiso - Chile - by Sérgio Schmiegelow.jpg
Ships in a port
Lua error in Module:Location_map at line 408: Malformed coordinates value.
Location
CountryUtopia
LocationBig City
Political subdivision
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
UN/LOCODEUNLOC
Details
Opened1492
Operated byNational Ports, Ltd.
Owned byGovernment of Utopia
Type of harborNatural/Artificial
Size of harbor100 square kilometres (39 sq mi)
Land area50 square miles (130 km2)
Size350 acres (1.4 km2)
Available berths82
Wharfs122
Piers8
Employees45,000
PresidentMichael Jackson
Cranes8
Channel depth50 metres (160 ft)
Warehouse space450,000 square feet (42,000 m2)
Statistics
Vessel arrivals285
Annual cargo tonnage1,500,000
Annual container volumea lot
Value of cargo$4.5 billion
Passenger traffic850,000
Annual revenue$250 million
Net income$25 million
Main exportsRubber, coal
Main importsBeer, oil
Rail traffic400,000 tons
Website
www.portofports.port
{{Infobox port
| name               = Port of Afghanistan
| image              = Porto de Valparaiso - Chile - by Sérgio Schmiegelow.jpg
| caption            = Ships in a port
| pushpin_map        = USA Oregon <!-- uses coordinates below -->
| country            = Utopia
| location           = Big City<br/>Political subdivision
| coordinates        = {{coord|45.000|-122.000|display=inline<!--,title-->}}
| locode             = UNLOC
| opened             = 1492
| operated           = National Ports, Ltd.
| owner              = Government of Utopia
| type               = Natural/Artificial
| sizewater          = {{convert|100|km2|mi2}}
| sizeland           = {{convert|50|mi2|km2}}
| size               = {{convert|350|acre|km2}}
| berths             = 82
| wharfs             = 122
| piers              = 8
| employees          = 45,000
| leadershiptitle    = President
| leader             = Michael Jackson
| blankdetailstitle1 = Cranes
| blankdetails1      = 8
| blankdetailstitle2 = Channel depth
| blankdetails2      = {{convert|50|m|ft}}
| blankdetailstitle3 = Warehouse space
| blankdetails3      = {{convert|450000|ft2|m2}}
| arrivals           = 285
| cargotonnage       = 1,500,000
| containervolume    = a lot
| cargovalue         = $4.5 billion
| passengertraffic   = 850,000
| revenue            = $250 million
| profit             = $25 million
| blankstatstitle1   = Main exports
| blankstats1        = Rubber, coal
| blankstatstitle2   = Main imports
| blankstats2        = Beer, oil
| blankstatstitle3   = Rail traffic
| blankstats3        = 400,000 tons
| website            = {{URL|www.portofports.port}}
}}

Tracking category

See also