Template:cite wikisource/testcases

{{Testcases}}

<code>|script-title=</code>

{{Test case|_collapsible=yes|_showcode=yes|_output=nowiki+|_title={{para|script-title}}

| wslanguage = zh

|script-title =zh:為抗日救國告全體同胞書

| last = 中國共產黨中央委員會

| year = 1935

}}

Examples

{{Test case|_collapsible=yes|_showcode=yes|_title=just a title

|title=Mysterious book

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=year and title

|title=Mysterious book

|year=1901

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=basic usage

|first=Joe

|last=Bloggs

|authorlink=Joe Bloggs

|year=1974

|title=Book of Bloggs

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=citing a chapter in a book with different authors for different chapters and an editor

|last=Bloggs

|first=Fred

|editor-first=John

|editor-last=Doe

|plaintitle=Big Compilation Book With Many Chapters and distinct chapter authors

|publisher=Book Publishers

|date=2001-01-01

|pages=100–110

|chapter=Chapter 2: The History Of The Bloggs Family

|isbn=123456789X

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=positional parameters

|Sentido y sensibilidad|Jane Austen|es}}

More test examples

{{Test case|_collapsible=yes|_showcode=yes|_title=example 1

|title=Heimskringla

|author=Snorri Sturluson

|year=c. 1230

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=example 2

|title=Prose Edda

|author=Snorri Sturluson

|others=Trans. Rasmus Björn Anderson

|year=c. 1220

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=example 3

|title=Poetic Edda

|author=Unknown

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=example 4

|first=Charles

|last=Darwin

|title=The Origin of Species

|year=1859

|page=488

|wslink=Page:Origin_of_Species_1859_facsimile.djvu/500

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=example 5

|title=Gunpowder Plot Sermon

|wslink=Gunpowder Plot Sermon

|last=Andrewes

|first=Lancelot

|authorlink=Lancelot Andrewes

|coauthors=

|year=1606

|publisher=

|location=

|page=

|pages=

|scan=

|ref={{sfnref|Andrewes|1606}}

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=example 6

|author=Plato

|wslink=Charmides (Plato)

|title=Charmides

|others=Jowett, Benjamin (translator)

}}

in-source location tests

page – used when page display is not linked:

{{Test case|_collapsible=yes|_showcode=yes|_title=page

|title=Notes by the Way with Memoirs of Joseph Knight, F.S.A.

|last=Francis

|first=John Collins

|wslink=Notes by the Way

|chapter=Joseph Knight

|page=xxix

|scan=Page:Notes by the Way.djvu/53

|year=1909

|publisher =T. Fisher Unwin

|place=London

}}

{{cite wikisource/sandbox |title=Notes by the Way with Memoirs of Joseph Knight, F.S.A. |last=Francis |first=John Collins |wslink=Notes by the Way |chapter=Joseph Knight |page=xxix |scan=Page:Notes by the Way.djvu/53 |year=1909 |publisher =T. Fisher Unwin |place=London|_debug=yes}}

wspage – required when page display is to be linked:

{{Test case|_collapsible=yes|_showcode=yes|_title=wspage

|title=Notes by the Way with Memoirs of Joseph Knight, F.S.A.

|last=Francis

|first=John Collins

|wslink=Notes by the Way

|chapter=Joseph Knight

|wspage=xxix

|scan=Page:Notes by the Way.djvu/53

|year=1909

|publisher =T. Fisher Unwin

|place=London

}}

{{cite wikisource/sandbox |title=Notes by the Way with Memoirs of Joseph Knight, F.S.A. |last=Francis |first=John Collins |wslink=Notes by the Way |chapter=Joseph Knight |wspage=xxix |scan=Page:Notes by the Way.djvu/53 |year=1909 |publisher =T. Fisher Unwin |place=London|_debug=yes}}

pages with wspages – both required when pages display (xxix–xxx) is different from the in-source anchor (xxix):

{{Test case|_collapsible=yes|_showcode=yes|_title=pages with wspages

|title=Notes by the Way with Memoirs of Joseph Knight, F.S.A.

|last=Francis

|first=John Collins

|wslink=Notes by the Way

|chapter=Joseph Knight

|pages=xxix–xxx

|wspages=xxix

|scan=Page:Notes by the Way.djvu/53

|year=1909

|publisher =T. Fisher Unwin

|place=London

}}

