跳转到内容

Template:Sfn/testcases

维基百科,自由的百科全书

Template:Testcases

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

Notes

Sources

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