Template:Cite wikisource/doc
This is a documentation subpage for Template:Cite wikisource. It contains usage information, categories and other content that is not part of the original template page. |
This template is used to cite sources in Wikipedia. It is specifically for works in the sister project Wikisource.
Usage
All field names must be in lowercase.
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. See also the complete description of fields.
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) | ||
| ||
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). " Aard-vark". Encyclopædia Britannica (Eleventh ed.). Cambridge University Press. Wikisource. |
Example 2 | {{cite wikisource | class = journal | 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 }} |
Lounsbury, T. E. (November 1881). " Sketch of George Jarvis Brush". Popular Science Monthly. 20. D. Appleton & Company. Wikisource. 117. . [scan] |
Vertical list | Prerequisites * | Brief instructions |
---|---|---|
{{cite wikisource | class = | last = | first = | authormask = | authorlink = | coauthors = | firstn = | lastn = | authorn-link = | editor = | editorn-last = | editorn-first = | editor-link = | editorn-link = | others = | title = | trans_title = | plaintitle = | wslink = | archiveurl = | archivedate = | type = | edition = | series = | volume = | date = | origyear = | year = | month = | publisher = | location = | wslanguage = | language = | isbn = | oclc = | doi = | bibcode = | id = | page = | pages = | nopp = | at = | wspage = | chapter = | trans_chapter = | plainchapter = | quote = | ref = | laysummary = | laydate = | separator = | postscript = | lastauthoramp = | scan = | noicon = | firsticon = | vb = }} |
last last last lastn editor or editor-last editorn-last archiveurl= year or date year publisher page or pages chapter laysummary coauthors or >1 lastn Page: (Wikisource) |
(no wikilink) (no wikilink) alternative to first2, last2...first9, last9 (no wikilink). n=1 through 9 n=1 through 9 n=1 through 4 n=1 through 4 n=1 through 4 title to display (links to Wikisource) title to display (no link to Wikisource) title at Wikisource (links to Wikisource) †preferred (no wikilink) alternative to date always include ISBN if one has been assigned hides automatic 'p' or 'pp'. alternative to page/pages when those are used with nopp (Links to Wikisource) ‡(no wikilink). Synonymous with "contribution". (Links to Wikisource) ‡(wikilink allowed). (No link to Wikisource) |
† This is the preferred field with its alternates listed below.
‡ |chapter=
cannot have wikilinks; |plainchapter=
can have wikilinks
Examples
- Just a title
* {{cite wikisource | title=Mysterious book }}
- Year and title
* {{cite wikisource | title=Mysterious book | year=1901 }}
- Mysterious book. Wikisource. 1901.
- Basic usage
* {{cite wikisource | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}
- Bloggs, Joe (1974). Book of Bloggs. Wikisource.
- 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=1234567890}}
- Bloggs, Fred (2001-01-01). " Chapter 2: The History Of The Bloggs Family". In Doe, John. Big Book With Many Chapters and distinct chapter authors. Book Publishers. Wikisource.
.
Parameters
Syntax
Nested parameters rely on their parent parameters:
- parent
- OR: parent2—may be used instead of parent
- child—may be used with parent (and is ignored if parent is not used)
- OR: child2—may be used instead of child (and is ignored if parent2 is not used)
- Where aliases are listed, only one of the parameters may be defined; if aliased parameters are defined, then only one will show.
This template embeds COinS metadata in the HTML output, allowing reference management software to retrieve bibliographic metadata; see Wikipedia:COinS.
- Be careful using templates within the citation template, as many will add a lot of extraneous HTML or CSS that will be rendered in the meta-data.
- Known templates that should not be used: {{smallcaps}}.
By default, sets of fields are terminated with a period (.); this can be an issue when the last field in an abbreviation or initial with a period, as two periods then display. The only solution is to not include the last period in the value for the set of fields.
Description
Authors
- last: Surname of author. Do not wikilink—use authorlink instead. Where the surname is usually written first—as in Chinese—or for corporate authors, simply use last to include the same format as the source. Aliases: last, author, authors, last1, author1
- first: Given or first names of author, including title(s); for example: Firstname Middlename or Firstname M. or Dr. Firstname M., Sr. Do not wikilink—use authorlink instead. Aliases: first, first1.
- OR: for multiple authors, use last1, first1 through last9, first9 for up to nine authors. By default, if nine authors are defined, then only eight will show and "et al." will show in place of the last author. Aliases: last1, author1 through last9, author9.
- authorlink: Title of existing Wikipedia article about the author—not the author's website; do not wikilink. Aliases: authorlink, authorlink1, author-link, author1-link.
- OR: for multiple authors, use authorlink1 through authorlink9. Aliases: authorlink1, author1-link through authorlink9, author9-link.
- coauthors: (deprecated) Names of of coauthors. Use the same format as the authors.
- others: To record other contributors to the work, such as "Illustrated by John Smith" or "Translated by John Smith."
- When using Shortened footnotes or parenthetical referencing
styles with templates, do not use multiple names in one field else the anchor will not match the inline link.
Title
- title: Title of book. This, or plaintitle, is the only required parameter. Title of book on Wikisource. This must not be wikilinked. This must not have any formatting. It will be automatically linked to Wikisource.
- plaintitle: Title of book. This, or title, is the only required parameter. If plaintitle is used, it will override title. This can be useful in cases where the chapter should be the link to wikisource (for example, with articles in journals or encyclopaedias, the title should be the title of the journal or encyclopedia and the chapter should be the article). Can be wikilinked but only to an existing Wikipedia article. Do not use italics.
- wslink: The full link to the work on Wikisource. To be used where the title is different to 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 will only create a link to wikisource if chapter is also used.
- anchor: In combination with
title
,chapter
and/orwslink
, 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 theat
parameter as well. This parameter can be used in addition towspage
as it affects the main link, not the page number link. - trans_title: If the book cited is in a foreign language, an English translation of the title can be given here. The template will display this in square brackets after the title field and it will point to the url link, if used. Use of language parameter is recommended if this parameter is used.
- language: The language the source is written in, if not English. Displays in parentheses with "in" before the language name. Use the full language name; do not use icons or templates.
- wslanguage: The language of the wikisource hosting the work (if not English Wikisource) in the ISO 639-1 (two-letter) or ISO 639-2 (three letter) code for the language. (For example, fr indicates French Wikisource.)
- type: Provides additional information about the media type of the source; format in sentence case. Displays in parentheses following the title. Examples: Thesis, Booklet, CD liner, Press release.
- chapter: The title of the source. May be wikilinked or may use chapter-url, but not both. Displays in quotes.
- trans_chapter: English translation of the title if the source cited is in a foreign language. Displays in square brackets after the chapter field; if chapter-url is defined, then trans_title is included in the link. Use of the language parameter is recommended.
- plainchapter: The chapter of the book, written in full. This overrides the chapter parameter and will not create a link to Wikisource.
Date
- date: Full date of source being referenced in the same format as other publication dates in the citations.[1] Do not wikilink. Displays after the authors and enclosed in parentheses. If there is no author, then displays after publisher.
- OR: year: Year of source being referenced.
- month: Name of the month of publication. If you also have the day, use date instead; do not wikilink.
- origyear: Original publication year; displays after the date or year. For clarity, please supply specifics; example:
|origyear=First published 1859
or|origyear=Composed 1904
.
- ↑ Publication dates in article references should all have the same format. See MOS:DATEUNIFY.
Publisher
- publisher: Name of publisher; may be wikilinked if relevant. Not normally included for periodicals. Corporate designations such as "Ltd", "Inc" or "GmbH" are not usually included. Displays after title; if work is defined, then publisher and location are enclosed in parentheses.
- location: Geographical place of publication; generally not wikilinked; omit when the name of the work includes the location; examples: The Boston Globe, The Times of India. Displays preceding publisher.
- publication-date: Date of publication when different from the date the work was written. Displays only if year or date are defined and only if different, else publication-date is used and displayed as date. Use the same format as other dates in the article; do not wikilink. Follows publisher; if work is not defined, then publication-date is preceded by "published" and enclosed in parenthesis.
Edition, series, volume
- edition: When the publication has more than one edition; for example: "2nd", "Revised" etc. Displays " ed." after this field, so
|edition=2nd
produces "2nd ed." Does not display if a periodical field is defined.
- series or version: When the source is part of a series, such as a book series or a journal where the issue numbering has restarted.
- volume: For one publication published in several volumes. Displays in bold after the title and series fields; if bolding is not desired, then include the volume information in the title field.
In-source locations
- page: Page in the source that supports the content. Displays preceded with
<syntaxhighlight lang="text" enclose="none">p.</syntaxhighlight>
unless|nopp=y
. - OR: pages: Pages in the source that supports the content; separate page ranges with an en dash (–); separate non-sequential pages with a comma (,); do not use to indicate the total number of pages in the source. Displays preceded with
<syntaxhighlight lang="text" enclose="none">pp.</syntaxhighlight>
unless|nopp=y
.- nopp: Set to y to suppress the
<syntaxhighlight lang="text" enclose="none">p.</syntaxhighlight>
or<syntaxhighlight lang="text" enclose="none">pp.</syntaxhighlight>
notations where this is inappropriate; for example, where|page=Front cover
.
- nopp: Set to y to suppress the
- OR: at: For sources where a page number is inappropriate or insufficient. Overridden by
|page=
or|pages=
.
- Examples: page (p.) or pages (pp.); section (sec.), column (col.), paragraph (para.); track; hours, minutes and seconds; act, scene, canto, book, part, folio, stanza, back cover, liner notes, indicia, colophon, dust jacket, verse.
- wspage: The page number on Wikisource. This will usually be an anchor within a larger page. It can be useful to guide the reader to a specific item in a larger body of text. Anchors are automatically generated for proofread texts at Wikisource but can be added manually if necessary.
Anchor
- ref: ID for anchor. By default, no anchor is generated. The ordinary nonempty value
|ref=ID
generates an anchor with the given ID; such a linkable reference can be made the target of wikilinks to full references, especially useful in short citations like shortened notes and parenthetical referencing. The special value|ref=harv
generates an anchor suitable for the {{harv}} template. See: Anchors for Harvard referencing templates.
Identifiers
- id: A unique identifier, used where none of the specialized identifiers are applicable; wikilink or use a template as applicable.
These identifiers create links and are designed to accept a single value. Using multiple values or other text will break the link and/or invalidate the identifier.
- arxiv: arXiv identifier; for example:
arxiv=hep-th/9205027
- asin: Amazon Standard Identification Number
- asin-tld: ASIN top-level domain for Amazon sites other than the US; valid values:
ca
,cn
,co.jp
,co.uk
,de
,es
,fr
,it
- asin-tld: ASIN top-level domain for Amazon sites other than the US; valid values:
- bibcode: Bibcode; used by a number of astronomical data systems; for example:
1974AJ.....79..819H
- doi: Digital object identifier; for example:
10.1038/news070508-7
. Checked to ensure it begins with (<syntaxhighlight lang="text" enclose="none">10.</syntaxhighlight>
).- doi_brokendate: Date the DOI is broken; use the same format as other dates in the article.
- isbn: International Standard Book Number; for example:
978-0-8126-9593-9
. (See: Wikipedia:ISBN and ISBN). Dashes in the ISBN are optional, but preferred. Use the 13-digit ISBN wherever possible; this can normally be found beneath the barcode as a number beginning with 978 or 979 (barcodes beginning with any other numbers are not ISBNs). For sources with the older 9 digit SBN system, prefix the number with a zero; thus, SBN 902888-45-5 should be entered as|isbn=0-902888-45-5
. Checked for length, invalid characters and the proper check digit. - issn: International Standard Serial Number; eight characters may be split into two groups of four using a hyphen, but not an en dash or a space.
- jfm: Jahrbuch über die Fortschritte der Mathematik
- jstor: JSTOR abstract; for example: "
jstor=3793107
" will generate JSTOR 3793107. - lccn: Library of Congress Control Number
- mr: Mathematical Reviews
- oclc: OCLC
- ol: Open Library
- osti: Office of Scientific and Technical Information
- pmc: PubMed Central; use article number for full-text free repository of a journal article.
- pmid: PubMed; use unique identifier.
- rfc: Request for Comments
- ssrn: Social Science Research Network
- zbl: Zentralblatt MATH
Quote
- quote: Relevant text quoted from the source. Displays enclosed in quotes. When supplied, the citation terminator (a period by default) is suppressed, so the quote needs to include terminating punctuation.
Editors
- editor-last: Surname of editor. Do not wikilink—use editor-link instead. Where the surname is usually written first—as in Chinese—or for corporate authors, simply use editor-last to include the same format as the source. Aliases: editor1-last, editor, editors.
- editor-first: Given or first names of editor, including title(s); example: Firstname Middlename or Firstname M. or Dr. Firstname M., Sr. Do not wikilink—use editor-link instead. Aliases: editor1-first.
- OR: for multiple editors, use editor1-last, editor1-first through editor4-last, editor4-first for up to four editors.
- editor-link: Title of existing Wikipedia article about the editor—not the editor's website; do not wikilink. Aliases: editor1-link.
- OR: for multiple editors, use editor1-link through editor4-link.
- Display:
- If authors: Authors are first, followed by the editors and the included work, then the main work.
- If no authors: Editors appear before the included work; a single editor is followed by "ed."; multiple editors are followed by "eds."; more than three editors will be followed by "et al., eds."
Laysummary
- laysummary: URL link to a non-technical summary or review of the source; the URL title is set to "Lay summary".
- laysource: Name of the source of the laysummary. Displays in italics and preceded by an endash.
- laydate: Date of the summary. Displays in parentheses.
Display options
- postscript: The closing punctuation for the citation; defaults to a period (
.
); if the parameter is present, but blank, no terminating punctuation will be used. Ignored if quote is defined. - separator: The punctuation used to separate lists of authors, editors, etc. Defaults to a period (
.
); if the parameter is present, but blank, no separator punctuation will be used; a space must be encoded as 
do not use an asterisk (*
), colon (:
) or hash (#
) as they will be interpreted as wikimarkup.
Wikisource
- 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
- class: The CSS class for the citation; use only when this template is used as a metatemplate; do not use directly when making citations in the article namespace.
- noicon: If
|noicon=yes
, then Wikisource icons will not be added to Wikisource links. - firsticon: If
|firsticon=yes
, then the Wikisource icon will be prepended. - vb: If
|vb=yes
, then the text "This article incorporates text from a publication now in the public domain:" will be prepended.
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}}
Sense and Sensibility. Wikisource.
{{cite wikisource|Sense and Sensibility|Jane Austen}}
Jane Austen. Sense and Sensibility. Wikisource.
{{cite wikisource|Sentido y sensibilidad|Jane Austen|es}}
Jane Austen (in Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found.). Sentido y sensibilidad. Wikisource.
Related pages
Specific Wikisource citation templates
- Category:Wikisource link templates
- {{Cite Americana}}: Encyclopedia Americana
- {{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.