Template:CanalInfobox: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class="infobox" style="width: 250px; border: solid 1px #AAA;" | <includeonly>{| class="infobox" style="width: 250px; border: solid 1px #AAA;" | ||
|+ style="background-color: #BDBDBD; text-align: center;" | '''{{{canal_name}}}''' | |+ style="background-color: #BDBDBD; text-align: center;" | '''{{{canal_name|{{PAGENAME}}}}}''' | ||
|- | |- | ||
! colspan="2" style="background-color: #BDBDBD; text-align: center;" | Canal | ! colspan="2" style="background-color: #BDBDBD; text-align: center;" | Canal | ||
|- | |- {{#if: {{{canal_image|}}} | | style="display: none;" }} | ||
| colspan="2" style="text-align: center;" | [[File:{{{canal_image|}}}|200px]] | | colspan="2" style="text-align: center;" | [[File:{{{canal_image|}}}|200px]] | ||
|- | |- {{#if: {{{length_imp|}}}{{{length|}}} | | style="display: none;" }} | ||
! Length | ! Length | ||
| {{#if: {{{length_imp}}}|{{{length|}}} km ({{{length_imp|}}} mi)|{{{length|}}} km | | {{#if: {{{length|}}} | {{#if: {{{length_imp}}}|{{{length|}}} km ({{{length_imp|}}} mi)|{{{length|}}} km}}|{{{length_imp}}} mi}} | ||
|- | |- {{#if: {{{boat_length_imp|}}}{{{boat_length|}}} | | style="display: none;" }} | ||
! Maximum boat length | ! Maximum boat length | ||
| {{#if: {{{boat_length_imp}}}|{{{boat_length|}}} m ({{{boat_length_imp|}}} ft)| {{{boat_length}}} m | | {{#if: {{{boat_length|}}} | {{#if: {{{boat_length_imp}}}|{{{boat_length|}}} m ({{{boat_length_imp|}}} ft)| {{{boat_length}}} m | {{{boat_length_imp}}} ft}} | ||
|- | |- | ||
! Maximum boat beam | ! Maximum boat beam | ||
| {{#if: {{{boat_beam_imp}}}|{{{boat_beam|}}} m ({{{boat_beam_imp|}}} ft)| {{{boat_beam}}} m | | {{#if: {{{boat_beam_imp}}}|{{{boat_beam|}}} m ({{{boat_beam_imp|}}} ft)| {{{boat_beam}}} m}} | ||
|- | |- | ||
! Maximum boat draft | ! Maximum boat draft | ||
| {{#if: {{{boat_draft_imp}}}|{{{boat_draft|}}} m ({{{boat_draft_imp|}}} ft)| {{{boat_draft}}} m | | {{#if: {{{boat_draft_imp}}}|{{{boat_draft|}}} m ({{{boat_draft_imp|}}} ft)| {{{boat_draft}}} m}} | ||
|- | |- | ||
! Locks | ! Locks | ||
Line 45: | Line 45: | ||
! Connects to | ! Connects to | ||
| {{{connects}}} | | {{{connects}}} | ||
|}</includeonly><noinclude>{{ | |}</includeonly><noinclude>{{doc}}</noinclude> | ||
}} | |||
Latest revision as of 07:06, 22 September 2024
Template documentation
The {{CanalInfobox}} template provides a right-hand infobox with information specific to a canal.
Usage
To use the template, copy the following code to the page on which you wish it to appear.
{{CanalInfobox | canal_name = | canal_image = | length = | length_imp = | boat_length = | boat_length_imp = | boat_beam = | boat_beam_imp = | boat_draft = | boat_draft_imp = | locks = | authority = | original_owner = | began = | completed = | start_point = | end_point = | connects = }}
Parameters
All of the parameters are optional.
Parameter | Description | Type | Notes |
---|---|---|---|
canal name | Name of the canal | String | |
canal image | Filename of an image of the canal | String | |
length | Length of the canal | String | In kilometers |
length imp | Length of the canal, imperial units | String | In miles |
boat lenght | Maximum boat length | String | In meters |
boat length imperial | Maximum boat length, imperial units | In feet | |
boat beam | Maximum boat beam (width) | String | In meters |
boat beam imp | Maximum boat beam, imperial units | String | In feet |
boat draft | Maximum boat draft | String | In meters |
boat draft imp | Maximum boat draft, imperial units | String | In feet |
locks | Number of locks | String | Total locks or number up and number down |
authority | Authority overseeing the canal | String | |
original owner | Original owner of the canal | String | |
began | Date construction began | String | |
completed | Date construction ended | String | |
start point | Entrance to the canal | String | |
end point | Exit from the canal | String | |
connects | Bodies of water the canal connects to | String |
Example
Canal | |
---|---|
File:Filename.png | |
Length | 82 km (51 mi) |
Maximum boat length | 366 m (1,200 ft) |
Maximum boat beam | 49 m (160 ft) |
Maximum boat draft | 15.2 m (60 ft) |
Locks | 3 up, 3 down |
Navigation authority | Panama Canal Authority |
History | |
Original owner | Société internationale du Canal |
Construction began | May 4, 1904 |
Date completed | August 15, 1914 |
Geography | |
Start point | Atlantic Ocean |
End point | Pacific Ocean |
Connects to | Pacific Ocean from Atlantic Ocean and vice versa |
{{CanalInfobox | canal_name = Panama Canal | canal_image = filename.png | length = 82 | length_imp = 51 | boat_length = 366 | boat_length_imp = 1,200 | boat_beam = 49 | boat_beam_imp = 160 | boat_draft = 15.2 | boat_draft_imp = 60 | locks = 3 up, 3 down | authority = Panama Canal Authority | original_owner = Société internationale du Canal | began = May 4, 1904 | completed = August 15, 1914 | start_point = Atlantic Ocean | end_point = Pacific Ocean | connects = Pacific Ocean from Atlantic Ocean and vice versa }}