{{cite wikisource/sandbox |title=Notes by the Way with Memoirs of Joseph Knight, F.S.A. |last=Francis |first=John Collins |wslink=Notes by the Way |chapter=Joseph Knight |pages=xxix–xxx |wspages=xxix |scan=Page:Notes by the Way.djvu/53 |year=1909 |publisher =T. Fisher Unwin |place=London|_debug=yes}}

at – used when in-source location is not a page number and display is not linked (page number used here for convenience):

{{Test case|_collapsible=yes|_showcode=yes|_title=at

|title=Notes by the Way with Memoirs of Joseph Knight, F.S.A.

|last=Francis

|first=John Collins

|wslink=Notes by the Way

|chapter=Joseph Knight

|at=xxix

|scan=Page:Notes by the Way.djvu/53

|year=1909

|publisher =T. Fisher Unwin

|place=London

}}

{{cite wikisource/sandbox |title=Notes by the Way with Memoirs of Joseph Knight, F.S.A. |last=Francis |first=John Collins |wslink=Notes by the Way |chapter=Joseph Knight |at=xxix |scan=Page:Notes by the Way.djvu/53 |year=1909 |publisher =T. Fisher Unwin |place=London|_debug=yes}}

at with wsat – both required when at display (xxix–xxx) is different from the in-source anchor (xxix) (pagination used here for convenience) – {{para|wsat}} not supported by the current live template:

{{Test case|_collapsible=yes|_showcode=yes|_title=at with wsat

|title=Notes by the Way with Memoirs of Joseph Knight, F.S.A.

|last=Francis

|first=John Collins

|wslink=Notes by the Way

|chapter=Joseph Knight

|at=xxix–xxx

|wsat=xxix

|scan=Page:Notes by the Way.djvu/53

|year=1909

|publisher =T. Fisher Unwin

|place=London

}}

{{cite wikisource/sandbox |title=Notes by the Way with Memoirs of Joseph Knight, F.S.A. |last=Francis |first=John Collins |wslink=Notes by the Way |chapter=Joseph Knight |at=xxix–xxx |wsat=xxix |scan=Page:Notes by the Way.djvu/53 |year=1909 |publisher =T. Fisher Unwin |place=London|_debug=yes}}

anchor

{{Test case|_collapsible=yes|_showcode=yes|_title=anchor

|wslanguage=de

|title=Hernach volgend die zehen Krayß

|anchor=Seite 12: Niderlendisch vnnd Westuelisch Krayß

|year=1532

}}

{{cite wikisource/sandbox |wslanguage=de |title=Hernach volgend die zehen Krayß |anchor=Seite 12: Niderlendisch vnnd Westuelisch Krayß |year=1532 |_debug=yes}}

no icon

{{Test case|_collapsible=yes|_showcode=yes|_title=no icon

|title=Notes by the Way with Memoirs of Joseph Knight, F.S.A.

|last=Francis

|first=John Collins

|wslink=Notes by the Way

|chapter=Joseph Knight

|pages=xxix–xxx

|wspages=xxix

|scan=Page:Notes by the Way.djvu/53

|year=1909

|publisher =T. Fisher Unwin

|place=London

|noicon=yes

}}

{{cite wikisource/sandbox |title=Notes by the Way with Memoirs of Joseph Knight, F.S.A. |last=Francis |first=John Collins |wslink=Notes by the Way |chapter=Joseph Knight |pages=xxix–xxx |wspages=xxix |scan=Page:Notes by the Way.djvu/53 |year=1909 |publisher =T. Fisher Unwin |place=London|noicon=yes|_debug=yes}}

magazine

{{Test case|_collapsible=yes|_showcode=yes|_title=magazine using chapter and plaintitle

| class = magazine

| first = T. E.

| last = Lounsbury

| chapter = Sketch of George Jarvis Brush

| wslink = Popular Science Monthly/Volume 20/November 1881

| plaintitle = Popular Science Monthly

| volume = 20

| date= November 1881

| page = 117

| wspage = 117

| publisher = D. Appleton & Company

| issn = 0161-7370

| scan = Page:Popular Science Monthly Volume 20.djvu/127

}}

