మూస:NYTtopic/doc

వికీపీడియా నుండి
Jump to navigation Jump to search

మూస:NYTtopic 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)
{{NYTtopic | ID }}
{{NYTtopic | ID | NAME }}
Named parameters (old ID)
{{NYTtopic | id= ID }}
{{NYTtopic | id= ID | name= NAME }}
Named parameters (new ID)
{{NYTtopic | new_id= ID }}
{{NYTtopic | new_id= ID | name= NAME }}
Using Wikidata property (P3221)
{{NYTtopic}}
{{NYTtopic | name= NAME }}

Instructions[మార్చు]

  1. Find a New York Times topic page. The URL will need to look like https://www.nytimes.com/topic/XXXXXX (formerly http://topics.nytimes.com/top/reference/timestopics/XXXXXX/index.html) where XXXXXX is the URL directory path portion to be used. The former URL uses a different string for XXXXXX than the current URL (see examples below).
  2. Provide the URL path portion as the template's first parameter. Do not include any leading or trailing slash.
  3. 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
Current URL
https://www.nytimes.com/topic/organization/paul-taylor-dance-company
Usage
* {{NYTtopic | organizations/t/taylor_paul_dance_co }}
* {{NYTtopic | id= organizations/t/taylor_paul_dance_co }}
* {{NYTtopic | new_id= organization/paul-taylor-dance-company }}
Output

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
* {{NYTtopic | people/r/susan_e_rice | Susan Rice }}
* {{NYTtopic | id= people/r/susan_e_rice | name= Susan Rice }}
* {{NYTtopic | new_id= person/susan-rice | name= Susan Rice }}
Output

No ID in template or Wikidata[మార్చు]

Usage
* {{NYTtopic}}
Output

TemplateData[మార్చు]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:NYTtopic in articles based on its TemplateData.

TemplateData for NYTtopic

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 IDid 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.

స్ట్రింగుఐచ్చికం
New IDnew_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.

అప్రమేయం
Wikidata property P3221
స్ట్రింగుఐచ్చికం
Namename 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.

అప్రమేయం
{{PAGENAMEBASE}}
స్ట్రింగుఐచ్చికం

Tracking categories[మార్చు]

ID parameter does not exist

See also[మార్చు]


"https://te.wikipedia.org/w/index.php?title=మూస:NYTtopic/doc&oldid=3572351" నుండి వెలికితీశారు