Template:Cite wikisource/testcases

From blackwiki
< Template:Cite wikisource
Revision as of 11:56, 20 November 2018 by imported>Trappist the monk (→‎no icon: new section;)
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]]&nbsp;[[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]

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]