This is the template test cases page for the sandbox of Template:NYT ext link. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Tests
editunnamed parameters
editCurrent
editHomepage at The New York Times
Sandbox
editHomepage Template:NYT link/sandbox/genat
inline
editCurrent
editinline=true: Homepage
inline=false: Homepage at The New York Times
Sandbox
editinline=true: Homepage
inline=false: Homepage Template:NYT link/sandbox/genat
topic link
editThe following should link to the topic page for Susan E. Rice.
Current
editSusan E. Rice collected news and commentary at The New York Times
Sandbox
editSusan E. Rice Template:NYT link/sandbox/genat
archive link
editThe following should link to an article entitled "The State Department's Record of Dulles' News Conference" from May 30, 1957.
Current
editThe State Department's Record of Dulles' News Conference at The New York Times
Sandbox
editThe State Department's Record of Dulles' News Conference Template:NYT link/sandbox/genat
with year
editCurrent
editROOSEVELT; Sweeps North and West and Is Elected President. (1904) at The New York Times
Sandbox
editROOSEVELT; Sweeps North and West and Is Elected President. Template:NYT link/sandbox/genat
with year and author
editCurrent
editROOSEVELT; Sweeps North and West and Is Elected President. (1904) by T. Herman Zweibel at The New York Times
Sandbox
editROOSEVELT; Sweeps North and West and Is Elected President. Template:NYT link/sandbox/genat
errors test
editThe following code SHOULD return error messages.
Current
editError from Template:NYT link - If you are using the {{{topic}}} parameter you must also set the {{{linkname}}} parameter, i.e. you have to explicitly say linkname=name, you can't leave it as an unnamed parameter.NYT ext link/testcases collected news and commentary at The New York Times
Error from Template:NYT link - If you are using the {{{archiveid}}} parameter you must also set the {{{linkname}}} parameter, i.e. you have to explicitly say linkname=name, you can't leave it as an unnamed parameter.NYT ext link/testcases at The New York Times
Sandbox
editError from Template:NYT link - If you are using the {{{topic}}} parameter you must also set the {{{linkname}}} parameter, i.e. you have to explicitly say linkname=name, you can't leave it as an unnamed parameter.NYT ext link/testcases Template:NYT link/sandbox/genat
Error from Template:NYT link - If you are using the {{{archiveid}}} parameter you must also set the {{{linkname}}} parameter, i.e. you have to explicitly say linkname=name, you can't leave it as an unnamed parameter.NYT ext link/testcases Template:NYT link/sandbox/genat