Template:Sfn/testcases

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Due to the way {{testcase}} and <ref> work, these test cases will always incorrectly report that the test cases don't match, even when they do. However, you can inspect the HTML code yourself to verify that they match except for unimportant ID information. Don't forget to check the Notes, and make sure that the wikilinks in that section link properly to Sources.

Simple
Article text.{{sfn |Smith|2009}}
Article text.[1]
Article text.[2]
p
Article text.{{sfn |Smith|2009| p=25}}
Article text.[3]
Article text.[4]
Duplicate
Article text.{{sfn |Smith|2009| p=25}}
Article text.[3]
Article text.[4]
pp
Article text.{{sfn |Smith|2009| pp=25&ndash;26}}
Article text.[5]
Article text.[6]
loc
Article text.{{sfn |Smith|2009| loc=&sect;8.5}}
Article text.[7]
Article text.[8]
Two authors
Article text.{{sfn |Smith|Jones|2009| p=25}}
Article text.[9]
Article text.[10]
Three authors
Article text.{{sfn |Smith|Jones|Brown|2009| p=25}}
Article text.[11]
Article text.[12]
Three authors with spaces
Article text.{{sfn |Smith | Jones| Brown |2009| p=25}}
Article text.[11]
Article text.[12]
Four authors
Article text.{{sfn |Smith|Jones|Brown|Black|2009| p=25}}
Article text.[13]
Article text.[14]
Four authors with spaces
Article text.{{sfn |Smith | Jones| Brown |Black| 2009 | p=25 }}
Article text.[13]
Article text.[14]
One author, no year, no page
Article text.{{sfn |Smith}}
Article text.[15]
Article text.[16]
One author, no year, w/page
Article text.{{sfn |Smith|p=2}}
Article text.[17]
Article text.[18]

Notes[edit]

  1. ^ Smith 2009.
  2. ^ SmithS 2009.
  3. ^ a b Smith 2009, p. 25.
  4. ^ a b SmithS 2009, p. 25.
  5. ^ Smith 2009, pp. 25–26.
  6. ^ SmithS 2009, pp. 25–26.
  7. ^ Smith 2009, §8.5.
  8. ^ SmithS 2009, §8.5.
  9. ^ Smith & Jones 2009, p. 25.
  10. ^ SmithS & Jones 2009, p. 25.
  11. ^ a b Smith, Jones & Brown 2009, p. 25.
  12. ^ a b SmithS, Jones & Brown 2009, p. 25.
  13. ^ a b Smith et al. 2009, p. 25.
  14. ^ a b SmithS et al. 2009, p. 25.
  15. ^ Smith.
  16. ^ SmithS.
  17. ^ Smith, p. 2.
  18. ^ SmithS, p. 2.

Sources[edit]

  • Smith (2009), One author 
  • SmithS (2009), One author, sandbox Smith 
  • Smith, One author, no year 
  • SmithS, One author, no year, sandbox Smith 
  • Smith; Jones (2009), Two authors 
  • SmithS; Jones (2009), Two authors, sandbox Smith 
  • Smith; Jones; Brown (2009), Three authors 
  • SmithS; Jones; Brown (2009), Three authors, sandbox Smith 
  • Smith; Jones; Brown; Black (2009), Four authors 
  • SmithS; Jones; Brown; Black (2009), Four authors, sandbox Smith