Difference between revisions of "Template:Infobox canal"
Jump to navigation
Jump to search
(IW: eo) |
imported>Andrybak (link to Draft (hull)) |
||
| (37 intermediate revisions by 9 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{infobox | |
| − | | | + | | bodyclass = vcard |
| − | + | | aboveclass = fn org | |
| − | | | + | | abovestyle = font-size: larger; background-color: #CEDEFF |
| − | {{# | + | | above = {{{name|{{PAGENAMEBASE}}}}} |
| − | {{ | + | |
| − | | | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=288px|alt={{{alt|}}}}} |
| − | {{#if: {{{ | + | | caption = {{{image_caption|}}} |
| − | {{ | + | |
| − | {{ | + | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}}} |
| + | | caption2 = {{{map_caption|}}} | ||
| + | |||
| + | | image3 = {{#if:{{{pushpin_map|}}}|{{location map|{{{pushpin_map|}}} | ||
| + | |border =infobox | ||
| + | |alt ={{{pushpin_map_alt|}}} | ||
| + | |float =center | ||
| + | |width ={{{pushpin_map_size|}}} | ||
| + | |coordinates ={{{coordinates|}}} | ||
| + | |relief ={{{pushpin_map_relief|}}} | ||
| + | |caption ={{{pushpin_map_caption|}}} }}}} | ||
| + | |||
| + | | headerstyle = background-color: #CEDEFF | ||
| + | |||
| + | | label1 = Location | ||
| + | | data1 = {{{location|}}} | ||
| + | | label2 = Country | ||
| + | | data2 = {{{country|}}} | ||
| + | | label3 = Coordinates | ||
| + | | data3 = {{{coordinates|}}} | ||
| + | |||
| + | | header4 = {{#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|}}}{{{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|}}}{{{xvalue1|}}}|Specifications}} | ||
| + | |||
| + | | label5 = Length | ||
| + | | data5 = {{#if: {{{length_mi|}}}{{{length_km|}}} | ||
| + | |{{br separated entries | ||
| + | |1 = {{#if:{{{length_km|}}} | ||
| + | | {{convert|{{{length_km}}}|km|mi|abbr=in}} | ||
| + | | {{convert|{{{length_mi|}}}|mi|km}} | ||
| + | }} | ||
| + | |2 = {{#if: {{{original_length_km|}}} | ||
| + | |(originally {{convert|{{{original_length_km}}}|km|mi|abbr=on|disp=or}}) | ||
| + | |{{#if: {{{original_length_mi|}}} | ||
| + | |(originally {{convert|{{{original_length_mi}}}|mi|km|abbr=on|disp=or}}) | ||
| + | }} }} | ||
| + | |3 = {{#if: {{{length_note|}}}|({{{length_note}}})}} | ||
| + | }} | ||
| + | |{{{canal_length|}}} | ||
}} | }} | ||
| − | | | + | |
| − | {{#if: {{{ | + | | label6 = Lock length |
| − | {{ | + | | data6 = {{#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: {{{original_lock_length_km|}}} | ||
| + | |(originally {{convert|{{{original_lock_length_km}}}|km|mi|abbr=on|disp=or}}) | ||
| + | |{{#if: {{{original_lock_length_mi|}}} | ||
| + | |(originally {{convert|{{{original_lock_length_mi}}}|mi|km|abbr=on|disp=or}}) | ||
| + | }} }} | ||
| + | |3 = {{#if: {{{lock_length_note|}}}|({{{lock_length_note}}})}} | ||
| + | }} | ||
| + | |{{{lock_length|}}} | ||
}} | }} | ||
| − | | | + | |
| − | {{#if: {{{ | + | | label7 = Lock width |
| − | {{ | + | | data7 = {{#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: {{{original_lock_width_m|}}} | ||
| + | |(originally {{convert|{{{original_lock_width_m}}}|m|ft|abbr=on|disp=or}}) | ||
| + | |{{#if: {{{original_lock_width_ft|}}} | ||
| + | |(originally {{convert|{{{original_lock_width_ft}}}|ft|m|abbr=on|disp=or}}) | ||
| + | }} }} | ||
| + | |3 = {{#if: {{{lock_width_note|}}}|({{{lock_width_note}}})}} | ||
| + | }} | ||
| + | |{{{lock_width|}}} | ||
}} | }} | ||
| − | | | + | |
| − | {{#if: {{{ | + | | label8 = Maximum boat length |
| − | {{ | + | | data8 = {{#if: {{{len_ft|}}}{{{len_m|}}} |
| − | {{ | + | |{{br separated entries |
| + | |1 = {{#if:{{{len_m|}}} | ||
| + | |{{convert|{{{len_m}}}|m|ftin|abbr=on|sigfig=4}} | ||
| + | |{{convert|{{{len_ft|}}}|ft|{{{len_in|0}}}|in|m|abbr=on|sigfig=4}} | ||
| + | }} | ||
| + | |2 = {{#if: {{{original_boat_length_m|}}} | ||
| + | |(originally {{convert|{{{original_boat_length_m}}}|m|ftin|abbr=on|disp=or|sigfig=4}}) | ||
| + | |{{#if: {{{original_boat_length_ft|}}} | ||
| + | |(originally {{convert|{{{original_boat_length_ft|}}}|ft|{{{original_boat_length_in|0}}}|in|m|abbr=on|disp=or|sigfig=4}}) | ||
| + | }} }} | ||
| + | |3 = {{#if: {{{len_note|}}}|({{{len_note}}})}} | ||
| + | }} | ||
| + | | {{{max_boat_length|}}} | ||
}} | }} | ||
| − | | | + | |
| − | {{#if: {{{ | + | | label9 = [[Beam (nautical)|Maximum boat beam]] |
| − | {{ | + | | data9 = {{#if: {{{beam_ft|}}}{{{beam_m|}}} |
| − | {{ | + | |{{br separated entries |
| + | |1 = {{#if:{{{beam_m|}}} | ||
| + | |{{convert|{{{beam_m}}}|m|ftin|abbr=on|sigfig=3}} | ||
| + | |{{convert|{{{beam_ft|}}}|ft|{{{beam_in|0}}}|in|m|abbr=on|sigfig=3}} | ||
| + | }} | ||
| + | |2 = {{#if: {{{original_beam_m|}}} | ||
| + | |(originally {{convert|{{{original_beam_m}}}|m|ftin|abbr=on|disp=or|sigfig=3}}) | ||
| + | |{{#if: {{{original_beam_ft|}}} | ||
| + | |(originally {{convert|{{{original_beam_ft|}}}|ft|{{{original_beam_in|0}}}|in|m|abbr=on|disp=or|sigfig=3}}) | ||
| + | }} }} | ||
| + | |3 = {{#if: {{{beam_note|}}}|({{{beam_note}}})}} | ||
| + | }} | ||
| + | | {{{max_boat_beam|}}} | ||
}} | }} | ||
| − | | | + | |
| − | {{#if: {{{ | + | |
| − | {{ | + | | label10 = [[Draft (hull)|Maximum boat draft]] |
| − | {{ | + | | data10 = {{{max_boat_draft|}}} |
| + | |||
| + | | label11 = Minimum boat draft | ||
| + | | data11 = {{{min_boat_draft|}}} | ||
| + | |||
| + | | label12 = Minimum boat air draft | ||
| + | | data12 = {{{min_boat_air_draft|}}} | ||
| + | |||
| + | | label13 = Locks | ||
| + | | data13 = {{#if: {{{locks|}}} | ||
| + | |{{br separated entries | ||
| + | |1 = {{{locks}}} | ||
| + | |2 = {{#if: {{{original_num_locks|}}}|(originally {{{original_num_locks}}})}} | ||
| + | |3 = {{#if: {{{lock_note|}}}|({{{lock_note}}})}} | ||
| + | }} | ||
| + | |{{#if:{{{current_num_locks|}}} | ||
| + | |{{{current_num_locks|}}} {{#if:{{{original_num_locks|}}}|(originally {{{original_num_locks}}})}} | ||
| + | }} | ||
}} | }} | ||
| − | |- | + | |
| − | {{#if: {{{ | + | | label14 = Original number of locks<!-- suppressed if merged with field above --> |
| − | {{ | + | | data14 = {{#if:{{{current_num_locks|}}}||{{{original_num_locks|}}}}} |
| − | {{ | + | |
| + | | label15 = Maximum height above sea level | ||
| + | | data15 = {{#if: {{{elev_ft|}}}{{{elev_m|}}} | ||
| + | |{{br separated entries | ||
| + | |1 = {{#if:{{{elev_m|}}} | ||
| + | | {{convert|{{{elev_m}}}|m|ft|abbr=on}} | ||
| + | | {{convert|{{{elev_ft|}}}|ft|m|abbr=on}} | ||
| + | }} | ||
| + | |2 = {{#if: {{{elev_note|}}}|({{{elev_note}}})}} | ||
| + | }} | ||
| + | | {{{max_elev|}}} | ||
}} | }} | ||
| − | | | + | |
| − | {{#if: {{{ | + | | label16 = Minimum height above sea level |
| − | {{ | + | | data16 = {{#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|}}} | ||
}} | }} | ||
| − | | | + | |
| − | {{#if: {{{ | + | | label17 = Total rise |
| − | {{ | + | | data17 = {{{total_rise|}}} |
| − | {{ | + | |
| + | | label18 = Status | ||
| + | | data18 = {{{status|}}} | ||
| + | |||
| + | | label19 = Navigation authority | ||
| + | | data19 = {{{navigation_authority|}}} | ||
| + | |||
| + | | label20 = {{{xfield1}}} | ||
| + | | data20 = {{{xvalue1|}}} | ||
| + | |||
| + | | header21 = {{#if:{{{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|}}}|History}} | ||
| + | |||
| + | | label22 = Former names | ||
| + | | data22 = {{{former_names|}}} | ||
| + | |||
| + | | label23 = Modern name | ||
| + | | data23 = {{{modern_name|}}} | ||
| + | |||
| + | | label24 = Current owner | ||
| + | | data24 = {{{present_owner|}}} | ||
| + | |||
| + | | label25 = Original owner | ||
| + | | data25 = {{{original_owner|}}} | ||
| + | |||
| + | | label26 = Principal engineer | ||
| + | | data26 = {{{engineer|}}} | ||
| + | |||
| + | | label27 = Other engineer(s) | ||
| + | | data27 = {{{other_engineer|}}} | ||
| + | |||
| + | | label28 = Date approved | ||
| + | | data28 = {{{date_approved|}}} | ||
| + | |||
| + | | label29 = Date of act | ||
| + | | data29 = {{{date_act|}}} | ||
| + | |||
| + | | label30 = Construction began | ||
| + | | data30 = {{{date_began|}}} | ||
| + | |||
| + | | label31 = Date of first use | ||
| + | | data31 = {{{date_use|}}} | ||
| + | |||
| + | | label32 = Date completed | ||
| + | | data32 = {{{date_completed|}}} | ||
| + | |||
| + | | label33 = Date extended | ||
| + | | data33 = {{{date_extended|}}} | ||
| + | |||
| + | | label34 = Date closed | ||
| + | | data34 = {{{date_closed|}}} | ||
| + | |||
| + | | label35 = Date restored | ||
| + | | data35 = {{{date_restored|}}} | ||
| + | |||
| + | | label36 = {{{xfield2}}} | ||
| + | | data36 = {{{xvalue2|}}} | ||
| + | |||
| + | | header37 = {{#if:{{{direction|}}}{{{start_point|}}}{{{end_point|}}}{{{begin_coord|}}}{{{end_coord|}}}{{{branch|}}}{{{branch_of|}}}{{{connects_to|}}}{{{xvalue3|}}}|Geography}} | ||
| + | |||
| + | | label38 = Direction | ||
| + | | data38 = {{{direction|}}} | ||
| + | |||
| + | | label39 = Start point | ||
| + | | data39 = {{#if: {{{start_point|}}} | ||
| + | |{{br separated entries | ||
| + | |1 = {{{start_point}}} | ||
| + | |2 = {{#if: {{{original_start|}}}|(originally {{{original_start}}})}} | ||
| + | |3 = {{#if: {{{start_note|}}}|({{{start_note}}})}} | ||
| + | }} | ||
}} | }} | ||
| − | | | + | |
| − | {{#if: {{{ | + | | label40 = End point |
| − | {{ | + | | data40 = {{#if: {{{end_point|}}} |
| − | {{ | + | |{{br separated entries |
| + | |1 = {{{end_point}}} | ||
| + | |2 = {{#if: {{{original_end|}}}|(originally {{{original_end}}})}} | ||
| + | |3 = {{#if: {{{end_note|}}}|({{{end_note}}})}} | ||
| + | }} | ||
}} | }} | ||
| − | + | ||
| − | + | | label41 = Beginning [[Geographic coordinate system|coordinates]] | |
| − | { | + | | data41 = {{{begin_coord|}}} |
| − | {{ | + | |
| − | + | | label42 = Ending [[Geographic coordinate system|coordinates]] | |
| − | | | + | | data42 = {{{end_coord|}}} |
| − | {{ | + | |
| − | + | | label43 = Branch(es) | |
| − | + | | data43 = {{{branch|}}} | |
| − | + | ||
| − | | | + | | label44 = Branch of |
| − | {{ | + | | data44 = {{{branch_of|}}} |
| − | + | ||
| − | + | | label45 = Connects to | |
| − | {{ | + | | data45 = {{{connects_to|}}} |
| − | + | ||
| − | + | | label46 = {{{xfield3}}} | |
| − | + | | data46 = {{{xvalue3|}}} | |
| − | }} | + | |
| − | + | ||
| − | {{# | + | | header47 = {{{module|}}} |
| − | {{ | + | |
| − | + | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox canal with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox canal]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | beam_ft | beam_in | beam_m | beam_note | begin_coord | branch | branch_of | canal_length | connects_to | coordinates | country | current_num_locks | date_act | date_approved | date_began | date_closed | date_completed | date_extended | date_restored | date_use | direction | elev_ft | elev_m | elev_note | end_coord | end_note | end_point | engineer | former_names | image | image_caption | image_size | len_ft | len_in | len_m | len_note | length_km | length_mi | length_note | location | lock_length | lock_length_km | lock_length_mi | lock_length_note | lock_note | lock_width | lock_width_ft | lock_width_m | lock_width_note | locks | map | map_alt | map_caption | map_size | max_boat_beam | max_boat_draft | max_boat_length | max_elev | min_air_boat_draft | min_boat_air_draft | min_boat_draft | min_elev | min_elev_ft | min_elev_m | min_elev_note | modern_name | module | name | navigation_authority | original_beam_ft | original_beam_in | original_beam_m | original_boat_length_ft | original_boat_length_in | original_boat_length_m | original_end | original_length_km | original_length_mi | original_lock_length_km | original_lock_length_mi | original_lock_width_ft | original_lock_width_m | original_num_locks | original_owner | original_start | other_engineer | present_owner | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_map_relief | pushpin_map_size | start_note | start_point | status | total_rise | xfield1 | xfield2 | xfield3 | xvalue1 | xvalue2 | xvalue3 }}<noinclude> | |
| − | + | {{documentation}} | |
| − | + | </noinclude> | |
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 15:32, 15 April 2020
| Template:PAGENAMEBASE |
|---|
[[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. |