User:Mathglot/sandbox/Templates/Sfnlinknb/testcases
This is the template test cases page for the sandbox of User:Mathglot/sandbox/Templates/Sfnlinknb. 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 and parsers with these links: |
There are no native test cases on this page. They are all transcluded from Template:Sfnlink/testcases, and there is no sandbox (Template:Sfnlinknb/sandbox is a redirect). Accordingly, the way to read results of the test cases below differs from a normal testcases page. In particular, the meaning of the green and yellow title bars is different than usual.
Results of each test show the difference between invoking Mathglot/sandbox/Templates/Sfnlinknb and Sfnlink with the identical set of parameters, with "Live" (top invocation of each pair) showing the results of Mathglot/sandbox/Templates/Sfnlinknb, and "Sandbox" showing the results of Sfnlink (labeled '{{Sfnlinknb/sandbox}}'). Because they normally act differently, most tests below should be topped by a yellow title bar, which normally would indicate a testcase failure, but here only means that the results are different, and you have to examine the actual results to see if it is different in the right way. A green title bar means they act the same, and this should only appear in those tests where the test case passes |nb=yes (or equivalent), or when param |text= is in use, which overrides the action of param |nb= . |
Without optional params
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|1999}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|2003}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|2007}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|Anderson|2011}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, de Haro, & Anderson 2011
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|Anderson|Qiyang|2015}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, de Haro, & Anderson Qiyang
With optional page params
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|1999|p=12}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe 1999 p. 12
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe (1999) p. 12
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|1999|pp=12–14}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe 1999 pp. 12–14
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe (1999) pp. 12–14
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|1999|page=93}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe 1999 p. 93
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe (1999) p. 93
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|1999|pages=93–97}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe 1999 pp. 93–97
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe (1999) pp. 93–97
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|1999|nb=yes |pages=53–56}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe 1999 pp. 53–56
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe 1999 pp. 53–56
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|2003|p=282}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe & Jones 2003 p. 282
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe & Jones (2003) p. 282
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|2003|pp=282–284}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe & Jones 2003 pp. 282–284
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe & Jones (2003) pp. 282–284
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|2003|page=293}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe & Jones 2003 p. 293
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe & Jones (2003) p. 293
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|2003|pages=293–297}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe & Jones 2003 pp. 293–297
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe & Jones (2003) pp. 293–297
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|2003|nb=1 |pages=115–117}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe & Jones 2003 pp. 115–117
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe & Jones 2003 pp. 115–117
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|2007|pages=393–397}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, & de Haro 2007 pp. 393–397
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe, Jones, & de Haro (2007) pp. 393–397
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|2007|nb=true |pages=193–197}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, & de Haro 2007 pp. 193–197
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe, Jones, & de Haro 2007 pp. 193–197
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|Anderson|2011|p=442}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, de Haro, & Anderson 2011 p. 442
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|Anderson|2011|pp=442–445}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, de Haro, & Anderson 2011 pp. 442–445
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe, Jones, de Haro, & Anderson (2011) pp. 442–445
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|Anderson|2011|page=442}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, de Haro, & Anderson 2011 p. 442
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|Anderson|2011|nb=YES |pages=224–225}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, de Haro, & Anderson 2011 pp. 224–225
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe, Jones, de Haro, & Anderson 2011 pp. 224–225
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|de Haro|Anderson|2011|nb=yeah |pages=448–449}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe, Jones, de Haro, & Anderson 2011 pp. 448–449
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe, Jones, de Haro, & Anderson 2011 pp. 448–449
With optional param 'text'
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|1989|text=Roe, 1989. 2nd ed. p=12}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|1989|nb=yes |text=Roe, 1989. 2nd ed. p=12}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|1992|text=Roe, Bones, et al. (1992)}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|da Silva|1997|text=Roe 1997. p. 114–117}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|da Silva|Andreeson|2003|text=Roe, Bones, da Silva etc. p. 454}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe, Bones, da Silva etc. p. 454
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|da Silva|Andreeson|2003|nb=Y |text=Roe, Bones, da Silva etc. p. 254}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe, Bones, da Silva etc. p. 254
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|da Silva|Andreeson|Qiaoying|2021|text=Roe et al. vol. 2; chap. 7 "Revolution", pp. 19–23}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe et al. vol. 2; chap. 7 "Revolution", pp. 19–23
With optional 'text' and page params
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|1989|p=32 |text=Roe, 1989. 2nd ed.}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe, 1989. 2nd ed. p. 32
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe, 1989. 2nd ed. p. 32
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|1992|pp=32–35 |text=Roe, Bones, et al. (1992)}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe, Bones, et al. (1992) pp. 32–35
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe, Bones, et al. (1992) pp. 32–35
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|1992|nb=T |pp=52–55 |text=Roe, Bones, et al. (1992)}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe, Bones, et al. (1992) pp. 52–55
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe, Bones, et al. (1992) pp. 52–55
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|da Silva|1997|pages=114–117 |text=Roe 1997.}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe 1997. pp. 114–117
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe 1997. pp. 114–117
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|da Silva|1997|nb=true |pages=214–217 |text=Roe 1997.}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe 1997. pp. 214–217
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe 1997. pp. 214–217
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|da Silva|Andreeson|2003|page=454 |text=Roe, Bones, da Silva etc.}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe, Bones, da Silva etc. p. 454
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe, Bones, da Silva etc. p. 454
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|Bones|da Silva|Andreeson|Qiaoying|2021|pp=19–23 |text=Roe et al. vol. 2; chap. 7 "Revolution"}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe et al. vol. 2; chap. 7 "Revolution" pp. 19–23
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe et al. vol. 2; chap. 7 "Revolution" pp. 19–23
With optional param 'loc'
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|1999|loc=Foreword}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe 1999 Foreword
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe (1999) Foreword
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Doe|Jones|2003|loc=jacket blurb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Doe & Jones 2003 jacket blurb
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Doe & Jones (2003) jacket blurb
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|1989|loc=footnote 83 |p=32}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe 1989 p. 32, footnote 83
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe (1989) p. 32, footnote 83
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|1989|loc=footnote 83 |nb=yes |p=32}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe 1989 p. 32, footnote 83
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe 1989 p. 32, footnote 83
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|1989|loc=footnote 83 |p=32}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe 1989 p. 32, footnote 83
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe (1989) p. 32, footnote 83
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Roe|1989|loc=Appendix D |pp=159–162 |text=Roe, 1989. 2nd ed.}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Roe, 1989. 2nd ed. pp. 159–162, Appendix D
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Roe, 1989. 2nd ed. pp. 159–162, Appendix D
With optional param 'article'
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Kirsner|2003|article=Jean-Paul Sartre}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Kirsner|2003|article=Jean-Paul Sartre |nb=Y}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Coogan|Smith|2012|article=Lebanon}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Cruz|Suzuki|2009|article=Henry VIII}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Calaprice|Kennefick|Schulmann|2015|article=Albert Einstein}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Calaprice, Kennefick, & Schulmann 2015
With optional params 'lang' and 'article'
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Briselance|Morin|2010|article=Cinéma |lang=fr |p=16}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Briselance & Morin 2010 p. 16
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Briselance|Morin|2010|article=Cinéma |lang=fr |nb=yes |p=16}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Briselance & Morin 2010 p. 16
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Briselance & Morin 2010 p. 16
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Boatwright|2000|article=Imperio romano |lang=es |p=4}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Boatwright 2000 p. 4
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Boatwright (2000) p. 4
{{User:Mathglot/sandbox/Templates/Sfnlinknb|van Stipriaan|2021|article=Willem van Oranje |lang=nl}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Klaaß|2009|article=Salzburg |lang=de |p=38}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
[[:de:Salzburg#ERROR: de-wiki does not support sfn linkageKlaaß2009|Klaaß 2009]] p. 38
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
[[:de:Salzburg#ERROR: de-wiki does not support sfn linkageKlaaß2009|Klaaß (2009)]] p. 38
With optional params 'lang', 'rev', and 'article'
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Helfman|1997|article=Peixos |lang=ca |p=30 |rev=8823037}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Helfman 1997 p. 30
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Helfman (1997) p. 30
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Helfman|1997|lang=ca |p=30 |rev=8823037}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Helfman 1997 p. 30
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Helfman (1997) p. 30
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Helfman|1997|lang=ca |nb=y |p=30 |rev=8823037}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
Helfman 1997 p. 30
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
Helfman 1997 p. 30
With asterisk shortcut for optional param 'article'
[edit]These test cases have special execution instructions
|
---|
Live: * {{sfnlink|Prophet|2018|article=Hermeticism}} * {{sfnlink|Prophet|2018|article=*}} Sandbox: * {{sfnlink/sandbox|Prophet|2018|article=Hermeticism}} * {{sfnlink/sandbox|Prophet|2018|article=*}} Cancel out when done. Expected result: All four link to Hermeticism#CITEREFProphet2018. |
With optional param 'rev'
[edit]{{User:Mathglot/sandbox/Templates/Sfnlinknb|Ousby|2000|p=218 |rev=889229441}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
This points to old rev 889229441 of Jean-Paul Sartre, from March 2019:
Ousby 2000 p. 218
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
This points to old rev 889229441 of Jean-Paul Sartre, from March 2019:
Ousby (2000) p. 218
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Ousby|2000|nb=yes |p=218 |rev=889229441}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
This points to old rev 889229441 of Jean-Paul Sartre, from March 2019:
Ousby 2000 p. 218
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
This points to old rev 889229441 of Jean-Paul Sartre, from March 2019:
Ousby 2000 p. 218
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Ousby|2000|article=Jean-Paul Sartre |p=218 |rev=889229441}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
This points to the same rev 889229441 as above; param 'article' is ignored when 'rev' is present:
Ousby 2000 p. 218
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
This points to the same rev 889229441 as above; param 'article' is ignored when 'rev' is present:
Ousby (2000) p. 218
{{User:Mathglot/sandbox/Templates/Sfnlinknb|Ousby|2000|p=218 |rev=889229441 |text=Ousby (2000) [rev. 889229441]}}
{{User:Mathglot/sandbox/Templates/Sfnlinknb}}
This points to the same old rev 889229441 and uses param |text=
to alter the display text of the link:
Ousby (2000) [rev. 889229441] p. 218
{{User:Mathglot/sandbox/Templates/Sfnlinknb/sandbox}}
This points to the same old rev 889229441 and uses param |text=
to alter the display text of the link:
Ousby (2000) [rev. 889229441] p. 218
Works cited
[edit]Citations to provide destinations for the test cases on this page.
|
---|
|