Jump to content

Template:Infobox street: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Change span class=xxx to div to fix Linter div-span-flip error.
Only call when needed
 
(28 intermediate revisions by 13 users not shown)
Line 8: Line 8:
| above = {{{marker_image|}}}
| above = {{{marker_image|}}}


| subheader = {{#if:{{{native_name|}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}}}">{{{native_name}}}</div>}}
| subheader = {{if empty|{{{alternate_name|}}}|{{{other_name|}}}}}
| subheaderclass = nickname
| subheader2 = {{{alternate_name|}}}
| subheader2class = nickname


| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}}
Line 17: Line 16:
| {{#if:{{{coordinates|}}}|{{Location map|{{{map_type}}}
| {{#if:{{{coordinates|}}}|{{Location map|{{{map_type}}}
| coordinates = {{{coordinates|}}}
| coordinates = {{{coordinates|}}}
| width = {{{map_size|220}}}
| width = {{if empty|{{{map_size|}}}|220}}
| float = center
| float = center
| border = infobox
| border = infobox
| caption = {{{map_caption|Shown within {{#invoke:Location map|data|{{{map_type}}}|name}}}}}
| caption = {{{map_caption|Shown within {{#invoke:Location map|data|{{{map_type}}}|name}}}}}
}}}}
}}}}
| {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}|{{{map_caption|}}}}}
| {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|{{{map|}}}}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}|{{{map_caption|}}}}}
}}
}}
| caption2 = {{#if:{{{map_type|}}}||{{{map_caption|}}}}}
| caption2 = {{#if:{{{map_type|}}}||{{{map_caption|}}}}}


| label1 = Other name(s)
| class1 = nickname
| label1 = Native name
| data1 = {{{other_name|}}}
| data1 = {{native name checker|{{{native_name|}}}}}
| class1 = nickname


| label2 = Former name(s)
| label2 = Former name(s)
Line 52: Line 51:


| label8 = Length
| label8 = Length
| data8 = {{#if:{{{length|}}}|{{{length|}}}|{{#if:{{{length_mi|}}}{{{length_km|}}}|{{Infobox street/meta/length|{{#if:{{{length_mi|}}}|mi|km}}|length={{#if:{{{length_mi|}}}|{{{length_mi|}}}|{{{length_km|}}}}}|length_ref={{{length_ref|}}}}}|}}{{#if:{{{length_m|}}}{{{length_ft|}}}|{{Infobox street/meta/length|{{#if:{{{length_ft|}}}|ft|m}}|length={{#if:{{{length_ft|}}}|{{{length_ft|}}}|{{{length_m|}}}}}|length_ref={{{length_ref|}}}}}|}}}}{{#if:{{{length_notes|}}}|<br/><small>{{{length_notes}}}</small>|}}
| data8 = {{if empty|{{{length|}}}|{{convinfobox|{{{length_mi|}}}|mi|{{{length_km|}}}|km}}|{{convinfobox|{{{length_m|}}}|m|{{{length_ft|}}}|ft}}}}{{#if:{{{length|}}}{{{length_mi|}}}{{{length_km|}}}{{{length_m|}}}{{{length_ft|}}}|{{{length_ref|}}}{{#if:{{{length_notes|}}}|<br/>{{{length_notes}}} }} }}


| label9 = Width
| label9 = Width
Line 58: Line 57:


| label10 = Area
| label10 = Area
| data10 = {{{surface_area|{{{area|}}}}}}
| data10 = {{if empty|{{{surface_area|}}}|{{{area|}}}}}


|label11 = {{#ifeq:{{{country|}}}|AUS|[[Route number#Australia{{!}}Allocation]]|Component<br />highways}}
|label11 = {{#ifeq:{{{country|}}}|AUS|[[Route number#Australia{{!}}Allocation]]|Component<br />highways}}
Line 77: Line 76:
| class22 = locality
| class22 = locality


| label23 = [[Arrondissements of Paris|Arrondissement]]
| label23 = [[Municipal arrondissements of France|Arrondissement]]
| data23 = {{{arrondissement|}}}
| data23 = {{{arrondissement|}}}


| label24 = [[Quarters of Paris|Quarter]]
| label24 = [[Quarter (urban subdivision)|Quarter]]
| data24 = {{{quarter|}}}
| data24 = {{{quarter|}}}


| label25 = Postal code
| label25 = {{if empty|{{{postal_code_type|}}}|Postal code}}
| data25 = {{{postal_code|}}}
| data25 = {{{postal_code|}}}
| class25 = postal-code
| class25 = postal-code


| label26 = Nearest {{#if:{{{metro_system|}}}|{{{metro_system}}}|metro}} station
| label26 = Nearest {{if empty|{{{metro_system|}}}|metro}} station
| data26 = {{{metro|}}}
| data26 = {{{metro|}}}


| label27 = Coordinates
| label27 = Coordinates
| data27 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}} }}
| data27 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}} }}

| label28 = {{if empty|{{{grid_name|}}}|Grid&nbsp;position}}
| data28 = {{{grid_position|}}}


<!-- MAJOR JUNCTIONS -->
<!-- MAJOR JUNCTIONS -->
Line 128: Line 130:
| data63 = {{{completion_date|}}}
| data63 = {{{completion_date|}}}


| label64 = {{#if:{{{inauguration_label|}}}|{{{inauguration_label}}}|Inauguration}}
| label64 = {{if empty|{{{inauguration_label|}}}|Inauguration}}
| data64 = {{{inauguration_date|}}}
| data64 = {{{inauguration_date|}}}


Line 134: Line 136:
| data65 = {{{demolition_date|}}}
| data65 = {{{demolition_date|}}}


<!-- CONSTRUCTION -->
<!-- OTHER -->
| header70 = {{#if:{{{known_for|}}}{{{status|}}}{{{designer|}}}{{{website|}}}|Other}}
| header70 = {{#if:{{{known_for|}}}{{{status|}}}{{{designer|}}}{{{website|}}}|Other}}


Line 148: Line 150:
| label74 = Website
| label74 = Website
| data74 = {{{website|}}}
| data74 = {{{website|}}}

| rowstyle98 = width:100%; background:none; border-collapse:collapse
| data98 = {{#if:{{{browse|}}}|{{#invoke:Road data/browsetable|browsetable|{{{browse}}}}}}}


<!-- EMBEDDED -->
<!-- EMBEDDED -->
Line 153: Line 158:


}}{{#if:{{{arrondissement|}}}{{{quarter|}}}|[[Category:Pages using infobox street with Paris-specific parameters]]
}}{{#if:{{{arrondissement|}}}{{{quarter|}}}|[[Category:Pages using infobox street with Paris-specific parameters]]
}}{{#ifeq:{{{dot_map_base_alt|¶}}}{{{dot_map_marker|¶}}}{{{dot_map_marker_size|¶}}}{{{dot_mapsize|¶}}}{{{dot_x|¶}}}{{{dot_y|¶}}}{{{image_dot_map|¶}}}|¶¶¶¶¶¶¶||[[Category:Pages using infobox street with unknown parameters|¶]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox street with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox street]] with unknown parameter "_VALUE_"|ignoreblank=y| addresses | allocation | alternate_name | area | arrondissement | caption | commissioning_date | completion_date | construction_start_date | coordinates | cost | country | demolition_date | designer | direction_a | direction_b | east | embed | embedded | former_names | image | image_alt | image_map | image_size | inauguration_date | inauguration_label | junction | known_for | length | length_ft | length_km | length_m | length_mi | length_notes | length_ref | location | main_contractor | maint | map_alt | map_caption | map_size | map_type | marker_image | metro | metro_system | name | namesake | native_name | native_name_lang | north | other_name | owner | part_of | postal_code | quarter | references | restrictions | south | status | surface_area | terminus_a | terminus_b | tourist | type | website | west | width }}<noinclude>
}}{{#ifeq:{{{dot_map_base_alt|¶}}}{{{dot_map_marker|¶}}}{{{dot_map_marker_size|¶}}}{{{dot_mapsize|¶}}}{{{dot_x|¶}}}{{{dot_y|¶}}}{{{image_dot_map|¶}}}|¶¶¶¶¶¶¶||[[Category:Pages using infobox street with unknown parameters|¶]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox street with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox street]] with unknown parameter "_VALUE_"|ignoreblank=y| addresses | allocation | alternate_name | area | arrondissement | browse | caption | commissioning_date | completion_date | construction_start_date | coordinates | cost | country | demolition_date | designer | direction_a | direction_b | east | embed | embedded | former_names | grid_name | grid_position | image | image_alt | image_map | image_size | inauguration_date | inauguration_label | junction | known_for | length | length_ft | length_km | length_m | length_mi | length_notes | length_ref | location | main_contractor | maint | map | map_alt | map_caption | map_size | map_type | marker_image | metro | metro_system | name | namesake | native_name | north | other_name | owner | part_of | postal_code | postal_code_type | quarter | references | restrictions | south | status | surface_area | terminus_a | terminus_b | tourist | type | website | west | width }}<noinclude>
{{Documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 23:02, 26 July 2024

Infobox street