Template talk:New York Times topic

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:NYTtopic)

Edit request on 29 August 2012[edit]

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)[reply]

Done Callanecc (talkcontribslogs) 08:01, 3 September 2012 (UTC)[reply]

Template-protected edit request on 5 December 2016[edit]

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)[reply]

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"? — Martin (MSGJ · talk) 08:45, 5 December 2016 (UTC)[reply]
@MSGJ: Please make a version that does this, at Template:NYTtopic/sandbox for testing. This will need to be tested, preferably using actual cites in extant articles.  — SMcCandlish ¢ ≽ʌⱷ҅ʌ≼  09:05, 5 December 2016 (UTC)[reply]
Did you intend to ping me? I was responding to the edit request. — Martin (MSGJ · talk) 09:09, 5 December 2016 (UTC)[reply]

The topic link

should be

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)[reply]

Having the template translate parameters intended for old format NYT links (that begin with http://topics.nytimes.com/top/reference/timestopics/) to construct URLs in the new format (that begin with https://www.nytimes.com/topic/) may not be easy. In the previous example, the old format URL contains newenglandpatriots and the new format URL contains new-england-patriots 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)[reply]

Name of template[edit]

Would anyone mind if we renamed this template to "New York Times topic"? It would make the purpose of the template clearer. — Martin (MSGJ · talk) 09:09, 5 December 2016 (UTC)[reply]

 Done — Martin (MSGJ · talk) 11:49, 6 December 2016 (UTC)[reply]

Would it be useful for the template to generate an HTTPS link?[edit]

As of this writing, the template generates a link with an HTTP URL. For example, {{NYTtopic|people/a/louis_armstrong}} 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:

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

Edit request: Delete quotation marks[edit]

@MSGJ, The Wordsmith, and Pigsonthewing: 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 {{Charlie Rose view}}, {{C-SPAN}}, and {{JPosttopic}}. (Yes, I just made the same request for {{Guardian topic}}.) —DocWatson42 (talk) 08:18, 14 February 2020 (UTC)[reply]

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)[reply]