Template:Cite wikisource/doc
This is a documentation subpage for Template:Cite wikisource. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on many 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 Wikisource.
Usage
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
|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
Example 1 | {{cite wikisource |editor-first= Hugh |editor-last= Chisholm |chapter= Aard-vark |wslink= 1911 Encyclopædia Britannica |plaintitle= [[w: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=[[w:Popular Science Monthly|Popular Science Monthly]] |volume=20 |date=November 1881 |wspage=117 |publisher=[[w:D. Appleton & Company|D. Appleton & Company]] |issn=0161-7370 |scan= Page:Popular Science Monthly Volume 20.djvu/127 |nolink=yes }} |
Lounsbury, T. E. (November 1881). "Sketch of George Jarvis Brush". Popular Science Monthly. D. Appleton & Company. Vol. 20. 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=[[w:Popular Science Monthly|Popular Science Monthly]] |volume=20 |date=November 1881 |wspage=117 |publisher=[[w:D. Appleton & Company|D. Appleton & Company]] |issn=0161-7370 |scan= Page:Popular Science Monthly Volume 20.djvu/127 |_debug=yes }} |
|
Backward compatibility
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
{{cite wikisource|Sense and Sensibility}}– via
{{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
- Wikiproject Wikisource
- {{ws}}
- {{Cite WS}}
Specific Wikisource citation templates
This template produces COinS metadata; see COinS in Wikipedia for background information.
TemplateData
TemplateData for Cite wikisource
<templatedata> { "params": { "1": {}, "2": {}, "3": {}, "firsticon": {}, "iconfirst": {}, "vb": {}, "class": {}, "authormask": {}, "author-mask": {}, "last": {}, "surname": {}, "last1": {}, "surname1": {}, "author1": {}, "author": {}, "authors": {}, "last2": {}, "surname2": {}, "author2": {}, "last3": {}, "surname3": {}, "author3": {}, "last4": {}, "surname4": {}, "author4": {}, "last5": {}, "surname5": {}, "author5": {}, "last6": {}, "surname6": {}, "author6": {}, "last7": {}, "surname7": {}, "author7": {}, "last8": {}, "surname8": {}, "author8": {}, "last9": {}, "surname9": {}, "author9": {}, "first1": {}, "given1": {}, "first": {}, "given": {}, "first2": {}, "given2": {}, "first3": {}, "given3": {}, "first4": {}, "given4": {}, "first5": {}, "given5": {}, "first6": {}, "given6": {}, "first7": {}, "given7": {}, "first8": {}, "given8": {}, "first9": {}, "given9": {}, "author-link": {}, "author1-link": {}, "authorlink": {}, "authorlink1": {}, "author2-link": {}, "authorlink2": {}, "author3-link": {}, "authorlink3": {}, "author4-link": {}, "authorlink4": {}, "author5-link": {}, "authorlink5": {}, "author6-link": {}, "authorlink6": {}, "author7-link": {}, "authorlink7": {}, "author8-link": {}, "authorlink8": {}, "author9-link": {}, "authorlink9": {}, "coauthor": {}, "coauthors": {}, "year": {}, "date": { "description": "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.", "type": "date" }, "publication-date": {}, "orig-date": {}, "day": {}, "month": {}, "plaintitle": {}, "title": { "description": "Title of book on Wikisource. This must not be wikilinked. This must not have any formatting. It will be automatically linked to Wikisource. ", "type": "string", "required": true }, "noicon": {}, "wslanguage": {}, "wslink": {}, "anchor": {}, "trans_chapter": {}, "trans_title": {}, "archiveurl": {}, "url": {}, "archivedate": {}, "type": {}, "series": {}, "volume": {}, "issue": {}, "number": {}, "wspage": {}, "wspages": {}, "chapter": {}, "pages": {}, "page": {}, "at": {}, "nopp": {}, "contribution": {}, "plainchapter": {}, "chapter-url": {}, "chapterurl": {}, "contribution-url": {}, "others": {}, "edition": {}, "place": {}, "location": {}, "publication-place": {}, "publisher": {}, "editor-last": {}, "editor-surname": {}, "editor1-last": {}, "editor1-surname": {}, "editor": {}, "editors": {}, "editor2-last": {}, "editor2-surname": {}, "editor3-last": {}, "editor3-surname": {}, "editor4-last": {}, "editor4-surname": {}, "editor-first": {}, "editor-given": {}, "editor1-first": {}, "editor1-given": {}, "editor2-first": {}, "editor2-given": {}, "editor3-first": {}, "editor3-given": {}, "editor4-first": {}, "editor4-given": {}, "editor-link": {}, "editor1-link": {}, "editor2-link": {}, "editor3-link": {}, "editor4-link": {}, "language": {}, "in": {}, "format": {}, "arxiv": {}, "asin": {}, "ASIN": {}, "bibcode": {}, "doi": {}, "DOI": {}, "doi_inactivedate": {}, "doi_brokendate": {}, "isbn": {}, "ISBN": {}, "issn": {}, "ISSN": {}, "jfm": {}, "JFM": {}, "jstor": {}, "JSTOR": {}, "lccn": {}, "LCCN": {}, "mr": {}, "MR": {}, "oclc": {}, "OCLC": {}, "ol": {}, "OL": {}, "osti": {}, "OSTI": {}, "pmc": {}, "PMC": {}, "pmc-embargo-date": {}, "pmid": {}, "PMID": {}, "rfc": {}, "RFC": {}, "ssrn": {}, "SSRN": {}, "zbl": {}, "id": {}, "ID": {}, "access-date": {}, "accessdate": {}, "dateformat": {}, "quote": {}, "laysummary": {}, "laydate": {}, "ref": {}, "separator": {}, "seperator": {}, "postscript": {}, "author-separator": {}, "author-name-separator": {}, "display-authors": {}, "lastauthoramp": {}, "scan": {}, "accessdaymonth": {}, "accessmonthday": {}, "accessday": {}, "accessmonth": {}, "accessyear": {},
"work": {}
}, "description": "This template is used to cite sources in Wikipedia. It is specifically for works in the sister project Wikisource.", "paramOrder": [ "title", "author", "date", "first", "last", "publication-date", "1", "2", "3", "firsticon", "iconfirst", "vb", "class", "authormask", "author-mask", "surname", "last1", "surname1", "author1", "authors", "last2", "surname2", "author2", "last3", "surname3", "author3", "last4", "surname4", "author4", "last5", "surname5", "author5", "last6", "surname6", "author6", "last7", "surname7", "author7", "last8", "surname8", "author8", "last9", "surname9", "author9", "first1", "given1", "given", "first2", "given2", "first3", "given3", "first4", "given4", "first5", "given5", "first6", "given6", "first7", "given7", "first8", "given8", "first9", "given9", "author-link", "author1-link", "authorlink", "authorlink1", "author2-link", "authorlink2", "author3-link", "authorlink3", "author4-link", "authorlink4", "author5-link", "authorlink5", "author6-link", "authorlink6", "author7-link", "authorlink7", "author8-link", "authorlink8", "author9-link", "authorlink9", "coauthor", "coauthors", "year", "orig-date", "day", "month", "plaintitle", "noicon", "wslanguage", "wslink", "anchor", "trans_chapter", "trans_title", "archiveurl", "url", "archivedate", "type", "series", "volume", "issue", "number", "wspage", "wspages", "chapter", "pages", "page", "at", "nopp", "contribution", "plainchapter", "chapter-url", "chapterurl", "contribution-url", "others", "edition", "place", "location", "publication-place", "publisher", "editor-last", "editor-surname", "editor1-last", "editor1-surname", "editor", "editors", "editor2-last", "editor2-surname", "editor3-last", "editor3-surname", "editor4-last", "editor4-surname", "editor-first", "editor-given", "editor1-first", "editor1-given", "editor2-first", "editor2-given", "editor3-first", "editor3-given", "editor4-first", "editor4-given", "editor-link", "editor1-link", "editor2-link", "editor3-link", "editor4-link", "language", "in", "format", "arxiv", "asin", "ASIN", "bibcode", "doi", "DOI", "doi_inactivedate", "doi_brokendate", "isbn", "ISBN", "issn", "ISSN", "jfm", "JFM", "jstor", "JSTOR", "lccn", "LCCN", "mr", "MR", "oclc", "OCLC", "ol", "OL", "osti", "OSTI", "pmc", "PMC", "pmc-embargo-date", "pmid", "PMID", "rfc", "RFC", "ssrn", "SSRN", "zbl", "id", "ID", "access-date", "accessdate", "dateformat", "quote", "laysummary", "laydate", "ref", "separator", "seperator", "postscript", "author-separator", "author-name-separator", "display-authors", "lastauthoramp", "scan", "accessdaymonth", "accessmonthday", "accessday", "accessmonth", "accessyear",
"work"
] } </templatedata>