Wikipedia talk:WikiProject U.S. Roads/Redirects/Alaska/Route list

Misnested tags
Morriswa: You may already know about this, but this template is generating misnested tags and stripped tags lint errors. For example, in WikiProject U.S. Roads/Redirects/Alaska,  expands to , which expands to Alaska Route 98 Route 98 (Alaska) Alaska State Highway 98 Alaska State Route 98 disambiguation
 * Alaska 98 shield.svg

If not for the asterisk,  would be OK, but because of the asterisk, the opening is within a  generated by the asterisk, while the closing  is outside . This can be fixed either by moving the to start on the line after the file(s), or by removing all of the line breaks. The stripped 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  tags. —Anomalocaris (talk) 23:04, 18 March 2021 (UTC)

And, of course, whatever fix you do here should be propagated to similar "Templates" in the Wikipedia namespace you have created. —Anomalocaris (talk) 23:11, 18 March 2021 (UTC)
 * Did I mess anything up? I know nothing about Lint (or is it Linter?). I just used code from other state pages and modified it for the state in question. I think I did something weird, since each entry (when it extrapolates out) should be on one line, not two. Morriswa (Charlotte Allison) (talk) 23:13, 18 March 2021 (UTC)

Morriswa: Thank you for replying so quickly! I didn't guess that you simply copied code from other "templates" created by other Wikipedia editors. Which template was the source of this markup? Just let me know that and I'll take it from there. As for lint, yes, this is a real issue in Wikipedia. Some lint errors don't matter very much, but markup with misnested tags might not do what you expect. For example, the markup

has a missing end tag for the opening inside the wikilink and a stripped closing  at the end. Perhaps the author actually intended one of these:

By careful placement of tags, one avoids lint errors and there is no doubt what one intended. —Anomalocaris (talk) 23:54, 18 March 2021 (UTC)
 * Most of the "WikiProject U.S. Roads/Redirects" pages don't actually use templates. They call the code on a subpage from that state/territory. I just copied the code from one of them. I don't remember which. All I know is that every page should have some form of uniformity and commonality. Morriswa (Charlotte Allison) (talk) 00:09, 19 March 2021 (UTC)