Difference between revisions of "Template:Infobox canal"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Frietjes m (reorder a bit to group common fields and add some section headings) |
||
| Line 11: | Line 11: | ||
| caption = {{{caption|{{{image_caption|}}}}}} | | caption = {{{caption|{{{image_caption|}}}}}} | ||
| − | | | + | | headerstyle = background-color: #CEDEFF |
| − | |||
| − | | | + | | header1 = {{#if:{{{length_mi|}}}{{{length_km|}}}{{{canal_length|}}}{{{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|}}}{{{min_boat_draft|}}}{{{min_air_boat_draft|}}}{{{locks|}}}{{{current_num_locks|}}}{{{orig_num_locks|}}}{{{elev_ft|}}}{{{elev_m|}}}{{{max_elev|}}}{{{min_elev_ft|}}}{{{min_elev_m|}}}{{{min_elev|}}}{{{total_rise|}}}{{{status|}}}{{{nav|}}}{{{xvalue1|}}}|Specifications}} |
| − | | | ||
| − | | | + | | label2 = Length |
| − | | | + | | data2 = {{#if: {{{length_mi|{{{length|}}}}}}{{{length_km|}}} |
| + | |{{br separated entries | ||
| + | |1 = {{#if:{{{length_km|}}} | ||
| + | | {{convert|{{{length_km}}}|km|mi|abbr=in}} | ||
| + | | {{convert|{{{length_mi|{{{length}}}}}}|mi|km}} | ||
| + | }} | ||
| + | |2 = {{#if: {{{o_length_km|}}} | ||
| + | |(originally {{convert|{{{o_length_km}}}|km|mi|abbr=on|disp=or}}) | ||
| + | |{{#if: {{{o_length_mi|{{{o_length|}}}}}} | ||
| + | |(originally {{convert|{{{o_length|{{{o_length_mi}}}}}}|mi|km|abbr=on|disp=or}}) | ||
| + | }} }} | ||
| + | |3 = {{#if: {{{length_note|}}}|({{{length_note}}})}} | ||
| + | }} | ||
| + | |{{{canal_length|}}} | ||
| + | }} | ||
| − | | | + | | label3 = Lock length |
| − | | | + | | data3 = {{#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|}}} | ||
| + | }} | ||
| − | | | + | | label4 = Lock width |
| − | | | + | | data4 = {{#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|}}} | |
| − | | | + | }} |
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | |||
| − | | | + | | label5 = Maximum boat length |
| − | + | | data5 = {{#if: {{{len_ft|{{{len|}}}}}}{{{len_m|}}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
|{{br separated entries | |{{br separated entries | ||
|1 = {{#if:{{{len_m|}}} | |1 = {{#if:{{{len_m|}}} | ||
| Line 73: | Line 83: | ||
}} | }} | ||
| − | | | + | | label6 = [[Beam (nautical)|Maximum boat beam]] |
| − | | | + | | data6 = {{#if: {{{beam_ft|{{{beam|}}}}}}{{{beam_m|}}} |
|{{br separated entries | |{{br separated entries | ||
|1 = {{#if:{{{beam_m|}}} | |1 = {{#if:{{{beam_m|}}} | ||
| Line 90: | Line 100: | ||
}} | }} | ||
| − | | | + | | label7 = Minimum boat draft |
| − | | | + | | data7 = {{{min_boat_draft|}}} |
| − | | | + | | label8 = Minimum boat air draft |
| − | | | + | | data8 = {{{min_boat_air_draft|}}} |
| − | | | + | | label9 = Locks |
| − | + | | data9 = {{#if: {{{locks|}}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
|{{br separated entries | |{{br separated entries | ||
|1 = {{{locks}}} | |1 = {{{locks}}} | ||
| Line 147: | Line 118: | ||
}} | }} | ||
| − | | | + | | label10 = Original number of locks<!-- suppressed if merged with field above --> |
| − | | | + | | data10 = {{#if:{{{current_num_locks|}}}|{{{orig_num_locks|}}}}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | | | + | | label11 = Maximum height above sea level |
| − | | | + | | data11 = {{#if: {{{elev_ft|{{{elev|}}}}}}{{{elev_m|}}} |
|{{br separated entries | |{{br separated entries | ||
|1 = {{#if:{{{elev_m|}}} | |1 = {{#if:{{{elev_m|}}} | ||
| Line 213: | Line 133: | ||
}} | }} | ||
| − | | | + | | label12 = Minimum height above sea level |
| − | | | + | | data12 = {{#if: {{{min_elev_ft|}}}{{{min_elev_m|}}} |
|{{br separated entries | |{{br separated entries | ||
|1 = {{#if:{{{min_elev_m|}}} | |1 = {{#if:{{{min_elev_m|}}} | ||
| Line 225: | Line 145: | ||
}} | }} | ||
| − | | | + | | label13 = Total rise |
| − | | data36 = {{{ | + | | data13 = {{{total_rise|}}} |
| + | |||
| + | | label14 = Status | ||
| + | | data14 = {{{status|}}} | ||
| + | |||
| + | | label15 = Navigation authority | ||
| + | | data15 = {{{nav|}}} | ||
| + | |||
| + | | label16 = {{{xfield1}}} | ||
| + | | data16 = {{#if:{{{xfield1|}}}|{{{xvalue1|}}}}} | ||
| + | |||
| + | | header17 = {{#if:{{{o_name|{{{former_names|}}}}}}{{{m_name|}}}{{{present_owner|}}}{{{company|{{{original_owner|}}}}}}{{{engineer|}}}{{{a_engineer|{{{other_engineer|}}}}}}{{{date_app|}}}{{{date_act|}}}{{{date_const|{{{date_cons|}}}}}}{{{date_use|}}}{{{date_comp|}}}{{{date_ext|}}}{{{date_closed|}}}{{{date_rest|{{{date_restored|}}}}}}{{{xvalue2|}}}|History}} | ||
| + | |||
| + | | label18 = Former names | ||
| + | | data18 = {{{o_name|{{{former_names|}}}}}} | ||
| + | |||
| + | | label19 = Modern name | ||
| + | | data19 = {{{m_name|}}} | ||
| + | |||
| + | | label20 = Current owner | ||
| + | | data20 = {{{present_owner|}}} | ||
| + | |||
| + | | label21 = Original owner | ||
| + | | data21 = {{{company|{{{original_owner|}}}}}} | ||
| + | |||
| + | | label22 = Principal engineer | ||
| + | | data22 = {{{engineer|}}} | ||
| + | |||
| + | | label23 = Other engineer(s) | ||
| + | | data23 = {{{a_engineer|{{{other_engineer|}}}}}} | ||
| + | |||
| + | | label24 = Date approved | ||
| + | | data24 = {{{date_app|}}} | ||
| + | |||
| + | | label25 = Date of act | ||
| + | | data25 = {{{date_act|}}} | ||
| + | |||
| + | | label26 = Construction began | ||
| + | | data26 = {{{date_const|{{{date_cons|}}}}}} | ||
| + | |||
| + | | label27 = Date of first use | ||
| + | | data27 = {{{date_use|}}} | ||
| + | |||
| + | | label28 = Date completed | ||
| + | | data28 = {{{date_comp|}}} | ||
| + | |||
| + | | label29 = Date extended | ||
| + | | data29 = {{{date_ext|}}} | ||
| + | |||
| + | | label30 = Date closed | ||
| + | | data30 = {{{date_closed|}}} | ||
| + | |||
| + | | label31 = Date restored | ||
| + | | data31 = {{{date_rest|{{{date_restored|}}}}}} | ||
| + | |||
| + | | label32 = {{{xfield2}}} | ||
| + | | data32 = {{#if:{{{xfield2|}}}|{{{xvalue2|}}}}} | ||
| + | |||
| + | | header33 = {{#if:{{{direction|}}}{{{start|{{{start_point|}}}}}}{{{end|{{{end_point|}}}}}}{{{begin_coord|}}}{{{end_coord|}}}{{{branch|}}}{{{branch_of|}}}{{{join|{{{connects_to|}}}}}}{{{xvalue3|}}}|Geography}} | ||
| + | |||
| + | | label34 = Direction | ||
| + | | data34 = {{{direction|}}} | ||
| + | |||
| + | | label35 = Start point | ||
| + | | data35 = {{#if: {{{start|{{{start_point|}}}}}} | ||
| + | |{{br separated entries | ||
| + | |1 = {{{start|{{{start_point}}}}}} | ||
| + | |2 = {{#if: {{{o_start|}}}|(originally {{{o_start}}})}} | ||
| + | |3 = {{#if: {{{start_note|}}}|({{{start_note}}})}} | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | | label36 = End point | ||
| + | | data36 = {{#if: {{{end|{{{end_point|}}}}}} | ||
| + | |{{br separated entries | ||
| + | |1 = {{{end|{{{end_point}}}}}} | ||
| + | |2 = {{#if: {{{o_end|}}}|(originally {{{o_end}}})}} | ||
| + | |3 = {{#if: {{{end_note|}}}|({{{end_note}}})}} | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | | label37 = Beginning [[Geographic coordinate system|coordinates]] | ||
| + | | data37 = {{{begin_coord|}}} | ||
| + | |||
| + | | label38 = Ending [[Geographic coordinate system|coordinates]] | ||
| + | | data38 = {{{end_coord|}}} | ||
| + | |||
| + | | label39 = Branch(es) | ||
| + | | data39 = {{{branch|}}} | ||
| − | | | + | | label40 = Branch of |
| − | | | + | | data40 = {{{branch_of|}}} |
| − | | | + | | label41 = Connects to |
| − | | | + | | data41 = {{{join|{{{connects_to|}}}}}} |
| − | | | + | | label42 = {{{xfield3}}} |
| − | | | + | | data42 = {{#if:{{{xfield3|}}}|{{{xvalue3|}}}}} |
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 17:32, 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. |