Template:Infobox port: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
m (Edgard moved page Infobox port to Template:Infobox port)
No edit summary
Line 1: Line 1:
<includeonly>
{{infobox
<table class="infobox" style="width:22em; font-size: 90%; border:1px solid #ccc; padding:5px;">
| bodyclass  = vcard
<tr>
| bodystyle  = {{{bodystyle|}}}
  <th colspan="2" style="background:#ccf; text-align:center; font-size:110%;">{{{name|Port Name}}}</th>
| titleclass = fn org
</tr>
| title      = {{{name<includeonly>|{{{port_name|{{PAGENAME}}}}}</includeonly>}}}
<tr>
| imageclass = logo
  <td colspan="2" style="text-align:center;">
| image      = {{{logo<includeonly>|{{{port_logo|}}}</includeonly>}}}
    {{#if:{{{image|}}}|[[File:{{{image}}}|250px|alt={{{caption|}}}]]}}
| caption    = {{#if:{{{caption|}}}{{{logo_caption|}}}|{{{caption|{{{logo_caption|}}}}}}}}
    <div style="font-size:85%;">{{{caption|}}}</div>
| image2 = {{#invoke:InfoboxImage |InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|}}} }}
  </td>
| caption2 = {{{image_caption|}}}
</tr>
 
{{#if:{{{country|}}}|<tr>
| label1    = Country
  <th style="background:#ddd; text-align:left;">Country</th>
| data1      = {{{country<includeonly>|</includeonly>}}}
  <td>{{{country}}}</td>
 
</tr>}}
| label2    = Location
{{#if:{{{location|}}}|<tr>
| data2      = {{{location<includeonly>|</includeonly>}}}
  <th style="background:#ddd; text-align:left;">Location</th>
 
  <td>{{{location}}}</td>
| label3    = Coordinates
</tr>}}
| data3      = {{{coordinates<includeonly>|</includeonly>}}}
{{#if:{{{coordinates|}}}|<tr>
 
  <th style="background:#ddd; text-align:left;">Coordinates</th>
| label4    = Opened
  <td>{{{coordinates}}}</td>
| data4      = {{{opened<includeonly>|</includeonly>}}}
</tr>}}
 
{{#if:{{{opened|}}}|<tr>
| label5    = Operated By
  <th style="background:#ddd; text-align:left;">Opened</th>
| data5      = {{{operated_by<includeonly>|</includeonly>}}}
  <td>{{{opened}}}</td>
 
</tr>}}
| label6    = Owner
{{#if:{{{operated|}}}|<tr>
| data6      = {{{owner<includeonly>|</includeonly>}}}
  <th style="background:#ddd; text-align:left;">Operated By</th>
 
  <td>{{{operated}}}</td>
| label7    = Type
</tr>}}
| data7      = {{{type<includeonly>|</includeonly>}}}
{{#if:{{{owner|}}}|<tr>
 
  <th style="background:#ddd; text-align:left;">Owner</th>
| label8    = Size
  <td>{{{owner}}}</td>
| data8      = {{{size<includeonly>|</includeonly>}}}
</tr>}}
 
{{#if:{{{type|}}}|<tr>
| label9    = Number of Berths
  <th style="background:#ddd; text-align:left;">Type</th>
| data9      = {{{berths<includeonly>|</includeonly>}}}
  <td>{{{type}}}</td>
 
</tr>}}
| label10    = Employees
{{#if:{{{size|}}}|<tr>
| data10    = {{{employees<includeonly>|</includeonly>}}}
  <th style="background:#ddd; text-align:left;">Size</th>
 
  <td>{{{size}}}</td>
| label11    = Annual Passenger Traffic
</tr>}}
| data11    = {{{passenger_traffic<includeonly>|</includeonly>}}}
{{#if:{{{berths|}}}|<tr>
 
  <th style="background:#ddd; text-align:left;">Berths</th>
| label12    = Cargo Tonnage
  <td>{{{berths}}}</td>
| data12    = {{{cargo_tonnage<includeonly>|</includeonly>}}}
</tr>}}
 
{{#if:{{{employees|}}}|<tr>
| label13    = Annual Revenue
  <th style="background:#ddd; text-align:left;">Employees</th>
| data13    = {{{annual_revenue<includeonly>|</includeonly>}}}
  <td>{{{employees}}}</td>
 
</tr>}}
| label14    = Website
{{#if:{{{passenger_traffic|}}}|<tr>
| data14    = {{{website<includeonly>|[{{{website}}} Official website]</includeonly>}}}
  <th style="background:#ddd; text-align:left;">Passenger Traffic</th>
 
  <td>{{{passenger_traffic}}}</td>
| below      = {{#if:{{{footnotes<includeonly>|</includeonly>}}}|'''References:''' {{{footnotes}}} }}
</tr>}}
}}
{{#if:{{{cargo_tonnage|}}}|<tr>
  <th style="background:#ddd; text-align:left;">Cargo Tonnage</th>
  <td>{{{cargo_tonnage}}}</td>
</tr>}}
{{#if:{{{annual_revenue|}}}|<tr>
  <th style="background:#ddd; text-align:left;">Annual Revenue</th>
  <td>{{{annual_revenue}}}</td>
</tr>}}
{{#if:{{{website|}}}|<tr>
  <th style="background:#ddd; text-align:left;">Website</th>
  <td>[{{{website}}} Official website]</td>
</tr>}}
</table>


[[Category:Ports]]
[[Category:Ports]]
[[Category:Transport]]
[[Category:Transport]]
</includeonly>
<noinclude>
<noinclude>
==Usage==
{{Documentation
This template is for displaying key information about ports, including location, capacity, and operational details. Copy the following example and replace with specific data to use this template on a page.
|content =
This template is designed to display essential details for a port. Copy and customize the template with relevant details about a port.


==Example==
==Example==
Line 85: Line 72:
| coordinates          = 35°00′N 120°00′W
| coordinates          = 35°00′N 120°00′W
| opened                = 1850
| opened                = 1850
| operated              = Example Port Authority
| operated_by          = Example Port Authority
| owner                = Government of Exampleland
| owner                = Government of Exampleland
| type                  = Seaport
| type                  = Seaport
Line 106: Line 93:
| coordinates          = 35°00′N 120°00′W
| coordinates          = 35°00′N 120°00′W
| opened                = 1850
| opened                = 1850
| operated              = Example Port Authority
| operated_by          = Example Port Authority
| owner                = Government of Exampleland
| owner                = Government of Exampleland
| type                  = Seaport
| type                  = Seaport
Line 119: Line 106:


==Parameters==
==Parameters==
* '''name''' Name of the port
* '''name''': Name of the port.
* '''image''' – Image file name (e.g., "Port_example.jpg")
* '''image''': File name of the image representing the port.
* '''caption''' Caption for the image
* '''caption''': Caption for the image.
* '''country''' Country where the port is located
* '''country''': Country where the port is located.
* '''location''' Specific location of the port within the country
* '''location''': Specific city or region of the port within the country.
* '''coordinates''' – Geographic coordinates
* '''coordinates''': Latitude and longitude coordinates.
* '''opened''' Year the port was opened
* '''opened''': Year the port was opened.
* '''operated''' Operating company or authority
* '''operated_by''': Operating company or authority.
* '''owner''' Owner of the port
* '''owner''': Owner of the port.
* '''type''' Type of port (e.g., seaport, river port)
* '''type''': Type of port (e.g., seaport, river port).
* '''size''' – Total area of the port in square kilometers or hectares
* '''size''': Area of the port in square kilometers or hectares.
* '''berths''' Number of berths available at the port
* '''berths''': Number of berths available at the port.
* '''employees''' Number of employees working at the port
* '''employees''': Number of employees working at the port.
* '''passenger_traffic''' Annual passenger traffic handled by the port
* '''passenger_traffic''': Annual passenger traffic handled.
* '''cargo_tonnage''' Total annual cargo tonnage processed
* '''cargo_tonnage''': Total annual cargo tonnage processed.
* '''annual_revenue''' Annual revenue generated by the port
* '''annual_revenue''': Annual revenue generated by the port.
* '''website''' Official website of the port
* '''website''': Official website of the port.
 
}}
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 03:09, 11 November 2024

{{{name}}}
Country {{{country}}}
Location {{{location}}}
Coordinates {{{coordinates}}}
Opened {{{opened}}}
Operated By {{{operated_by}}}
Owner {{{owner}}}
Type {{{type}}}
Size {{{size}}}
Number of Berths {{{berths}}}
Employees {{{employees}}}
Annual Passenger Traffic {{{passenger_traffic}}}
Cargo Tonnage {{{cargo_tonnage}}}
Annual Revenue {{{annual_revenue}}}
Website {{{website}}}
References: {{{footnotes}}}
Template documentation

This template is designed to display essential details for a port. Copy and customize the template with relevant details about a port.

Example

{{Infobox port
| name                  = Port Example
| image                 = Example_Port.jpg
| caption               = The Port of Example
| country               = Exampleland
| location              = Example City
| coordinates           = 35°00′N 120°00′W
| opened                = 1850
| operated_by           = Example Port Authority
| owner                 = Government of Exampleland
| type                  = Seaport
| size                  = 10 sq km
| berths                = 15
| employees             = 2000
| passenger_traffic     = 2 million
| cargo_tonnage         = 5 million tons
| annual_revenue        = $500 million
| website               = http://www.exampleport.example
}}
Port Example
Country Exampleland
Location Example City
Coordinates 35°00′N 120°00′W
Opened 1850
Operated By Example Port Authority
Owner Government of Exampleland
Type Seaport
Size 10 sq km
Number of Berths 15
Employees 2000
Annual Passenger Traffic 2 million
Cargo Tonnage 5 million tons
Annual Revenue $500 million
Website http://www.exampleport.example


Parameters

  • name: Name of the port.
  • image: File name of the image representing the port.
  • caption: Caption for the image.
  • country: Country where the port is located.
  • location: Specific city or region of the port within the country.
  • coordinates: Latitude and longitude coordinates.
  • opened: Year the port was opened.
  • operated_by: Operating company or authority.
  • owner: Owner of the port.
  • type: Type of port (e.g., seaport, river port).
  • size: Area of the port in square kilometers or hectares.
  • berths: Number of berths available at the port.
  • employees: Number of employees working at the port.
  • passenger_traffic: Annual passenger traffic handled.
  • cargo_tonnage: Total annual cargo tonnage processed.
  • annual_revenue: Annual revenue generated by the port.
  • website: Official website of the port.