Jump to content

Template talk:Infobox road/name/USA

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Template-protected edit request on 31 October 2019

[edit]
|BL|BL 1957={{#switch:{{{state|}}}
 |AZ=State Business Route {{{route}}}
 |IA=Interstate {{{route}}} Business Loop
 |MI={{#switch: {{{route}}}
  |496= Capitol Loop
  |#default=Business Loop Interstate {{{route}}}
  }}
 |TX=Business Interstate {{{route}}}
 |#default=Interstate {{{route}}} Business
 }}
|BS|BS 1957={{#switch:{{{state|}}}
 |AZ=State Route {{{route}}} Spur
 |MI=Business Spur Interstate {{{route}}}
 |#default=Interstate {{{route}}} Business
 }}

I would like to add in some additions and/or changes to the Interstate Business Route and Interstate Business Spur terminology for Arizona and Texas.

Sources for ADOT Terminology:

  • "Short ADOT ATIS Nomenclature" (PDF). Arizona Department of Transportation. October 25, 2000. Retrieved August 6, 2019 – via Pima County Government GIS Services. {{cite journal}}: Cite journal requires |journal= (help)
  • "ATIS Nomenclature" (PDF). GPS Tools for Arc View. Arizona Department of Transportation. August 2, 2000. pp. 57 to 64.

— MatthewAnderson707 (talk|sandbox) 20:41, 31 October 2019 (UTC)[reply]

 Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. I'd also like to see it sandboxed to make sure it works as intended. Primefac (talk) 21:20, 31 October 2019 (UTC)|[reply]
@Primefac: Where would I be able to sandbox this, just out of curiosity? I can't find the sandbox page for this specific area of the template.
@Primefac: I understand what MatthewAnderson707 is trying to do, but it's not going to work. The |route-segment= and |loop-number= parameters aren't going to work without being passed through from the main template. –Fredddie 03:24, 1 November 2019 (UTC)[reply]
@Fredddie: That's a shame. Is there any way I could make it work?— MatthewAnderson707 (talk|sandbox) 04:58, 1 November 2019 (UTC)[reply]
Your best bet is to let it be generic and then use |name= for the outliers. –Fredddie 05:51, 1 November 2019 (UTC)[reply]
@Fredddie: Right. I modified my change request to remove the errored entries. Will the draft as shown above work?— MatthewAnderson707 (talk|sandbox) 06:22, 1 November 2019 (UTC)[reply]

Template-protected edit request on 1 November 2019

[edit]

I would like to request this section of the template be modified from this:

