Share to:

Predloga:New York Times topic/dok

Info:

Predloga: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 }}
Using Wikidata property NYT (topic) (P3221)
{{New York Times topic}}
{{New York Times topic | 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
* {{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

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

No ID in template or Wikidata

Usage
* {{New York Times topic}}
Output

TemplateData

To je dokumentacija TemplateData za predlogo, ki jo uporabljajo Vizualni urejevalnik in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za 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.

Parametri predloge[Urejanje podatkov predloge]

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

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

Privzeto
Wikidata property P3221
Nizneobvezno
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.

Privzeto
{{PAGENAMEBASE}}
Nizneobvezno

Tracking categories

ID parameter does not exist

See also


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya