Wikipedia talk:WikiProject U.S. Roads/Redirects

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconU.S. Roads Project‑class
WikiProject iconThis page is within the scope of the U.S. Roads WikiProject, an attempt to build a comprehensive and detailed guide to state highways and other major roads in the United States. If you would like to participate, you can edit the article attached to this page, or visit the project page, where you can join the project and/or contribute to the discussion.
ProjectThis page does not require a rating on the project's quality scale.
 

Misnested tags, missing end tags, stripped tags[edit]

On 17 March 2021, Morriswa created Wikipedia:WikiProject U.S. Roads/Redirects/Alaska/Route list. From a discussion on that page's talk page, we know that she created it by copying markup from a subpage from some state/territory page, but she doesn't remember which one. This template is generating misnested tags and stripped tags lint errors. For example, in Wikipedia:WikiProject U.S. Roads/Redirects/Alaska, *{{/Route list|98}} expands to *{{Wikipedia:WikiProject U.S. Roads/Redirects/Alaska/Route list|98}}, which expands to

*<small>[[File:Alaska 98 shield.svg|25x20px]] </span>
<span>[[Alaska Route 98]] [[Route 98 (Alaska)]] [[Alaska State Highway 98]] [[Alaska State Route 98]]</span> [[List of highways numbered 98|disambiguation]]
</small>

If not for the asterisk, <small>...</small> would be OK, but because of the asterisk, the opening <small> is within a <li>...</li> generated by the asterisk, while the closing </small> is outside <li>...</li>. This can be fixed either by moving the <small> to start on the line after the file(s), or by removing all of the line breaks. The stripped </span> at the end of the first line is obvious in this case; the code will have to be rewritten to tighten the matching of opening and closing <span>...</span> tags. Similar problems exist for Wikipedia:WikiProject U.S. Roads/Redirects/Nebraska/Highway list and Wikipedia:WikiProject U.S. Roads/Redirects/Puerto Rico/Highway list. The only reason I know about these three "templates" is that they are called from other Wikipedia namespace "templates" listed at Lint errors: Multiple unclosed formatting tags. Someone who knows what's going on should be able to fix the Alaska route list "template", and once that is done, the fix should be propagated to related "templates" in this project. —Anomalocaris (talk) 00:46, 19 March 2021 (UTC)[reply]

Just in case, I will ping some of the more seasoned members of Wikipedia:WikiProject U.S. Roads for their help and expertise, since they are much better with this than I am: @Imzadi1979: @Fredddie: @Dough4872: @DanTD: Morriswa (Charlotte Allison) (talk) 01:01, 19 March 2021 (UTC)[reply]
I also think that commonality and a mutual uniformity for each of these pages should be used, with every level of highway covered: Interstate, U.S., state, county, etc. Morriswa (Charlotte Allison) (talk) 01:03, 19 March 2021 (UTC)[reply]