Template talk:NRHPweekly

intention for development and usage of this template
What i envision is for the coding of this template to include a big table of actual dates of NRHP's so-called "weekly" announcements, and to provide the actually-used titles presented in each of those (which vary a bit), and to provide the actual URL of each announcement (because I think that the system of URLs used has not always been consistent, or might not be in the future, and then URLs couldn't be hard-coded, though I am not sure). Then editors could invoke this template including with use of a date argument, and then a proper specific reference will be displayed. Invalid announcement dates would display an error message and put the article into an error category, perhaps Category:NRHP announcement date invalid (currently a redlink). --Doncram (talk) 06:46, 22 September 2019 (UTC)

And I hope that NRHP editors who are using a new weekly announcements page to add info to the system of county/city lists of NRHPs, will go along with adding the relevant reference for that date, i.e. to insert something like if they were adding info from the May 31, 2019 NRHP announcements page.

Temporarily, I also see usage of NRHPweekly without any date argument as a placeholder way of indicating that an unspecified weekly announcment page was believed to be the source. And any article where this is done are put into an error category, Category:NRHPweekly errors, which right now has 23 (a hard-coded-here number that will not update) members needing to be fixed. --Doncram (talk) 06:58, 22 September 2019 (UTC)

Code available for development of this template
There was some code developed back in 2013 by an editor no longer involved in the project (with whom i used to collaborate, but who pledged not to return until I, doncram, would agree to quit, argh), which could help develop this template. Was for exactly the purpose of this template, to generate a reference to the proper Weekly list, given a date. It was apparently working for many/all(?) dates after January 1, 1983; i think it properly exploited/depended upon regularity in the NPS pages. I just saw announcement of the test coding being available back then, at Template talk:NRISref.

I think this version was the most complete(? it differs a bit from previous few versions there). The code involves if-then expressions and so on, and is a bit involved. Here is a complete copy of that code:

--Doncram (talk) 02:54, 22 September 2019 (UTC)

Hmm, I now notice that template:NRHP Weekly List exists. It was created in 2013-2014, and may implement the above code, though the goal is for it to make a guess for a weekly announcement that applies, based off the date given. An edit summary states "create template to output best guess for NRHP weekly list link given a listing date as input". I am not sure if that guessing is acceptable, actually I think it is not, because some listings only are announced many months/announcements later (as happened for several sites covered in Camino Real in New Mexico now, and in a few cases are not announced at all (as happened for one case there). These examples were covered at wt:NRHP.  I don't like guessing.  So I prefer for this template to be developed according to my stated intention in the now-first discussion section above, instead.

By the way, and hopefully not confusing matters, I created template:NRHP weekly and template:NRHP Weekly to redirect to this template template:NRHPweekly. See some related discussion at template talk:NRISref. --Doncram (talk) 06:37, 22 September 2019 (UTC)