{{cite wikisource/sandbox

| class = magazine

| first = T. E.

| last = Lounsbury

| chapter = Sketch of George Jarvis Brush

| wslink = Popular Science Monthly/Volume 20/November 1881

| plaintitle = Popular Science Monthly

| volume = 20

| date= November 1881

| page = 117

| wspage = 117

| publisher = D. Appleton & Company

| issn = 0161-7370

| scan = Page:Popular Science Monthly Volume 20.djvu/127

|_debug=yes

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=magazine using magazine and title

| first = T. E.

| last = Lounsbury

| title = Sketch of George Jarvis Brush

| wslink = Popular Science Monthly/Volume 20/November 1881/Sketch of George Jarvis Brush

| magazine= Popular Science Monthly

| volume = 20

| date= November 1881

| wspage = 117

| publisher = D. Appleton & Company

| issn = 0161-7370

| scan = Page:Popular Science Monthly Volume 20.djvu/127

}}

{{cite wikisource/sandbox

| first = T. E.

| last = Lounsbury

| title = Sketch of George Jarvis Brush

| wslink = Popular Science Monthly/Volume 20/November 1881/Sketch of George Jarvis Brush

| magazine= Popular Science Monthly

| volume = 20

| year = November 1881

| wspage = 117

| publisher = D. Appleton & Company

| issn = 0161-7370

| scan = Page:Popular Science Monthly Volume 20.djvu/127

|_debug=yes

}}

newspaper

{{Test case|_collapsible=yes|_showcode=yes|_title=newspaper uses chapter and plaintitle

|class=newspaper

|last=Wells

|first=H. G.

|chapter=Heroic Airmen Are Key To Victory

|plaintitle=Daily Mail

|date=9 August 1918

}}

{{cite wikisource/sandbox |class=newspaper |last=Wells |first=H. G. |chapter=Heroic Airmen Are Key To Victory |plaintitle=Daily Mail |date=9 August 1918 |_debug=yes}}

{{Test case|_collapsible=yes|_showcode=yes|_title=newspaper uses title and newspaper

|last=Wells

|first=H. G.

|title=Heroic Airmen Are Key To Victory

|newspaper=Daily Mail

|date=9 August 1918

}}

{{cite wikisource/sandbox |last=Wells |first=H. G. |title=Heroic Airmen Are Key To Victory |newspaper=Daily Mail |date=9 August 1918 |_debug=yes}}

plainchapter

{{Test case|_collapsible=yes|_showcode=yes|_title=with chapter set

| chapter=“The Literary Magnet”

| plainchapter='The Literary Magnet'

| plaintitle=Notes and Queries

| first=George Clement

| last=Boase

| authorlink=George Clement Boase

| date=3 May 1879

| series = 5

| volume=11

| issue=279

| pages=350–351

| wslink=Notes and Queries/Series 5/Volume 11/Number 279

}}

{{cite wikisource/sandbox | chapter=“The Literary Magnet” | plainchapter='The Literary Magnet' | plaintitle=Notes and Queries | first=George Clement | last=Boase | authorlink=George Clement Boase | date=3 May 1879 | series = 5 | volume=11 | issue=279 | pages=350–351 | wslink=Notes and Queries/Series 5/Volume 11/Number 279 |_debug=yes}}

{{Test case|_collapsible=yes|_showcode=yes|_title=without chapter set

| plainchapter='The Literary Magnet'

| plaintitle=Notes and Queries

| first=George Clement

| last=Boase

| authorlink=George Clement Boase

| date=3 May 1879

| series = 5

| volume=11

| issue=279

| pages=350–351

| wslink=Notes and Queries/Series 5/Volume 11/Number 279

}}

{{cite wikisource/sandbox | plainchapter='The Literary Magnet' | plaintitle=Notes and Queries | first=George Clement | last=Boase | authorlink=George Clement Boase | date=3 May 1879 | series = 5 | volume=11 | issue=279 | pages=350–351 | wslink=Notes and Queries/Series 5/Volume 11/Number 279 |_debug=yes}}

prescript and vb

{{Test case|_collapsible=yes|_showcode=yes|_title=prescript

|title=Mysterious book

|prescript=Test:

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=prescript & iconfirst

|title=Mysterious book

|prescript=Test:

|iconfirst=yes

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=prescript & iconfirst with noicon

|title=Mysterious book

|prescript=Test:

|iconfirst=yes

|noicon=yes

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=vb

|title=Mysterious book

|vb=yes

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=vb & firsticon

|title=Mysterious book

|vb=yes

|iconfirst=yes

}}

{{Test case|_collapsible=yes|_showcode=yes|_title=vb & firsticon with noicon

|title=Mysterious book

|vb=yes

|iconfirst=yes

|noicon=yes

}}