Difference between revisions of "Template:Infobox canal"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Frietjes (merge parameters from Template:Infobox French canal, version is backwards compatible with both templates) |
||
| Line 5: | Line 5: | ||
| aboveclass = fn org | | aboveclass = fn org | ||
| abovestyle = font-size: larger; background-color: #CEDEFF | | abovestyle = font-size: larger; background-color: #CEDEFF | ||
| − | | above = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}} | + | | above = {{{name|<includeonly>{{{canal_name|{{PAGENAME}}}}}</includeonly>}}} |
| imagestyle = border-bottom: 1px solid #CEDEFF | | imagestyle = border-bottom: 1px solid #CEDEFF | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=288px|alt={{{alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=288px|alt={{{alt|}}}}} | ||
| − | | caption = {{{caption|}}} | + | | caption = {{{caption|{{image_caption|}}}}}} |
| label1 = Former names | | label1 = Former names | ||
| − | | data1 = {{{o_name|}}} | + | | data1 = {{{o_name|{{{former_names|}}}}}} |
| label2 = Modern name | | label2 = Modern name | ||
| data2 = {{{m_name|}}} | | data2 = {{{m_name|}}} | ||
| − | | label3 = | + | | label3 = Current owner |
| − | | data3 = | + | | data3 = {{{present_owner|}}} |
| − | | label4 = | + | | label4 = Original owner |
| − | | data4 = {{{ | + | | data4 = {{{company|{{{original_owner|}}}}}} |
| − | | label5 = | + | | label5 = Principal engineer |
| − | | data5 = {{{ | + | | data5 = {{{engineer|}}} |
| − | | label6 = | + | | label6 = Other engineer(s) |
| − | | data6 = {{{ | + | | data6 = {{{a_engineer|{{{other_engineer|}}}}}} |
| − | | label7 = | + | | label7 = Date approved |
| − | | data7 = | + | | data7 = {{{date_app|}}} |
| − | | label8 = Date of | + | | label8 = Date of act |
| − | | data8 = {{{ | + | | data8 = {{{date_act|}}} |
| − | | label9 = | + | | label9 = Construction began |
| − | | data9 = {{{ | + | | data9 = {{{date_const|{{{date_cons|}}}}}} |
| − | | label10 = Date | + | | label10 = Date of first use |
| − | | data10 = {{{ | + | | data10 = {{{date_use|}}} |
| − | | label11 = Date | + | | label11 = Date completed |
| − | | data11 = {{{ | + | | data11 = {{{date_comp|}}} |
| − | | label12 = Date | + | | label12 = Date extended |
| − | | data12 = {{{ | + | | data12 = {{{date_ext|}}} |
| − | | label13 = Maximum boat length | + | | label13 = Date closed |
| − | | | + | | data13 = {{{date_closed|}}} |
| + | |||
| + | | label14 = Date restored | ||
| + | | data14 = {{{date_rest|{{{date_restored|}}}}}} | ||
| + | |||
| + | | label15 = {{{xfield2}}} | ||
| + | | data15 = {{#if:{{{xfield2|}}}|{{{xvalue2|}}}}} | ||
| + | |||
| + | | label16 = Maximum boat length | ||
| + | | data16 = {{#if: {{{len_ft|{{{len|}}}}}}{{{len_m|}}} | ||
|{{br separated entries | |{{br separated entries | ||
|1 = {{#if:{{{len_m|}}} | |1 = {{#if:{{{len_m|}}} | ||
| Line 61: | Line 70: | ||
|3 = {{#if: {{{len_note|}}}|({{{len_note}}})}} | |3 = {{#if: {{{len_note|}}}|({{{len_note}}})}} | ||
}} | }} | ||
| + | | {{{max_boat_length|}}} | ||
}} | }} | ||
| − | | | + | | label17 = [[Beam (nautical)|Maximum boat beam]] |
| − | | | + | | data17 = {{#if: {{{beam_ft|{{{beam|}}}}}}{{{beam_m|}}} |
|{{br separated entries | |{{br separated entries | ||
|1 = {{#if:{{{beam_m|}}} | |1 = {{#if:{{{beam_m|}}} | ||
| Line 77: | Line 87: | ||
|3 = {{#if: {{{beam_note|}}}|({{{beam_note}}})}} | |3 = {{#if: {{{beam_note|}}}|({{{beam_note}}})}} | ||
}} | }} | ||
| + | | {{{max_boat_beam|}}} | ||
}} | }} | ||
| − | | | + | | label18 = Minimum boat draft |
| − | | | + | | data18 = {{{min_boat_draft|}}} |
| + | |||
| + | | label19 = Minimum boat air draft | ||
| + | | data19 = {{{min_boat_air_draft|}}} | ||
| + | |||
| + | | label20 = Direction | ||
| + | | data20 = {{{direction|}}} | ||
| + | |||
| + | | label21 = Start point | ||
| + | | data21 = {{#if: {{{start|{{{start_point|}}}}}} | ||
|{{br separated entries | |{{br separated entries | ||
| − | |1 = {{{start}}} | + | |1 = {{{start|{{{start_point}}}}}} |
|2 = {{#if: {{{o_start|}}}|(originally {{{o_start}}})}} | |2 = {{#if: {{{o_start|}}}|(originally {{{o_start}}})}} | ||
|3 = {{#if: {{{start_note|}}}|({{{start_note}}})}} | |3 = {{#if: {{{start_note|}}}|({{{start_note}}})}} | ||
| Line 88: | Line 108: | ||
}} | }} | ||
| − | | | + | | label22 = End point |
| − | | | + | | data22 = {{#if: {{{end|{{{end_point|}}}}}} |
|{{br separated entries | |{{br separated entries | ||
| − | |1 = {{{end}}} | + | |1 = {{{end|{{{end_point}}}}}} |
|2 = {{#if: {{{o_end|}}}|(originally {{{o_end}}})}} | |2 = {{#if: {{{o_end|}}}|(originally {{{o_end}}})}} | ||
|3 = {{#if: {{{end_note|}}}|({{{end_note}}})}} | |3 = {{#if: {{{end_note|}}}|({{{end_note}}})}} | ||
| Line 97: | Line 117: | ||
}} | }} | ||
| − | | | + | | label23 = Beginning [[Geographic_coordinate_system|coordinates]] |
| − | | | + | | data23 = {{{begin_coord|}}} |
| + | |||
| + | | label24 = Ending [[Geographic_coordinate_system|coordinates]] | ||
| + | | data24 = {{{end_coord|}}} | ||
| − | | | + | | label25 = Branch(es) |
| − | | | + | | data25 = {{{branch|}}} |
| − | | | + | | label26 = Branch of |
| − | | | + | | data26 = {{{branch_of|}}} |
| − | | | + | | label27 = Connects to |
| − | | | + | | data27 = {{{join|{{{connects_to|}}}}}} |
| + | |||
| + | | label28 = {{{xfield3}}} | ||
| + | | data28 = {{#if:{{{xfield3|}}}|{{{xvalue3|}}}}} | ||
| + | |||
| + | | label29 = Locks | ||
| + | | data29 = {{#if: {{{locks|}}} | ||
|{{br separated entries | |{{br separated entries | ||
|1 = {{{locks}}} | |1 = {{{locks}}} | ||
|2 = {{#if: {{{o_locks|}}}|(originally {{{o_locks}}})}} | |2 = {{#if: {{{o_locks|}}}|(originally {{{o_locks}}})}} | ||
|3 = {{#if: {{{lock_note|}}}|({{{lock_note}}})}} | |3 = {{#if: {{{lock_note|}}}|({{{lock_note}}})}} | ||
| + | }} | ||
| + | |{{#if:{{{current_num_locks|}}} | ||
| + | |{{{current_num_locks|}}}{{#if:{{{orig_num_locks|}}}|<br />(originally {{{orig_num_locks}}})}} | ||
}} | }} | ||
}} | }} | ||
| − | | | + | | label30 = Original number of locks<!-- suppressed if merged with field above --> |
| − | | | + | | data30 = {{#if:{{{current_num_locks|}}}|{{{orig_num_locks|}}}}} |
| + | |||
| + | | label31 = Length | ||
| + | | data31 = {{#if: {{{length_mi|{{{length|}}}}}}{{{length_km|}}} | ||
|{{br separated entries | |{{br separated entries | ||
|1 = {{#if:{{{length_km|}}} | |1 = {{#if:{{{length_km|}}} | ||
| Line 129: | Line 164: | ||
|3 = {{#if: {{{length_note|}}}|({{{length_note}}})}} | |3 = {{#if: {{{length_note|}}}|({{{length_note}}})}} | ||
}} | }} | ||
| + | |{{{canal_length|}}} | ||
| + | }} | ||
| + | |||
| + | | label32 = Lock length | ||
| + | | data32 = {{#if: {{{lock_length_mi|}}}{{{lock_length_km|}}} | ||
| + | |{{br separated entries | ||
| + | |1 = {{#if:{{{lock_length_km|}}} | ||
| + | | {{convert|{{{lock_length_km}}}|km|mi|abbr=in}} | ||
| + | | {{convert|{{{lock_length_mi|}}}|mi|km}} | ||
| + | }} | ||
| + | |2 = {{#if: {{{o_lock_length_km|}}} | ||
| + | |(originally {{convert|{{{o_lock_length_km}}}|km|mi|abbr=on|disp=or}}) | ||
| + | |{{#if: {{{o_lock_length_mi|}}} | ||
| + | |(originally {{convert|{{{o_lock_length_mi}}}|mi|km|abbr=on|disp=or}}) | ||
| + | }} }} | ||
| + | |3 = {{#if: {{{lock_length_note|}}}|({{{lock_length_note}}})}} | ||
| + | }} | ||
| + | |{{{lock_length|}}} | ||
| + | }} | ||
| + | |||
| + | | label33 = Lock width | ||
| + | | data33 = {{#if: {{{lock_width_m|}}}{{{lock_width_ft|}}} | ||
| + | |{{br separated entries | ||
| + | |1 = {{#if:{{{lock_width_m|}}} | ||
| + | | {{convert|{{{lock_width_m}}}|m|ft|abbr=on}} | ||
| + | | {{convert|{{{lock_width_ft}}}|ft|m|abbr=on}} | ||
| + | }} | ||
| + | |2 = {{#if: {{{o_lock_width_m|}}} | ||
| + | |(originally {{convert|{{{o_lock_width_m}}}|m|ft|abbr=on|disp=or}}) | ||
| + | |{{#if: {{{o_lock_width_ft|}}} | ||
| + | |(originally {{convert|{{{o_lock_width_ft}}}|ft|m|abbr=on|disp=or}}) | ||
| + | }} }} | ||
| + | |3 = {{#if: {{{lock_width_note|}}}|({{{lock_width_note}}})}} | ||
| + | }} | ||
| + | |{{{lock_width|}}} | ||
}} | }} | ||
| − | | | + | | label34 = Maximum height above sea level |
| − | | | + | | data34 = {{#if: {{{elev_ft|{{{elev|}}}}}}{{{elev_m|}}} |
|{{br separated entries | |{{br separated entries | ||
|1 = {{#if:{{{elev_m|}}} | |1 = {{#if:{{{elev_m|}}} | ||
| Line 140: | Line 210: | ||
|2 = {{#if: {{{elev_note|}}}|({{{elev_note}}})}} | |2 = {{#if: {{{elev_note|}}}|({{{elev_note}}})}} | ||
}} | }} | ||
| + | | {{{max_elev|}}} | ||
}} | }} | ||
| − | | | + | | label35 = Minimum height above sea level |
| − | | | + | | data35 = {{#if: {{{min_elev_ft|}}}{{{min_elev_m|}}} |
| + | |{{br separated entries | ||
| + | |1 = {{#if:{{{min_elev_m|}}} | ||
| + | | {{convert|{{{min_elev_m}}}|m|ft|abbr=on}} | ||
| + | | {{convert|{{{min_elev_ft}}}|ft|m|abbr=on}} | ||
| + | }} | ||
| + | |2 = {{#if: {{{min_elev_note|}}}|({{{min_elev_note}}})}} | ||
| + | }} | ||
| + | | {{{min_elev|}}} | ||
| + | }} | ||
| + | |||
| + | | label36 = Total rise | ||
| + | | data36 = {{{total_rise|}}} | ||
| + | |||
| + | | label37 = Status | ||
| + | | data37 = {{{status|}}} | ||
| + | |||
| + | | label38 = Navigation authority | ||
| + | | data38 = {{{nav|}}} | ||
| − | | | + | | label39 = {{{xfield1}}} |
| − | | | + | | data39 = {{#if:{{{xfield1|}}}|{{{xvalue1|}}}}} |
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 17:13, 21 May 2014
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
This template is part of the UK Waterways WikiProject.
Usage
Template:Parameter names example
{{Infobox canal
| name =
<!------------------------- IMAGE -->
| image =
| image_size =
| alt =
| image_caption =
<!------------------------- MAP -->
| map =
| map_size =
| map_alt =
| map_caption =
| pushpin_map =
| pushpin_map_alt =
| pushpin_map_size =
| pushpin_map_relief =
| pushpin_map_caption =
<!------------------------- LOCATION -->
| location =
| country =
| coordinates =
<!------------------------- SPECIFICATIONS -->
| length_mi =
| length_km =
| lock_length_mi =
| lock_length_km =
| lock_length =
| lock_width_m =
| lock_width_ft =
| len_ft =
| len_m =
| max_boat_length =
| beam_ft =
| beam_m =
| max_boat_beam =
| max_boat_draft =
| min_boat_draft =
| min_air_boat_draft =
| locks =
| current_num_locks =
| original_num_locks =
| elev_ft =
| elev_m =
| max_elev =
| min_elev_ft =
| min_elev_m =
| min_elev =
| total_rise =
| status =
| navigation_authority =
| original_length_km =
| original_length_mi =
| length_note =
| original_lock_length_km =
| original_lock_length_mi =
| lock_length_note =
| original_lock_width_m =
| original_lock_width_ft =
| lock_width_note =
| lock_width =
| len_in =
| original_boat_length_m =
| original_boat_length_ft =
| original_boat_length_in =
| len_note =
| beam_in =
| original_beam_m =
| original_beam_ft =
| original_beam_in =
| beam_note =
| min_boat_air_draft =
| lock_note =
| elev_note =
| min_elev_note =
| xfield1 =
| xvalue1 =
<!------------------------- HISTORY -->
| former_names =
| modern_name =
| present_owner =
| original_owner =
| engineer =
| other_engineer =
| date_approved =
| date_act =
| date_began =
| date_use =
| date_completed =
| date_extended =
| date_closed =
| date_restored =
| xvalue2 =
| xfield2 =
<!------------------------- GEOGRAPHY -->
| direction =
| begin_coord =
| end_coord =
| branch =
| branch_of =
| connects_to =
| start_point =
| original_start =
| start_note =
| end_point =
| original_end =
| end_note =
| xfield3 =
| xvalue3 =
| module =
}}
Tracking category
| The above documentation is transcluded from Template:Infobox canal/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |