intention for development and usage of this template

edit

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)Reply

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 {{NRHPweekly|date=2019-05-31}} 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)Reply

Code available for development of this template

edit

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#Automatic link to weekly listings.

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:

{{#ifexpr:{{#time:Ymd|{{{1|{{Date}} }}} }} > 19960219| {{#ifexpr:{{#time:Ymd|{{{1|{{Date}} }}} }} > 19991227| [http://www.nps.gov/history/nr/listings/{{#time:Ymd|{{{1|{{Date}} }}} + {{#switch:{{#time:D|{{{1|{{Date}} }}} }}|Sat=13|Sun=12|Mon=11|Tue=10|Wed=9|Thu=8|Fri=7}} days}}.htm Weekly List of Actions Taken on Properties: {{#time:m/d/y|{{{1|{{Date}} }}} {{#switch:{{#time:D|{{{1|{{Date}} }}} }}|Sat=+2|Sun=+1|Mon=+0|Tue=-1|Wed=-2|Thu=-3|Fri=-4}} days}}–{{#time:m/d/y|{{{1|{{Date}} }}} + {{#switch:{{#time:D|{{{1|{{Date}} }}} }}|Sat=6|Sun=5|Mon=4|Tue=3|Wed=2|Thu=1|Fri=0}} days}}] | [http://www.nps.gov/history/nr/listings/{{#time:ymd|{{{1|{{Date}} }}} + {{#switch:{{#time:D|{{{1|{{Date}} }}} }}|Sat=13|Sun=12|Mon=11|Tue=10|Wed=9|Thu=8|Fri=7}} days}}.htm Weekly List of Actions Taken on Properties: {{#time:m/d/y|{{{1|{{Date}} }}} {{#switch:{{#time:D|{{{1|{{Date}} }}} }}|Sat=+2|Sun=+1|Mon=+0|Tue=-1|Wed=-2|Thu=-3|Fri=-4}} days}}–{{#time:m/d/y|{{{1|{{Date}} }}} + {{#switch:{{#time:D|{{{1|{{Date}} }}} }}|Sat=6|Sun=5|Mon=4|Tue=3|Wed=2|Thu=1|Fri=0}} days}}] }} | {{#ifexpr:{{#time:Ymd|{{{1|{{Date}} }}} }} > 19830101| [http://www.nps.gov/history/nr/listings/Weekly_Register_List_{{#time:Y|{{{1|{{Date}} }}} + 6 days }}.pdf Weekly List of Actions Taken on Properties: {{#time:Y|{{{1|{{Date}} }}} + 6 days }}] }} }}

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

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#Tortugas Pueblo Fiesta of Our Lady of Guadalupe, is it listed?. 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)Reply