This template is within the scope of WikiProject United States, a collaborative effort to improve the coverage of topics relating to the United States of America on Wikipedia. If you would like to participate, please visit the project page, where you can join the ongoing discussions.
This template is within the scope of WikiProject U.S. Congress, a collaborative effort to improve the coverage of the United States Congress on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.U.S. CongressWikipedia:WikiProject U.S. CongressTemplate:WikiProject U.S. CongressU.S. Congress articles
@Johnuniq, this template was already encountering an error on that page, but it just didn't have a way to show it until I implemented error detection in that edit. The issue was that it was using "United States Virgin Islands" as the input, but this template wasn't set up to recognize that, only things like "U.S. Virgin Islands". I've fixed that now, and I added includeonly tags to prevent the error from displaying on this page. Using #default in the code should work just the same as using {{{1}}}, so it's just a matter of what looks cleanest in the code; feel free to switch it if #default is your preference. And definitely feel free to bring up if there are any other errors this change brings to light.
As a sidenote, Template:US State Abbrev is set up to handle errors by just spitting back out the input. I didn't change that for fear of breaking something that depends on it, but it might be worthwhile to set up a tracking category if anyone is interested. Cheers, {{u|Sdkb}}talk06:33, 31 October 2021 (UTC)Reply