|US|US 1926|US 1948|US 1950|US 1961|US 1963|US 1971={{#switch:{{{state|}}}
 |MI={{#switch:{{{subtype|}}}
  |Alt=US Highway {{{route}}}A
  |#default={{#if:{{{subtype|}}}|{{#switch:{{{subtype}}}|Bus=Business|Byp=Bypass|Conn=Connector|Emerg=Emergency|Spur=Spur|Truck=Truck}} US Highway {{{route}}}|US Highway {{{route}}}}}
  }}
 |TX|WI={{#if:{{{subtype|}}}|{{#switch:{{{subtype}}}|Alt=Alternate|Bus=Business|Byp=Bypass|Conn=Connector|Emerg=Emergency|Spur=Spur|Truck=Truck}} US Highway {{{route}}}|US Highway {{{route}}}}}
 |CO|FL|GA|IA|LA|MN|ND|NE|OR|SD|WY=U.S. Highway {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
 |AR=U.S. Highway {{{route}}}{{Infobox road/meta/mask/subtype2|{{{subtype}}}|bus=B|spr=S|trk=T|city=C}}
 |#default={{#switch:{{{route}}}
  |8|55|131|141|151|161|218=U.S. Highway {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
  |#default=U.S. Route {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
  }}
 }}

To this:

|US|US 1926|US 1948|US 1950|US 1956|US 1960 EW|US 1960 NS|US 1961|US 1963|US 1971={{#switch:{{{state|}}}
 |AZ={{#switch:{{{subtype|}}}
  |Alt=U.S. Route {{{route}}}A
  |Temp=U.S. Route {{{route}}}T
  |Bus=U.S. Business Route {{{route}}}
  |#default={{#if:{{{subtype|}}}|U.S. Route {{{route}}} {{#switch:{{{subtype}}}|Spur=Spur|Truck=Truck}}|U.S. Route {{{route}}}}}
  }}
 |MI={{#switch:{{{subtype|}}}
  |Alt=US Highway {{{route}}}A
  |#default={{#if:{{{subtype|}}}|{{#switch:{{{subtype}}}|Bus=Business|Byp=Bypass|Conn=Connector|Emerg=Emergency|Spur=Spur|Truck=Truck}} US Highway {{{route}}}|US Highway {{{route}}}}}
  }}
 |TX|WI={{#if:{{{subtype|}}}|{{#switch:{{{subtype}}}|Alt=Alternate|Bus=Business|Byp=Bypass|Conn=Connector|Emerg=Emergency|Spur=Spur|Truck=Truck}} US Highway {{{route}}}|US Highway {{{route}}}}}
 |CO|FL|GA|IA|LA|MN|ND|NE|OR|SD|WY=U.S. Highway {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
 |AR=U.S. Highway {{{route}}}{{Infobox road/meta/mask/subtype2|{{{subtype}}}|bus=B|spr=S|trk=T|city=C}}
 |#default={{#switch:{{{route}}}
  |8|55|131|141|151|161|218=U.S. Highway {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
  |57|96|290={{#if:{{{subtype|}}}|{{#switch:{{{subtype}}}|Alt=Alternate|Bus=Business|Byp=Bypass|Conn=Connector|Emerg=Emergency|Spur=Spur|Truck=Truck}} US Highway {{{route}}}|US Highway {{{route}}}}}
  |#default=U.S. Route {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
  }}
 }}
|US-Hist=Historic U.S. Route {{{route}}}

I would also like to request the following section be changed from this:

|SH|SR|{{{state}}}|Route|M|K|U|SH-old|SR-old|{{{state}}}-old|Route-old|{{{state}}} 1920|{{{state}}} 1926|{{{state}}} 1927|{{{state}}} 1932|{{{state}}} 1934|{{{state}}} 1940|{{{state}}} 1945|{{{state}}} 1948|{{{state}}} 1950|{{{state}}} 1952|{{{state}}} 1955|{{{state}}} 1956|{{{state}}} 1957|{{{state}}} 1960|{{{state}}} 1961|{{{state}}} 1962|{{{state}}} 1963|{{{state}}} 1964|{{{state}}} 1966|{{{state}}} 1967|{{{state}}} 1968|{{{state}}} 1969|{{{state}}} 1970|{{{state}}} 1971|{{{state}}} 1973|{{{state}}} 1975|{{{state}}} 1978|{{{state}}} 1980|LA 1990|K 1926|K 1948|K 1962|K 1968|M-old|M 1919|M 1926|M 1948|AZ pre-1956|Toll|Both|Supp|Town|SRCR|BLSR|2state={{#switch:{{{state|}}}
 |AL|CA|GA|ME|NV|OH|QR|TN|UT|VA|WA=State Route {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
 |AZ=State {{#switch:{{{route}}}|101|202|303=Loop|#default=Route}} {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}

To this:

|SH|SR|{{{state}}}|Route|M|K|U|SH-old|SR-old|{{{state}}}-old|Route-old|{{{state}}} 1920|{{{state}}} 1926|{{{state}}} 1927|{{{state}}} 1932|{{{state}}} 1934|{{{state}}} 1940|{{{state}}} 1945|{{{state}}} 1948|{{{state}}} 1950|{{{state}}} 1952|{{{state}}} 1955|{{{state}}} 1956|{{{state}}} 1957|{{{state}}} 1960|{{{state}}} 1961|{{{state}}} 1962|{{{state}}} 1963|{{{state}}} 1964|{{{state}}} 1966|{{{state}}} 1967|{{{state}}} 1968|{{{state}}} 1969|{{{state}}} 1970|{{{state}}} 1971|{{{state}}} 1973|{{{state}}} 1975|{{{state}}} 1978|{{{state}}} 1980|{{{state}}} 1985|LA 1990|K 1926|K 1948|K 1962|K 1968|M-old|M 1919|M 1926|M 1948|SH-1917|SH-1935|AZ pre-1956|AZ 1960 NS|AZ 1960 EW|Toll|Both|Supp|Town|SRCR|BLSR|2state={{#switch:{{{state|}}}
 |AL|CA|GA|ME|NV|OH|QR|TN|UT|VA|WA=State Route {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
 |AZ={{#switch:{{{subtype|}}}
  |Alt=State Route {{{route}}}A
  |Loop=State Route {{{route}}}L<!--ADOT recognizes the Phoenix "Loops" and Loop subtype routes as two separate types of highway.-->
  |Temp=State Route {{{route}}}T
  |Bus=State Business Route {{{route}}}
  |#default=State {{#switch:{{{route}}}|101|202|303=Loop|#default=Route}} {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
  }}

Sources for ADOT Terminology:

@Trialpears: Absolutely. Can you please point me in the direction of the sandbox?
MatthewAnderson707, at Template:Infobox road/name/USA/sandbox. While it hasn't been created yet it's common practice to create it whenever you need to test something. Since this is a subtemplate you may need to update Template:Infobox road/sandbox to use your sandbox version, but I think it's taken care of in this case. Finally add a testcase at Template:Infobox_road/testcases/USA where your changes are used and check so it doesn't break any of the other testcases. ‑‑Trialpears (talk) 17:44, 1 November 2019 (UTC)[reply]
Trialpears I got my coding refined to something I believe will work. The only problem is I can't get the subtype parameter to work in the sandbox templates at all. Can you help please?— MatthewAnderson707 (talk|sandbox) 21:39, 1 November 2019 (UTC)[reply]
MatthewAnderson707, very sorry I didn't look at this more quickly. It seems like it has all been implemented now, correct? If not I will make sure to help you more quickly this time. ‑‑Trialpears (talk) 11:25, 4 November 2019 (UTC)[reply]
@Trialpears: It's fine. Thanks for helping me through this as much as you did. I was able to solve the sandbox issue. It works just fine now. Fredddie was able to implement most of the changes I made that were worth implementing. The testcases for the most part came through just fine.— MatthewAnderson707 (talk|sandbox) 23:05, 4 November 2019 (UTC)[reply]

Business Loop and Business Spur Additions/Modifications

[edit]

This is a modified part of an earlier request to work with only existing template parameters. I'm leaving New Mexico out of this because that would require extra additions/modifications to the main template.

Currently the BL/BS section looks like this:

|BL|BL 1957={{#switch:{{{state|}}}
 |IA=Interstate {{{route}}} Business Loop
 |MI={{#switch: {{{route}}}
  |496= Capitol Loop
  |#default=Business Loop Interstate {{{route}}}
  }}
 |#default=Interstate {{{route}}} business
 }}
|BS|BS 1957={{#switch:{{{state|}}}
 |MI=Business Spur Interstate {{{route}}}
 |#default=Interstate {{{route}}} Business
 }}

I would like to request the following additions:

|BL|BL 1957={{#switch:{{{state|}}}
 |AZ=State Business Route {{{route}}}
 |IA=Interstate {{{route}}} Business Loop
 |MI={{#switch: {{{route}}}
  |496= Capitol Loop
  |#default=Business Loop Interstate {{{route}}}
  }}
 |TX=Business Interstate {{{route}}}
 |#default=Interstate {{{route}}} Business
 }}
|BS|BS 1957={{#switch:{{{state|}}}
 |AZ=State Route {{{route}}} Spur
 |MI=Business Spur Interstate {{{route}}}
 |#default=Interstate {{{route}}} Business
 }}

Thanks.— MatthewAnderson707 (talk|sandbox) 16:09, 3 November 2019 (UTC)[reply]

Arizona State Route changes/additions

[edit]

I would like to request the following changes to the AZ parameter of SR section of the template from this:

 |AZ=State {{#switch:{{{route}}}|101|202|303=Loop|#default=Route}} {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}

To this:

 |AZ={{#switch:{{{subtype|}}}
  |Alt=State Route {{{route}}}A
  |Loop=State Route {{{route}}}L<!--ADOT recognizes the Phoenix "Loops" and Loop subtype routes as two separate types of highway.-->
  |Temp={{#switch:{{{route}}}
   |69=State Route T-69
   |#default=State Route {{{route}}}T
   }}
  |Bus=State Business Route {{{route}}}
  |#default=State {{#switch:{{{route}}}|101|202|303=Loop|#default=Route}} {{{route}}} {{Infobox road/meta/mask/subtype2|{{{subtype|}}}}}
 }}

— MatthewAnderson707 (talk|sandbox) 16:30, 3 November 2019 (UTC)[reply]