Template talk:New York Times topic

Edit request on 29 August 2012
Broken. See Milton Friedman for example. Add /index.html To the end of the generated url Also replace top/reference with topics/reference Example http://topics.nytimes.com/topics/reference/timestopics/people/*********/index.html

184.78.81.245 (talk) 14:53, 29 August 2012 (UTC)


 * Yes check.svg Done Callanecc (talk • contribs • logs) 08:01, 3 September 2012 (UTC)

Template-protected edit request on 5 December 2016
The instructions and the generated URL should be updated to match the format now used by nytimes.com.

For example, should be and should be Whywhenwhohow (talk) 07:28, 5 December 2016 (UTC)
 * http://topics.nytimes.com/top/reference/timestopics/people/r/susan_e_rice/index.html
 * http://www.nytimes.com/topic/person/susan-rice
 * http://topics.nytimes.com/top/reference/timestopics/organizations/t/taylor_paul_dance_co/index.html
 * http://www.nytimes.com/topic/organization/paul-taylor-dance-company
 * I see a slight problem. In the second example organizations becomes organization. So it would not be possible just to use the same parameter in the new format. How would the template know to trim off that final "s"? &mdash; Martin (MSGJ · talk) 08:45, 5 December 2016 (UTC)
 * Please make a version that does this, at Template:NYTtopic/sandbox for testing. This  need to be tested, preferably using actual cites in extant articles.  — SMcCandlish ☺ ☏ ¢ ≽ʌⱷ҅ᴥⱷʌ≼  09:05, 5 December 2016 (UTC)
 * Did you intend to ping me? I was responding to the edit request. &mdash; Martin (MSGJ · talk) 09:09, 5 December 2016 (UTC)

The topic link should be
 * http://topics.nytimes.com/top/reference/timestopics/news/sports/profootball/nationalfootballleague/newenglandpatriots/index.html
 * https://www.nytimes.com/topic/organization/new-england-patriots

The template has been broken for two years. Any thoughts on fixing it or creating a new one?

Whywhenwhohow (talk) 01:10, 29 October 2019 (UTC)
 * Having the template translate parameters intended for old format NYT links (that begin with ) to construct URLs in the new format (that begin with  ) may not be easy. In the previous example, the old format URL contains   and the new format URL contains   instead, among other things. In the new format URL, the team name contains dashes. Would the template have to know where to insert dashes into the given team name?
 * One possibility that comes to mind is for the template to take an additional optional parameter that indicates that the generated URL should be of the new format. If the parameter is omitted, then the template generates a URL of the old format. Furthermore, if additional new formats for NYT links arise in the future, it might be possible to have additional values that can be specified for the "link format" parameter in order to indicate the URL format for the generated link. --Elegie (talk) 07:16, 2 November 2019 (UTC)

Name of template
Would anyone mind if we renamed this template to "New York Times topic"? It would make the purpose of the template clearer. &mdash; Martin (MSGJ · talk) 09:09, 5 December 2016 (UTC)
 * ✅ &mdash; Martin (MSGJ · talk) 11:49, 6 December 2016 (UTC)

Would it be useful for the template to generate an HTTPS link?
As of this writing, the template generates a link with an HTTP URL. For example,  generates a link to http://topics.nytimes.com/top/reference/timestopics/people/a/louis_armstrong/index.html. Accessing the HTTP URL generates an HTTP 301 (Moved Permanently) redirect to an HTTPS URL. For instance, accessing http://topics.nytimes.com/top/reference/timestopics/people/a/louis_armstrong/index.html generates a 301 redirect to https://www.nytimes.com/topic/person/louis-armstrong.

From what it appears, accessing the initial HTTP URL with HTTPS instead of HTTP generates the same result. For example, accessing https://topics.nytimes.com/top/reference/timestopics/people/a/louis_armstrong/index.html generates a 301 redirect to https://www.nytimes.com/topic/person/louis-armstrong. From this, it would seem that the template could be changed to generate the same link that it does now, but with https:// instead of http://. Such a change would provide increased privacy and security for users, and it would not require changing the pages where the template is currently used.

Other test cases:
 * generates a link with the URL http://topics.nytimes.com/top/reference/timestopics/people/w/alice_walker/index.html, which when accessed generates a 301 redirect to https://www.nytimes.com/topic/person/alice-walker.
 * generates a link with the URL http://topics.nytimes.com/top/reference/timestopics/organizations/n/new_york_stock_exchange/index.html, which when accessed generates a 301 redirect to https://www.nytimes.com/topic/organization/new-york-stock-exchange.

Any thoughts from others? --Elegie (talk) 04:51, 28 June 2018 (UTC)

Edit request: Delete quotation marks
Past editors: Greetings and felicitations. Would someone please be so kind as to remove quotation marks from the template output? "[Name] collected news and commentary" is not a title, but a description. See for example the similar templates, , and. (Yes, I just made the same request for .) —DocWatson42 (talk) 08:18, 14 February 2020 (UTC)


 * No. The quote marks wrap the title of the web age to which we link, and are applied by the underlying Cite web template, as with any web page to which it links. Andy Mabbett ( Pigsonthewing ); Talk to Andy; Andy's edits 10:44, 14 February 2020 (UTC)