Jump to content

Template:Sfn/testcases

From Wikipedia, the free encyclopedia

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.
Expanded code
Article text.'"`UNIQ--ref-00000006-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000007-QINU`"'</div>
p
Article text.{{sfn |Smith|2009| p=25}}
Article text.[3]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000000B-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000000C-QINU`"'</div>
p with pages
Article text.{{sfn |Smithie|2009| p=25-26}}
Article text.[5]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000010-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000011-QINU`"'</div>
Duplicate
Article text.{{sfn |Smith|2009| p=25}}
Article text.[3]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000015-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000016-QINU`"'</div>
pp
Article text.{{sfn |Smith|2009| pp=25&ndash;26}}
Article text.[6]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000001A-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000001B-QINU`"'</div>
pp with page
Article text.{{sfn |Smithy|2009| pp=25}}
Article text.[8]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000001F-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000020-QINU`"'</div>
loc
Article text.{{sfn |Smith|2009| loc=&sect;8.5}}
Article text.[9]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000024-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000025-QINU`"'</div>
at
Article text.{{sfn |Smith|2009| at=&sect;8.5}}
Article text.[9]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000029-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000002A-QINU`"'</div>
Two authors
Article text.{{sfn |Smith|Jones|2009| p=25}}
Article text.[11]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000002E-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000002F-QINU`"'</div>
Three authors
Article text.{{sfn |Smith|Jones|Brown|2009| p=25}}
Article text.[13]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000033-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000034-QINU`"'</div>
Three authors with spaces
Article text.{{sfn |Smith | Jones| Brown |2009| p=25}}
Article text.[13]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000038-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000039-QINU`"'</div>
Four authors
Article text.{{sfn |Smith|Jones|Brown|Black|2009| p=25}}
Article text.[15]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000003D-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000003E-QINU`"'</div>
Four authors with spaces
Article text.{{sfn |Smith | Jones| Brown |Black| 2009 | p=25 }}
Article text.[15]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000042-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000043-QINU`"'</div>
One author, no year, no page
Article text.{{sfn |Smith}}
Article text.[17]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000047-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000048-QINU`"'</div>
One author, no year, w/page
Article text.{{sfn |Smith|p=2}}
Article text.[19]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000004C-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000004D-QINU`"'</div>

Notes

[edit]
  1. ^ Smith 2009.
  2. ^ SmithS 2009.
  3. ^ a b Smith 2009, p. 25.
  4. ^ a b SmithS 2009, p. 25.
  5. ^ a b Smithie 2009, p. 25-26.
  6. ^ Smith 2009, pp. 25–26.
  7. ^ SmithS 2009, pp. 25–26.
  8. ^ a b Smithy 2009, pp. 25.
  9. ^ a b Smith 2009, §8.5.
  10. ^ a b SmithS 2009, §8.5.
  11. ^ Smith & Jones 2009, p. 25.
  12. ^ SmithS & Jones 2009, p. 25.
  13. ^ a b Smith, Jones & Brown 2009, p. 25.
  14. ^ a b SmithS, Jones & Brown 2009, p. 25.
  15. ^ a b Smith et al. 2009, p. 25.
  16. ^ a b SmithS et al. 2009, p. 25.
  17. ^ Smith.
  18. ^ SmithS.
  19. ^ Smith, p. 2.
  20. ^ 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