Template:Cite wikisource/testcases

From blackwiki
Jump to navigation Jump to search

Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.

bloggs, fred. My book  (in Nāhuatl). Oxford: OUP – via Wikisource.

中國共產黨中央委員會 (1935). 為抗日救國告全體同胞書  (in Chinese) – via Wikisource.

Examples

Just a title
* {{cite wikisource | title=Mysterious book }}
  • Production template: Mysterious book  – via Wikisource.
  • Sandbox template: Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
Year and title
* {{cite wikisource | title=Mysterious book | year=1901 }}
  • Production template: Mysterious book . 1901 – via Wikisource.
  • Sandbox template: Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
Basic usage
* {{cite wikisource | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}
  • Production template: Bloggs, Joe (1974). Book of Bloggs  – via Wikisource.
  • Sandbox template: Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
Citing a chapter in a book with different authors for different chapters and an editor
* {{cite wikisource |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}}
  • Production template: Bloggs, Fred (2001-01-01). "Chapter 2: The History Of The Bloggs Family" . In Doe, John (ed.). Big Book With Many Chapters and distinct chapter authors. Book Publishers. pp. 100–110. ISBN 123456789X – via Wikisource.
  • Sandbox template: Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
with |noicon=yes; cs1|2 doesn't like multiple wikilinks in parameter values:
[[File:Wikisource-logo.svg|12px|class=noviewer|alt=Wikisource link to]] [[wikisource:Big Book With Many Chapters and distinct chapter authors/Chapter 2: The History Of The Bloggs Family|Chapter 2: The History Of The Bloggs Family]]
  • Sandbox template: Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
positional parameters
{{cite wikisource|Sentido y sensibilidad|Jane Austen|es}}
  • production template: Jane Austen. Sentido y sensibilidad  (in Spanish) – via Wikisource.
  • sandbox template: Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.

More test examples

Template:Testcase table

Template:Testcase table

Template:Testcase table

Template:Testcase table

Template:Testcase table

Template:Testcase table

in-source location tests

  • page – used when page display is not linked:
    • {{cite wikisource |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}}
    • {{citation/new |chapter=[[s:Notes by the Way/Joseph Knight|Joseph Knight]] |via=[[Wikisource]] |title=[[s:Notes by the Way|Notes by the Way with Memoirs of Joseph Knight, F.S.A.]] |mode=cs1 |page=xxix |last=Francis |place=London |first=John Collins |publisher=[[T. Fisher Unwin]] |year=1909}} [scan Wikisource link]
  • wspage – required when page display is to be linked:
    • {{cite wikisource |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}}
    • {{citation/new |chapter=[[s:Notes by the Way/Joseph Knight|Joseph Knight]] |via=[[Wikisource]] |title=[[s:Notes by the Way|Notes by the Way with Memoirs of Joseph Knight, F.S.A.]] |mode=cs1 |page=[[s:Notes by the Way/Joseph Knight#xxix|xxix]] |last=Francis |place=London |first=John Collins |publisher=[[T. Fisher Unwin]] |year=1909}} [scan Wikisource link]
  • pages with wspages – both required when pages display (xxix–xxx) is different from the in-source anchor (xxix):
    • {{cite wikisource |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}}
    • {{citation/new |chapter=[[s:Notes by the Way/Joseph Knight|Joseph Knight]] |via=[[Wikisource]] |title=[[s:Notes by the Way|Notes by the Way with Memoirs of Joseph Knight, F.S.A.]] |pages=[[s:Notes by the Way/Joseph Knight#xxix|xxix–xxx]] |mode=cs1 |last=Francis |place=London |first=John Collins |publisher=[[T. Fisher Unwin]] |year=1909}} [scan Wikisource link]
  • at – used when in-source location is not a page number and display is not linked (page number used here for convenience):
    • {{cite wikisource |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}}
    • {{citation/new |chapter=[[s:Notes by the Way/Joseph Knight|Joseph Knight]] |via=[[Wikisource]] |at=xxix |title=[[s:Notes by the Way|Notes by the Way with Memoirs of Joseph Knight, F.S.A.]] |mode=cs1 |last=Francis |place=London |first=John Collins |publisher=[[T. Fisher Unwin]] |year=1909}} [scan Wikisource link]
  • at with wsat – both required when at display (xxix–xxx) is different from the in-source anchor (xxix) (pagination used here for convenience) – |wsat= not supported by the current live template:
    • {{cite wikisource |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}}
    • {{citation/new |chapter=[[s:Notes by the Way/Joseph Knight|Joseph Knight]] |via=[[Wikisource]] |at=[[s:Notes by the Way/Joseph Knight#xxix|xxix–xxx]] |title=[[s:Notes by the Way|Notes by the Way with Memoirs of Joseph Knight, F.S.A.]] |mode=cs1 |last=Francis |place=London |first=John Collins |publisher=[[T. Fisher Unwin]] |year=1909}} [scan Wikisource link]

anchor

  • {{cite wikisource |wslanguage=de |title=Hernach volgend die zehen Krayß |anchor=Seite 12: Niderlendisch vnnd Westuelisch Krayß |year=1532 }}
  • {{citation/new |via=[[Wikisource]] |language=de |title=[[s:de:Hernach volgend die zehen Krayß#Seite 12: Niderlendisch vnnd Westuelisch Krayß|Hernach volgend die zehen Krayß]] |mode=cs1 |year=1532}}

no icon

  • noicon=yes
    • {{cite wikisource |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}}
    • {{citation/new |chapter=[[:s:Notes by the Way/Joseph Knight|Joseph Knight]] |via=[[Wikisource]] |title=[[:s:Notes by the Way|Notes by the Way with Memoirs of Joseph Knight, F.S.A.]] |pages=[[:s:Notes by the Way/Joseph Knight#xxix|xxix–xxx]] |mode=cs1 |last=Francis |place=London |first=John Collins |publisher=[[T. Fisher Unwin]] |year=1909}} [scan]

magazine

  • *{{cite wikisource | 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 | month = November | year = 1881 | page = 117 | wspage = 117 | publisher = [[D. Appleton & Company]] | issn = 0161-7370 | scan = Page:Popular Science Monthly Volume 20.djvu/127 }}

sandbox uses |title= instead of |chapter=; |magazine= instead of |plaintitle=:

  • *{{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 }}
    • Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable. [scan Wikisource link]
  • {{citation/new |via=[[Wikisource]] |title=[[s:Popular Science Monthly/Volume 20/November 1881/Sketch of George Jarvis Brush|Sketch of George Jarvis Brush]] |mode=cs1 |page=[[s:Popular Science Monthly/Volume 20/November 1881/Sketch of George Jarvis Brush#117|117]] |last=Lounsbury |first=T. E. |magazine=[[Popular Science Monthly]] |publisher=[[D. Appleton & Company]] |volume=20 |year=November 1881 |issn=0161-7370}} [scan Wikisource link]

newspaper

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

sandbox uses |title= instead of |chapter=; |newspaper= instead of |plaintitle=:

  • {{cite wikisource/sandbox |last=Wells |first=H. G. |title=Heroic Airmen Are Key To Victory |newspaper=Daily Mail |date=9 August 1918}}
    • Lua error in Module:Citation/CS1/sandbox at line 126: Argument map not defined for this variable.
  • {{citation/new |via=[[Wikisource]] |title=[[s:Heroic Airmen Are Key To Victory|Heroic Airmen Are Key To Victory]] |mode=cs1 |last=Wells |date=9 August 1918 |first=H. G. |newspaper=Daily Mail}}