ਫਰਮਾ:New York Times topic
{{{name}}} collected news and commentary at The New York Times
ਇਹ ਫਰਮਾ ਹੇਠ ਲਿਖੇ ਲੂਆ ਨੂੰ ਵਰਤਦਾ ਹੈ: |
This template is intended for external links. It is not designed for use as a citation template for reliable sources. |
ਫਰਮਾ:New York Times topic generates an external link to a topic page at The New York Times website. It is intended for use in the external links section of an article.
Usage
[ਸੋਧੋ]- Unnamed parameters (old ID)
{{New York Times topic | ID }}
{{New York Times topic | ID | NAME }}
- Named parameters (old ID)
{{New York Times topic | id= ID }}
{{New York Times topic | id= ID | name= NAME }}
- Named parameters (new ID)
{{New York Times topic | new_id= ID }}
{{New York Times topic | new_id= ID | name= NAME }}
Instructions
[ਸੋਧੋ]- Find a New York Times topic page. The URL will need to look like
https://www.nytimes.com/topic/XXXXXX
(formerlyhttp://topics.nytimes.com/top/reference/timestopics/XXXXXX/index.html
) whereXXXXXX
is the URL directory path portion to be used. The former URL uses a different string forXXXXXX
than the current URL (see examples below). - Provide the URL path portion as the template's first parameter. Do not include any leading or trailing slash.
- Provide an optional name as the second parameter. If no name is provided for the second parameter, the template will use the name of the Wikipedia article.
Examples
[ਸੋਧੋ]One parameter
[ਸੋਧੋ]- Former URL (redirects to current URL)
http://topics.nytimes.com/top/reference/timestopics/organizations/t/taylor_paul_dance_co/index.html
- Usage
* {{New York Times topic | organizations/t/taylor_paul_dance_co }}
* {{New York Times topic | id= organizations/t/taylor_paul_dance_co }}
* {{New York Times topic | new_id= organization/paul-taylor-dance-company }}
- Output
-
- New York Times topic collected news and commentary at The New York Times
- New York Times topic collected news and commentary at The New York Times
- New York Times topic collected news and commentary at The New York Times
Two parameters
[ਸੋਧੋ]- Former URL (redirects to current URL)
http://topics.nytimes.com/top/reference/timestopics/people/r/susan_e_rice/index.html
- Current URL
https://www.nytimes.com/topic/person/susan-rice
- Usage
* {{New York Times topic | people/r/susan_e_rice | Susan Rice }}
* {{New York Times topic | id= people/r/susan_e_rice | name= Susan Rice }}
* {{New York Times topic | new_id= person/susan-rice | name= Susan Rice }}
- Output
-
- Susan Rice collected news and commentary at The New York Times
- Susan Rice collected news and commentary at The New York Times
- Susan Rice collected news and commentary at The New York Times
No ID in template or Wikidata
[ਸੋਧੋ]- Usage
* {{New York Times topic}}
- Output
-
- {{New York Times topic}} template missing ID and not present in Wikidata.
TemplateData
[ਸੋਧੋ]TemplateData for New York Times topic
This template generates an external link to a topic page at The Guardian website. It is intended for use in the external links section of an article.
ਮਾਪਦੰਡ | ਵੇਰਵਾ | ਕਿਸਮ | ਦਰਜਾ | |
---|---|---|---|---|
Old ID | id 1 | The "id" parameter (or unnamed parameter "1") may be used to specify the ID portion of the former URL (which redirects to the current URL). Example: people/r/susan_e_rice is the ID in http://topics.nytimes.com/top/reference/timestopics/people/r/susan_e_rice/index.html. This parameter is optional when using the "new_id" parameter or if Wikidata property P3221 exists, but required if not. | String | optional |
New ID | new_id | The "new_id" parameter may be used to specify the ID portion of the current URL. Example: person/susan-rice is the ID in https://www.nytimes.com/topic/person/susan-rice. This parameter is optional when using the "id" parameter or unnamed parameter "1" or if Wikidata property P3221 exists, but required if not.
| String | optional |
Name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the topic name, which is displayed in the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.
| String | optional |
Tracking categories
[ਸੋਧੋ]- ID parameter does not exist
- Category:New York Times topic template missing ID and not in Wikidata (0)
- Category:New York Times topic template using Wikidata (1)
See also
[ਸੋਧੋ]- {{Guardian topic}} – topic page at The Guardian
- {{Aljazeera topic}} – topic page at Al Jazeera English
- {{Bloomberg topic}} – topic page at Bloomberg News