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-00000007-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000008-QINU`"'</div>
p
Article text.{{sfn |Smith|2009| p=25}}
Article text.[3]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000000E-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000000F-QINU`"'</div>
p with pages
Article text.{{sfn |Smithie|2009| p=25-26}}
Article text.[5]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000014-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000015-QINU`"'</div>
Duplicate
Article text.{{sfn |Smith|2009| p=25}}
Article text.[3]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000001A-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000001B-QINU`"'</div>
pp
Article text.{{sfn |Smith|2009| pp=25&ndash;26}}
Article text.[6]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000020-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000021-QINU`"'</div>
pp with page
Article text.{{sfn |Smithy|2009| pp=25}}
Article text.[8]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000026-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000027-QINU`"'</div>
loc
Article text.{{sfn |Smith|2009| loc=&sect;8.5}}
Article text.[9]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000002C-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000002D-QINU`"'</div>
at
Article text.{{sfn |Smith|2009| at=&sect;8.5}}
Article text.[9]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000032-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000033-QINU`"'</div>
Two authors
Article text.{{sfn |Smith|Jones|2009| p=25}}
Article text.[11]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000038-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000039-QINU`"'</div>
Three authors
Article text.{{sfn |Smith|Jones|Brown|2009| p=25}}
Article text.[13]
Article text.
Expanded code
Article text.'"`UNIQ--ref-0000003E-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000003F-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-00000044-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000045-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-0000004A-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000004B-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-00000050-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000051-QINU`"'</div>
One author, no year, no page
Article text.{{sfn |Smith}}
Article text.[17]
Article text.
Expanded code
Article text.'"`UNIQ--ref-00000056-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-00000057-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-0000005C-QINU`"'
Article text.<div style="color:inherit">'"`UNIQ--ref-0000005D-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