Difference between revisions of "Template:Infobox canal"
Jump to navigation
Jump to search
(Adding alternative metric units (step 1)) |
(Add optional metric (step 2)) |
||
| Line 66: | Line 66: | ||
}} | }} | ||
|- | |- | ||
| − | {{#if: {{{len_ft|{{{len|}}}}}}| | + | {{#if: {{{len_ft|{{{len|}}}}}}{{{len_m|}}}| |
{{!}} '''Maximum boat length''' | {{!}} '''Maximum boat length''' | ||
| − | {{!}} {{convert|{{{len_ft|{{{len|}}}}}}|ft|{{{len_in|0}}}|in|m|abbr=on|sigfig=4}} | + | {{!}} {{#if:{{{len_m|}}} |
| − | {{#if: {{{o_len_ft|{{{o_len|}}}}}}|(originally {{convert|{{{o_len_ft|{{{o_len|}}}}}}|ft|{{{o_len_in|0}}}|in|m|abbr=on|disp=or|sigfig=4}}) | + | |{{convert|{{{len_m|}}}|m|ftin|abbr=on|sigfig=4}} |
| − | }} | + | |{{convert|{{{len_ft|{{{len|}}}}}}|ft|{{{len_in|0}}}|in|m|abbr=on|sigfig=4}} |
| − | {{#if: {{{len_note|}}}|<br>({{{len_note|}}}) | + | }} |
| − | }} | + | {{#if: {{{o_len_m|}}} |
| + | |(originally {{convert|{{{o_len_m|}}}|m|ftin|abbr=on|disp=or|sigfig=4}}) | ||
| + | |{{#if: {{{o_len_ft|{{{o_len|}}}}}} | ||
| + | |(originally {{convert|{{{o_len_ft|{{{o_len|}}}}}}|ft|{{{o_len_in|0}}}|in|m|abbr=on|disp=or|sigfig=4}}) | ||
| + | }} | ||
| + | }} | ||
| + | {{#if: {{{len_note|}}}|<br>({{{len_note|}}})}} | ||
}} | }} | ||
|- | |- | ||
| − | {{#if: {{{beam_ft|{{{beam|}}}}}}| | + | {{#if: {{{beam_ft|{{{beam|}}}}}}{{{beam_m|}}}| |
{{!}} '''[[Beam (nautical)|Maximum boat beam]]''' | {{!}} '''[[Beam (nautical)|Maximum boat beam]]''' | ||
| − | {{!}} {{convert|{{{beam_ft|{{{beam|}}}}}}|ft|{{{beam_in|0}}}|in|m|abbr=on|sigfig=3}} | + | {{!}} {{#if:{{{beam_m|}}} |
| − | {{#if: {{{o_beam_ft|{{{o_beam|}}}}}}|(originally {{convert|{{{o_beam_ft|{{{o_beam|}}}}}}|ft|{{{o_beam_in|0}}}|in|m|abbr=on|disp=or|sigfig= | + | |{{convert|{{{beam_m|}}}|m|ftin|abbr=on|sigfig=3}} |
| − | }} | + | |{{convert|{{{beam_ft|{{{beam|}}}}}}|ft|{{{beam_in|0}}}|in|m|abbr=on|sigfig=3}} |
| − | {{#if: {{{beam_note|}}}|<br>({{{beam_note|}}}) | + | }} |
| − | }} | + | {{#if: {{{o_beam_m|}}} |
| + | |(originally {{convert|{{{o_beam_m|}}}|m|ftin|abbr=on|disp=or|sigfig=3}}) | ||
| + | |{{#if: {{{o_beam_ft|{{{o_beam|}}}}}} | ||
| + | |(originally {{convert|{{{o_beam_ft|{{{o_beam|}}}}}}|ft|{{{o_beam_in|0}}}|in|m|abbr=on|disp=or|sigfig=3}}) | ||
| + | }} | ||
| + | }} | ||
| + | {{#if: {{{beam_note|}}}|<br>({{{beam_note|}}})}} | ||
}} | }} | ||
|- | |- | ||
| Line 87: | Line 99: | ||
{{!}} '''Start point''' | {{!}} '''Start point''' | ||
{{!}} {{{start|}}} | {{!}} {{{start|}}} | ||
| − | {{#if: {{{o_start|}}}|(originally {{{o_start|}}}) | + | {{#if: {{{o_start|}}}|(originally {{{o_start|}}})}} |
| − | }} | + | {{#if: {{{start_note|}}}|<br>({{{start_note|}}})}} |
| − | {{#if: {{{start_note|}}}|<br>({{{start_note|}}}) | ||
| − | }} | ||
}} | }} | ||
|- | |- | ||
| Line 96: | Line 106: | ||
{{!}} '''End point''' | {{!}} '''End point''' | ||
{{!}} {{{end|}}} | {{!}} {{{end|}}} | ||
| − | {{#if: {{{o_end|}}}|(originally {{{o_end|}}}) | + | {{#if: {{{o_end|}}}|(originally {{{o_end|}}})}} |
| − | }} | + | {{#if: {{{end_note|}}}|<br>({{{end_note|}}})}} |
| − | {{#if: {{{end_note|}}}|<br>({{{end_note|}}}) | ||
| − | }} | ||
}} | }} | ||
|- | |- | ||
| Line 120: | Line 128: | ||
{{!}} '''Locks''' | {{!}} '''Locks''' | ||
{{!}} {{{locks|}}} | {{!}} {{{locks|}}} | ||
| − | {{#if: {{{o_locks|}}}|(originally {{{o_locks|}}}) | + | {{#if: {{{o_locks|}}}|(originally {{{o_locks|}}})}} |
| − | }} | + | {{#if: {{{lock_note|}}}|<br>({{{lock_note|}}})}} |
| − | {{#if: {{{lock_note|}}}|<br>({{{lock_note|}}}) | ||
| − | }} | ||
}} | }} | ||
|- | |- | ||
| − | {{#if: {{{length_mi|{{{length|}}}}}}| | + | {{#if: {{{length_mi|{{{length|}}}}}}{{{length_km|}}}| |
{{!}} '''Length''' | {{!}} '''Length''' | ||
| − | {{!}} {{convert|{{{length_mi|{{{length|}}}}}}|mi|km| | + | {{!}} {{#if:{{{length_km|}}} |
| − | {{#if: {{{o_length_mi|{{{o_length|}}}}}}|(originally {{convert|{{{o_length|{{{o_length_mi|}}}}}}|mi|km | + | | {{convert|{{{length_km|}}}|km|mi}} |
| − | }} | + | | {{convert|{{{length_mi|{{{length|}}}}}}|mi|km}} |
| − | {{#if: {{{length_note|}}}|<br>({{{length_note|}}}) | + | }} |
| − | }} | + | {{#if: {{{o_length_km|}}} |
| + | |(originally {{convert|{{{o_length_km|}}}|km|mi|disp=or}}) | ||
| + | |{{#if: {{{o_length_mi|{{{o_length|}}}}}} | ||
| + | |(originally {{convert|{{{o_length|{{{o_length_mi|}}}}}}|mi|km|disp=or}}) | ||
| + | }} | ||
| + | }} | ||
| + | {{#if: {{{length_note|}}}|<br>({{{length_note|}}})}} | ||
}} | }} | ||
|- | |- | ||
| − | {{#if: {{{elev_ft|{{{elev|}}}}}}| | + | {{#if: {{{elev_ft|{{{elev|}}}}}}{{{elev_m|}}}| |
{{!}} '''Maximum height above sea level''' | {{!}} '''Maximum height above sea level''' | ||
| − | {{!}} {{convert|{{{elev_ft|{{{elev|}}}}}}|ft|m|abbr=on}} | + | {{!}} {{#if:{{{elev_m|}}} |
| − | {{#if: {{{elev_note|}}}|<br>({{{elev_note|}}}) | + | | {{convert|{{{elev_m|}}}|m|ft|abbr=on}} |
| − | }} | + | | {{convert|{{{elev_ft|{{{elev|}}}}}}|ft|m|abbr=on}} |
| + | }} | ||
| + | {{#if: {{{elev_note|}}}|<br>({{{elev_note|}}})}} | ||
}} | }} | ||
|- | |- | ||
Revision as of 00:05, 1 February 2014
| 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. |
eo:Ŝablono:Informkesto kanalo fr:Modèle:Infobox Canal nl:Sjabloon:Infobox kanaal no:Mal:Infoboks kanal