Template:Cite wikisource/sandbox
This is the template sandbox page for Template:Cite wikisource (diff). See also the companion subpage for test cases. |
This template is used on approximately 6,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
This template is used to cite sources in Wikipedia. It is specifically for works in the sister project Wikisource.
Usage
[edit]This template supports most of the parameters available to {{citation}}
. For information about those parameters see that template's documentation.
All parameter names must be in lowercase.
cite wikisource-specific parameters
[edit]|anchor=
– In combination with title, chapter and/or wslink, the link to wikisource can be extended to a specific section by adding anchor name in this parameter. This must be the same anchor name as the anchor on Wikisource. This will not change the displayed text in the citation; to do that, use the at parameter as well. This parameter can be used in addition to wspage as it affects the main link, not the page number link.|firsticon=
– alias of|iconfirst=
; when set to any value, the{{cite wikisource}}
rendering will have a leading Wikisource icon; alias:|iconfirst=
– alias of|firsticon=
|noicon=
– when set to any value, Wikisource icons will not be added to Wikisource links|nolink=
– when set to any value, Wikisource will not be linked when passed through to the|via=
parameter|plainchapter=
– The chapter of the book, written in full; overrides|chapter=
parameter and will not create a link to Wikisource|plaintitle=
– This, or|title=
, is the only required parameter; overrides|title=
parameter and will not create a link to Wikisource. Can be wikilinked but only to an existing Wikipedia article|prescript=
– alias of|vb=
|scan=
– many works hosted on Wikisource are proofread from scans also hosted by the project. This parameter will provide a link to the source scan on which the citation is based, if required. Enter the pagename of the source scan at Wikisource. This pagename should include both the namespace (Index:
orPage:
) and the filetype (usually.djvu
). Example:|scan=Page:Popular Science Monthly Volume 20.djvu/127
|vb=
– alias of|prescript=
; when set to any value, adds the text: 'This article incorporates text from a publication now in the public domain:' before the rendered citation|wsat=
– an in-source anchor on Wikisource when|wspage=
or|wspages=
is inappropriate; forms a linked in-source value to an anchor in the source for{{citation}}
parameter|at=
; use|at=
to display an in-source location value different from the value assigned to|wsat=
|wslanguage=
– ISO 639-1 (two-letter) or ISO 639-2 (three letter) language code of the wikisource hosting the work (if not English Wikisource) (For example, fr indicates French Wikisource.); overrides{{citation}}
parameter|language=
; (list of supported codes / names)|wslink=
– the full page name on Wikisource. To be used where the title is different from the page name or where subpages are involved (particularly with periodicals and works in volumes). If|chapter=
is used, the interwiki link will append the chapter name to|wslink=
as a subpage. If|title=
is used, the link will follow|wslink=
but display as|title=
. If|plaintitle=
is used, the link will only create a link to Wikisource if|chapter=
is also used.|wspage=
– the page number on Wikisource; forms a linked page number value to a page-number anchor in the source for{{citation}}
parameter|page=
; use|page=
to display a page number different from the value assigned to|wspage=
|wspages=
– a page number on Wikisource; forms a linked page number value to a page-number anchor in the source for{{citation}}
parameter|pages=
; use|pages=
to display the multiple page numbers and / or page range(s)|_debug=
– a useful aid when trying to understand why a{{cite wikisource}}
template is not working; see §examples
Copy a blank version to use. Remember to use the "|" (pipe) character between each field. Please delete any unused fields to avoid clutter in the edit window.
No templates or magic words are necessary when using an ISBN, OCLC number, or DOI as an identifier. Instead of using the id
field in these instances, simply use the appropriate field. For instance, type isbn=
followed by the number instead of id=ISBN
. Templates are available for other identification number types to be used in the ID field ({{ISSN}}, {{LCCN}}, {{LCC}}, etc.) if these aren't available.
Full version (copy and paste text below and delete parameters you don't need) | ||
---|---|---|
| ||
Most commonly used fields (use this and you won't have to delete as much) | ||
|
examples
[edit]Example 1 | {{cite wikisource |editor-first= Hugh |editor-last= Chisholm |chapter= Aard-vark |wslink= 1911 Encyclopædia Britannica |plaintitle= [[Encyclopædia Britannica Eleventh Edition|Encyclopædia Britannica]] |edition= Eleventh |year= 1911 |publisher= Cambridge University Press}}
|
Chisholm, Hugh, ed. (1911). Encyclopædia Britannica (Eleventh ed.). Cambridge University Press – via Wikisource. . |
---|---|---|
Example 2 | {{cite wikisource
|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
|nolink=yes
}}
|
Lounsbury, T. E. (November 1881). Popular Science Monthly. Vol. 20. D. Appleton & Company. p. . ISSN 0161-7370 – via Wikisource. [scan ] . |
Example |_debug=yes | {{cite wikisource
|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
|_debug=yes
}}
|
|
Backward compatibility
[edit]An earlier iteration of this template used only a few unnamed parameters. This template is backward compatible with the previous usage. The following format will function correctly:
{{cite wikisource|work title|author|wikisource language}}
Only the first parameter is necessary; the rest are optional.
Examples
[edit]{{cite wikisource|Sense and Sensibility}}
{{cite wikisource|Sense and Sensibility|Jane Austen}}
Jane Austen. Wikisource.
– via{{cite wikisource|Sentido y sensibilidad|Jane Austen|es}}
Jane Austen. Wikisource.
(in Spanish) – viaSee also
[edit]- Wikiproject Wikisource
- {{ws}}
- {{Cite WS}}
Specific Wikisource citation templates
[edit]- Category:Wikisource link templates
- {{Cite Americana}}: Encyclopedia Americana
- {{Cite Appletons'}}: Appletons' Cyclopædia of American Biography
- {{Cite Australasia}}: The Dictionary of Australasian Biography
- {{Cite Catholic Encyclopedia}}: Catholic Encyclopedia
- {{Cite Collier's}}: Collier's New Encyclopaedia
- {{Cite DNB}}: Dictionary of National Biography (1885-1900 edition & 1901 supplement)
- {{Cite DNB12}}: Dictionary of National Biography (1912 supplement)
- {{Cite DNBSupp}}: Dictionary of National Biography (1901 supplement)
- {{Cite EB1911}}: Encyclopædia Britannica (1911)
- {{Cite EB1922}}: Encyclopædia Britannica (1922)
- {{Cite NIE}}: New International Encyclopaedia
- {{NSRW Cite}}: The New Student's Reference Work
- {{Cite Nuttall}}: The Nuttall Encyclopaedia
- {{WsPSM}}: Popular Science Monthly
- {{Cite SBDEL}}: A Short Biographical Dictionary of English Literature
This template produces COinS metadata; see COinS in Wikipedia for background information.
TemplateData
[edit]TemplateData for Cite wikisource
This template is used to cite sources in Wikipedia. It is specifically for works in the sister project Wikisource.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | Title of book on Wikisource. This must not be wikilinked. This must not have any formatting. It will be automatically linked to Wikisource. | String | required |
author | author | no description | Unknown | optional |
date | date | Date of source being referenced. Can be full date (day, month, and year) or partial date (month and year, or year). Use same format as other publication dates in the citations. | Date | optional |
first | first | no description | Unknown | optional |
last | last | no description | Unknown | optional |
publication-date | publication-date | no description | Unknown | optional |
1 | 1 | no description | Unknown | optional |
2 | 2 | no description | Unknown | optional |
3 | 3 | no description | Unknown | optional |
firsticon | firsticon | no description | Unknown | optional |
iconfirst | iconfirst | no description | Unknown | optional |
vb | vb | no description | Unknown | optional |
class | class | no description | Unknown | optional |
authormask | authormask | no description | Unknown | optional |
author-mask | author-mask | no description | Unknown | optional |
surname | surname | no description | Unknown | optional |
last1 | last1 | no description | Unknown | optional |
surname1 | surname1 | no description | Unknown | optional |
author1 | author1 | no description | Unknown | optional |
authors | authors | no description | Unknown | optional |
last2 | last2 | no description | Unknown | optional |
surname2 | surname2 | no description | Unknown | optional |
author2 | author2 | no description | Unknown | optional |
last3 | last3 | no description | Unknown | optional |
surname3 | surname3 | no description | Unknown | optional |
author3 | author3 | no description | Unknown | optional |
last4 | last4 | no description | Unknown | optional |
surname4 | surname4 | no description | Unknown | optional |
author4 | author4 | no description | Unknown | optional |
last5 | last5 | no description | Unknown | optional |
surname5 | surname5 | no description | Unknown | optional |
author5 | author5 | no description | Unknown | optional |
last6 | last6 | no description | Unknown | optional |
surname6 | surname6 | no description | Unknown | optional |
author6 | author6 | no description | Unknown | optional |
last7 | last7 | no description | Unknown | optional |
surname7 | surname7 | no description | Unknown | optional |
author7 | author7 | no description | Unknown | optional |
last8 | last8 | no description | Unknown | optional |
surname8 | surname8 | no description | Unknown | optional |
author8 | author8 | no description | Unknown | optional |
last9 | last9 | no description | Unknown | optional |
surname9 | surname9 | no description | Unknown | optional |
author9 | author9 | no description | Unknown | optional |
first1 | first1 | no description | Unknown | optional |
given1 | given1 | no description | Unknown | optional |
given | given | no description | Unknown | optional |
first2 | first2 | no description | Unknown | optional |
given2 | given2 | no description | Unknown | optional |
first3 | first3 | no description | Unknown | optional |
given3 | given3 | no description | Unknown | optional |
first4 | first4 | no description | Unknown | optional |
given4 | given4 | no description | Unknown | optional |
first5 | first5 | no description | Unknown | optional |
given5 | given5 | no description | Unknown | optional |
first6 | first6 | no description | Unknown | optional |
given6 | given6 | no description | Unknown | optional |
first7 | first7 | no description | Unknown | optional |
given7 | given7 | no description | Unknown | optional |
first8 | first8 | no description | Unknown | optional |
given8 | given8 | no description | Unknown | optional |
first9 | first9 | no description | Unknown | optional |
given9 | given9 | no description | Unknown | optional |
author-link | author-link | no description | Unknown | optional |
author1-link | author1-link | no description | Unknown | optional |
authorlink | authorlink | no description | Unknown | optional |
authorlink1 | authorlink1 | no description | Unknown | optional |
author2-link | author2-link | no description | Unknown | optional |
authorlink2 | authorlink2 | no description | Unknown | optional |
author3-link | author3-link | no description | Unknown | optional |
authorlink3 | authorlink3 | no description | Unknown | optional |
author4-link | author4-link | no description | Unknown | optional |
authorlink4 | authorlink4 | no description | Unknown | optional |
author5-link | author5-link | no description | Unknown | optional |
authorlink5 | authorlink5 | no description | Unknown | optional |
author6-link | author6-link | no description | Unknown | optional |
authorlink6 | authorlink6 | no description | Unknown | optional |
author7-link | author7-link | no description | Unknown | optional |
authorlink7 | authorlink7 | no description | Unknown | optional |
author8-link | author8-link | no description | Unknown | optional |
authorlink8 | authorlink8 | no description | Unknown | optional |
author9-link | author9-link | no description | Unknown | optional |
authorlink9 | authorlink9 | no description | Unknown | optional |
coauthor | coauthor | no description | Unknown | optional |
coauthors | coauthors | no description | Unknown | optional |
year | year | no description | Unknown | optional |
orig-date | orig-date | no description | Unknown | optional |
day | day | no description | Unknown | optional |
month | month | no description | Unknown | optional |
plaintitle | plaintitle | no description | Unknown | optional |
noicon | noicon | no description | Unknown | optional |
wslanguage | wslanguage | no description | Unknown | optional |
wslink | wslink | no description | Unknown | optional |
anchor | anchor | no description | Unknown | optional |
trans_chapter | trans_chapter | no description | Unknown | optional |
trans_title | trans_title | no description | Unknown | optional |
archiveurl | archiveurl | no description | Unknown | optional |
url | url | no description | Unknown | optional |
archivedate | archivedate | no description | Unknown | optional |
type | type | no description | Unknown | optional |
series | series | no description | Unknown | optional |
volume | volume | no description | Unknown | optional |
issue | issue | no description | Unknown | optional |
number | number | no description | Unknown | optional |
wspage | wspage | no description | Unknown | optional |
wspages | wspages | no description | Unknown | optional |
chapter | chapter | no description | Unknown | optional |
pages | pages | no description | Unknown | optional |
page | page | no description | Unknown | optional |
at | at | no description | Unknown | optional |
nopp | nopp | no description | Unknown | optional |
contribution | contribution | no description | Unknown | optional |
plainchapter | plainchapter | no description | Unknown | optional |
chapter-url | chapter-url | no description | Unknown | optional |
chapterurl | chapterurl | no description | Unknown | optional |
contribution-url | contribution-url | no description | Unknown | optional |
others | others | no description | Unknown | optional |
edition | edition | no description | Unknown | optional |
place | place | no description | Unknown | optional |
location | location | no description | Unknown | optional |
publication-place | publication-place | no description | Unknown | optional |
publisher | publisher | no description | Unknown | optional |
editor-last | editor-last | no description | Unknown | optional |
editor-surname | editor-surname | no description | Unknown | optional |
editor1-last | editor1-last | no description | Unknown | optional |
editor1-surname | editor1-surname | no description | Unknown | optional |
editor | editor | no description | Unknown | optional |
editors | editors | no description | Unknown | optional |
editor2-last | editor2-last | no description | Unknown | optional |
editor2-surname | editor2-surname | no description | Unknown | optional |
editor3-last | editor3-last | no description | Unknown | optional |
editor3-surname | editor3-surname | no description | Unknown | optional |
editor4-last | editor4-last | no description | Unknown | optional |
editor4-surname | editor4-surname | no description | Unknown | optional |
editor-first | editor-first | no description | Unknown | optional |
editor-given | editor-given | no description | Unknown | optional |
editor1-first | editor1-first | no description | Unknown | optional |
editor1-given | editor1-given | no description | Unknown | optional |
editor2-first | editor2-first | no description | Unknown | optional |
editor2-given | editor2-given | no description | Unknown | optional |
editor3-first | editor3-first | no description | Unknown | optional |
editor3-given | editor3-given | no description | Unknown | optional |
editor4-first | editor4-first | no description | Unknown | optional |
editor4-given | editor4-given | no description | Unknown | optional |
editor-link | editor-link | no description | Unknown | optional |
editor1-link | editor1-link | no description | Unknown | optional |
editor2-link | editor2-link | no description | Unknown | optional |
editor3-link | editor3-link | no description | Unknown | optional |
editor4-link | editor4-link | no description | Unknown | optional |
language | language | no description | Unknown | optional |
in | in | no description | Unknown | optional |
format | format | no description | Unknown | optional |
arxiv | arxiv | no description | Unknown | optional |
asin | asin | no description | Unknown | optional |
ASIN | ASIN | no description | Unknown | optional |
bibcode | bibcode | no description | Unknown | optional |
doi | doi | no description | Unknown | optional |
DOI | DOI | no description | Unknown | optional |
doi_inactivedate | doi_inactivedate | no description | Unknown | optional |
doi_brokendate | doi_brokendate | no description | Unknown | optional |
isbn | isbn | no description | Unknown | optional |
ISBN | ISBN | no description | Unknown | optional |
issn | issn | no description | Unknown | optional |
ISSN | ISSN | no description | Unknown | optional |
jfm | jfm | no description | Unknown | optional |
JFM | JFM | no description | Unknown | optional |
jstor | jstor | no description | Unknown | optional |
JSTOR | JSTOR | no description | Unknown | optional |
lccn | lccn | no description | Unknown | optional |
LCCN | LCCN | no description | Unknown | optional |
mr | mr | no description | Unknown | optional |
MR | MR | no description | Unknown | optional |
oclc | oclc | no description | Unknown | optional |
OCLC | OCLC | no description | Unknown | optional |
ol | ol | no description | Unknown | optional |
OL | OL | no description | Unknown | optional |
osti | osti | no description | Unknown | optional |
OSTI | OSTI | no description | Unknown | optional |
pmc | pmc | no description | Unknown | optional |
PMC | PMC | no description | Unknown | optional |
pmc-embargo-date | pmc-embargo-date | no description | Unknown | optional |
pmid | pmid | no description | Unknown | optional |
PMID | PMID | no description | Unknown | optional |
rfc | rfc | no description | Unknown | optional |
RFC | RFC | no description | Unknown | optional |
ssrn | ssrn | no description | Unknown | optional |
SSRN | SSRN | no description | Unknown | optional |
zbl | zbl | no description | Unknown | optional |
id | id | no description | Unknown | optional |
ID | ID | no description | Unknown | optional |
access-date | access-date | no description | Unknown | optional |
accessdate | accessdate | no description | Unknown | optional |
dateformat | dateformat | no description | Unknown | optional |
quote | quote | no description | Unknown | optional |
laysummary | laysummary | no description | Unknown | optional |
laydate | laydate | no description | Unknown | optional |
ref | ref | no description | Unknown | optional |
separator | separator | no description | Unknown | optional |
seperator | seperator | no description | Unknown | optional |
postscript | postscript | no description | Unknown | optional |
author-separator | author-separator | no description | Unknown | optional |
author-name-separator | author-name-separator | no description | Unknown | optional |
display-authors | display-authors | no description | Unknown | optional |
lastauthoramp | lastauthoramp | no description | Unknown | optional |
scan | scan | no description | Unknown | optional |
accessdaymonth | accessdaymonth | no description | Unknown | optional |
accessmonthday | accessmonthday | no description | Unknown | optional |
accessday | accessday | no description | Unknown | optional |
accessmonth | accessmonth | no description | Unknown | optional |
accessyear | accessyear | no description | Unknown | optional |
work | work | no description | Unknown | optional |