Difference between revisions of "Template:Cite wikisource/doc"

From blackwiki
Jump to navigation Jump to search
imported>Trappist the monk
(→‎Usage: ce;)
imported>Trappist the monk
(leave cs1|2 documentation to the cs1|2 template doc pages;)
Line 121: Line 121:
 
}}
 
}}
 
|}
 
|}
 
==Examples==
 
;Just a title:
 
:<code><nowiki>* {{cite wikisource | title=Mysterious book }}</nowiki></code>
 
:*{{cite wikisource | title = Mysterious book }}
 
;Year and title:
 
:<code><nowiki>* {{cite wikisource | title=Mysterious book | year=1901 }}</nowiki></code>
 
:*{{cite wikisource | title = Mysterious book | year = 1901 }}
 
;Basic usage:
 
:<code><nowiki>* {{cite wikisource | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}</nowiki></code>
 
:*{{cite wikisource | first=Joe | last=Bloggs | authorlink=Joe Bloggs | year=1974 | title=Book of Bloggs }}
 
; Citing a chapter in a book with different authors for different chapters and an editor
 
:<code><nowiki>* {{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}}</nowiki></code>
 
:*{{cite wikisource |last=Bloggs | first=Fred |editor-first=John| editor-last=Doe |plaintitle=Big 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}}
 
 
==Parameters==
 
<!-- ADDED PARAMETERS: plaintitle, plainchapter, wslink, wspage, noicon, firsticon, class, scan, wslanguage -->
 
 
===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 multiple 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]]. As a general rule, only one data item per parameter. Do not include explanatory or alternate text:
 
* Use {{xt|{{para|date|27 September 2007}}}} not {{!xt|{{para|date|27 September 2007 (print version 25 September)}}}}
 
 
Use of templates within the citation template, is discouraged because many of these templates will add extraneous HTML or CSS that will be rendered in the metadata. Also, HTML entities (e.g.<code>&amp;nbsp;</code>, <code>&amp;ndash;</code>) should not be used in parameters that contribute to the metadata.  Do not include Wiki markup <code><nowiki>''</nowiki></code> (italic font) or <code><nowiki>'''</nowiki></code> (bold font) because these markup characters will contaminate the metadata.
 
 
{{hidden begin |title=COinS metadata is created for these parameters}}
 
*{{para|periodical}}, {{para|journal}}, {{para|newspaper}}, {{para|magazine}}, {{para|work}}, {{para|website}}, {{para|encyclopedia}}, {{para|encyclopaedia}}, {{para|dictionary}}
 
*{{para|chapter}}, {{para|contribution}}, {{para|entry}}, {{para|article}}, {{para|section}}
 
*{{para|title}}
 
*{{para|publicationplace}}, {{para|publication-place}}, {{para|place}}, {{para|location}}
 
*{{para|date}}, {{para|year}}, {{para|publicationdate}}, {{para|publication-date}}
 
*{{para|series}}, {{para|version}}
 
*{{para|volume}}
 
*{{para|issue}}, {{para|number}}
 
*{{para|page}}, {{para|pages}}, {{para|at}}
 
*{{para|edition}}
 
*{{para|publisher}}, {{para|distributor}}, {{para|institution}}
 
*{{para|url}}
 
*{{para|chapterurl}}, {{para|chapter-url}}, {{para|contributionurl}}, {{para|contribution-url}}, {{para|sectionurl}}, {{para|section-url}}
 
*{{para|author#}}, {{para|Author#}}, {{para|authors#}}, {{para|author#-last}}, {{para|author-last#}}, {{para|last#}}, {{para|surname#}}
 
*{{para|"author#-first}}, {{para|author-first#}}, {{para|first#}}, {{para|given#}}
 
*any of the named identifiers ({{para|isbn}}, {{para|issn}}, {{para|doi}}, {{para|pmc}}, etc.)
 
{{hidden end}}
 
 
By default, sets of fields are terminated with a period (.). {{#ifeq: {{{lua|}}}|yes||This can be an issue when the last field uses an abbreviation or initial that ends with a period, as then two periods will display (..). The only solution is to not include the last period in the value for the set of fields.}}
 
 
====Description====
 
 
===Authors===
 
* {{anchor|csdoc_author}}'''last''': Surname of author. Do not wikilink—use '''author-link''' instead. For corporate authors, simply use '''last''' to include the same format as the source. Aliases: '''last1''', '''author''', '''authors''', '''author1'''{{#if:|, }}.
 
** '''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 '''author-link''' instead. Aliases: '''first1'''. Requires '''last'''; first name will not display if '''last''' is empty.
 
{{#if: |
 
** OR: for multiple authors, use '''last1''', '''first1''' through '''last<var>n</var>''', '''first<var>n</var>''' where ''n'' is any consecutive number for an unlimited number of authors (each '''first<var>n</var>''' requires a corresponding '''last<var>n</var>'''). See the [[#csdoc_display|display]] parameters to change how many authors are displayed. Aliases: '''author1''' through '''author<var>n</var>'''.
 
|
 
** OR: for multiple authors, use '''last1''', '''first1''' through '''last9''', '''first9''' for up to nine authors. By default, if nine authors are defined, only eight will show and "et al." will show in place of the last author. See the [[#csdoc_display|display]] parameters to change how many authors are displayed. Aliases: '''author1''' through '''author9'''.}}
 
:* '''author-link''': Title of existing Wikipedia article about the author—not the author's website; do not wikilink. Aliases: '''authorlink1''', '''authorlink''', '''author1-link''', '''author1link'''.
 
{{#if: |
 
:*OR: for multiple authors, use '''author-link1''' through '''author-link<var>n</var>'''. Aliases: '''author1link''' through '''author<var>n</var>link'''.
 
|
 
:*OR: for multiple authors, use '''author-link1''' through '''author-link9'''. Aliases: '''author1link''' through '''author9link'''.}}
 
:*'''name-list-format''': displays authors and editors in [[Vancouver style]] when set to <code>vanc</code> and when the list uses <code>last</code>/<code>first</code> parameters for the name list(s){{#if: yes|
 
* {{xtd|'''coauthors'''}}: (deprecated) <s>Names of coauthors. Requires '''author''', '''authors''', or '''last''n'''''</s> Include coauthors in '''author''' or '''authors''' or use separate '''author''n''''' or '''last''n'''''/'''first''n''''' to list coauthors.}}{{#if: yes|
 
* {{anchor|csdoc_others}}'''others''': To record other contributors to the work, including illustrators and translators. For the parameter value, write ''Illustrated by John Smith'' or ''Translated by John Smith''.}}
 
:When using {{sfnote|lc=y}} or {{paren|lc=y}} styles with templates, do not use multiple names in one field or 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 link will only create a link to wikisource if chapter is also used.
 
**'''anchor''': In combination with <code>title</code>, <code>chapter</code> and/or <code>wslink</code>, 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 <code>at</code> parameter as well. This parameter can be used in addition to <code>wspage</code> 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{{#if:|&#32;or [[List of ISO 639-1 codes|ISO 639-1]] code; use of language names or language codes recognized by Wikimedia adds the page to the appropriate subcategory of {{cl|CS1 foreign language sources}}}}; do not use templates or wikilinks.
 
*'''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. {{#if:|Defaults to .|Examples: Thesis, Booklet, CD liner, Press release.}} Alias: '''medium'''.
 
* '''{{#switch:
 
| booktitle = booktitle
 
| #default = chapter}}''': The chapter heading of the source. May be wikilinked or may use '''chapter-url''', but not both. {{#switch:{{BASEPAGENAME}}
 
|Cite journal
 
|Cite web
 
|Cite news
 
|Cite press release
 
|Cite conference
 
|Cite podcast = Not displayed even if set
 
|#default = Displays in quotes}}.
 
** '''trans-chapter''': English translation of the chapter heading, if the source cited is in a foreign language. Displays in square brackets after the '''{{#switch:
 
| booktitle = booktitle
 
| #default = chapter}}''' field; if '''chapter-url''' is defined, then '''trans-chapter''' 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===
 
* {{anchor|csdoc_date}}'''date''': Date of source being referenced. Can be full date (day, month, and year) or partial date (month and year{{#if:|, season and year}}, or year). Use same format as other publication dates in the citations.{{r|date|group=date}} Required when '''year''' is used to disambiguate {{tlx|sfn}} links to multiple-work citations by the same author in the same year.{{sup|[[Template:Sfn#More_than_one_work_in_a_year|[more]]]}} Do not wikilink. Displays after the authors and is enclosed in parentheses. If there is no author, then displays after publisher.{{#if:|&#32;Aliases: }} {{#if:|For acceptable date formats, see [[Help:Citation Style 1#Dates]].}}
 
{{#if:|:For approximate year, precede with "<code>c. </code>", like this: {{para|date|c. 1900}}; for no date, add as {{para|date|n.d.}} }}
 
* {{anchor|csdoc_year}}OR:
 
** '''year''': Year of source being referenced ...
 
**: Is the template {{tl|cite episode}} or {{tl|cite serial}}?
 
 
::::NO: Does the template use {{para|ref|harv}}? (answer YES if the template is {{tlx|citation}})
 
:::::NO: use {{para|date}}.
 
:::::YES:  Is the date format in {{para|date}} YYYY-MM-DD?
 
::::::NO: use {{para|date}}.
 
::::::YES: Does the citation require a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]]?
 
:::::::NO: use {{para|date}}.
 
:::::::YES: {{para|year}} ''required''.
 
::::YES: Does the citation use {{para|ref|harv}}?
 
:::::NO: use {{para|date}}.
 
:::::YES: Is the date format in {{para|date}} DD Month YYYY or Month YYYY or YYYY or Month DD, YYYY or YYYY-MM-DD?
 
::::::NO: {{para|year}} ''required''.
 
::::::YES: Does the citation require a <code>[[Wikipedia:Citation templates and reference anchors|CITEREF]]</code> [[Template:Sfn#More than one work in a year|disambiguator]]?
 
:::::::NO: use {{para|date}}.
 
:::::::YES: {{para|year}} ''required''.
 
* {{anchor|csdoc_origyear}}'''orig-year''': Original publication year; displays after the date or year. For clarity, please supply specifics. For example: {{para|orig-year|First published 1859}} or {{para|orig-year|Composed 1904}}.{{#if:|
 
* {{anchor|csdoc_began}}OR: '''began''': Full date the first part of the program or episode aired.
 
* {{anchor|csdoc_ended}}AND: '''ended''': Full date the last part of the program or episode aired.}}{{#if:|&#32;Aliases:}}
 
{{reflist|group=date|refs=<ref name=date>Publication dates in references within an article should all have the same format. This may be a different format from that used for archive and access dates. See: [[MOS:DATEUNIFY]].</ref>}}
 
 
===Publisher===
 
* {{anchor|csdoc_publisher}}'''publisher''': Name of publisher; may be wikilinked if relevant. The [[publisher]] is the company that publishes the work being cited. Do not use the '''publisher''' parameter for the name of a work (e.g. a book, encyclopedia, newspaper, magazine, journal, website). Not normally used for periodicals. Corporate designations such as "Ltd", "Inc" or "GmbH" are not usually included. Omit where the publisher's name is substantially the same as the name of the work (for example, The New York Times Co. publishes ''The New York Times'' newspaper, so there is no reason to name the publisher). Displays after '''title'''{{#ifeq:|no|.|<nowiki />; if '''work''' is defined, then '''publisher''' is enclosed in parentheses.}}
 
* {{anchor|csdoc_location}}{{anchor|csdoc_place}}'''place''': 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 after the title; if '''work''' is defined, then '''location''' is enclosed in parentheses. Alias: '''location'''
 
* {{anchor|csdoc_publication-place}}'''publication-place''': If any one of '''publication-place''', '''place''' or '''location''' are defined, then the location shows after the title; if '''publication-place''' and '''place''' or '''location''' are defined, then '''place''' or '''location''' are shown before the title prefixed with "written at" and '''publication-place''' is shown after the title.
 
* {{anchor|csdoc_publication-date}}'''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.
 
* {{anchor|csdoc_via}}'''via''': Name of the content deliverer (if ''different'' from '''publisher'''). '''via''' is not a replacement for '''publisher''', but provides additional detail. It may be used when the content deliverer presents the source in a format other than the original (e.g. [[NewsBank]]), when the URL provided does not make clear the identity of the deliverer, where no URL or DOI is available (EBSCO), if the deliverer requests attribution, or as requested in [[WP:The Wikipedia Library]] (e.g. [[WP:Credo accounts/Citations|Credo]], [[HighBeam]]). See also '''registration''' and '''subscription'''.
 
 
===Edition, series, volume===
 
* '''edition''': When the publication has more than one edition; for example: "2nd", "Revised", and so forth. Appends the string "&nbsp;ed." after the field, so {{para|edition|2nd}} produces "2nd&nbsp;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.
 
* {{anchor|csdoc_volume}}'''volume''': For one publication published in several volumes. {{#if: |Displays after the '''title''' and '''series''' fields; volumes of four characters or less display in bold.|Displays after the '''title''' and '''series''' fields; displays in bold. If bolding is not desired, then include the volume information in the '''title''' field.}}
 
 
===In-source locations===
 
* {{anchor|csdoc_page}}'''page''': The number of a single page in the source that supports the content. Use either {{para|page}} or {{para|pages}}, but not both. Displays preceded by {{code|p.}} unless {{para|nopp|y}}{{#if: |&#32;or '''work''' (or an [[#csdoc_work|alias]]) is defined}}. 
 
*{{anchor|csdoc_pages}}OR: '''pages''': A range of pages in the source that supports the content. Use either {{para|page}} or {{para|pages}}, but not both. Separate using 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 by {{code|pp.}} unless {{para|nopp|y}}{{#if: |&#32;or '''work''' (or an [[#csdoc_work|alias]]) is defined}}. {{#if: |Hyphens are automatically converted to en dashes; if hyphens are appropriate, for example: pp. 3-1–3-15, use {{para|at}}.}}
 
**{{anchor|csdoc_nopp}}'''nopp''': Set to <var>y</var> to suppress the {{code|p.}} or {{code|pp.}} notations where this is inappropriate; for example, where {{para|page|Front cover}}.
 
*{{anchor|csdoc_at}}OR: '''at''': For sources where a page number is inappropriate or insufficient. Overridden by {{para|page}} or {{para|pages}}. Use only one of {{para|page}}, {{para|pages}}, or {{para|at}}.
 
: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===
 
* {{anchor|csdoc_ref}}'''ref''': ID for anchor. By default, no anchor is generated. The ordinary nonempty value {{para|ref|<var>ID</var>}} generates an anchor with the given <var>ID</var>; such a linkable reference can be made the target of [[Wikipedia:Citing sources/Further considerations#Wikilinks to full references|wikilinks to full references]], especially useful in short citations like [[Wikipedia:Citing sources#Shortened footnotes|shortened notes]] and [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. The special value {{para|ref|harv}} generates an anchor suitable for the {{tl|harv}} template. See: [[Template:Citation/doc#Anchors for Harvard referencing templates|Anchors for Harvard referencing templates]].
 
 
===Identifiers===
 
* {{anchor|csdoc_id}}'''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.  In general, the parameters should include only the variable part of the identifier, e.g. <code>rfc=822</code> or <code>pmc=345678</code>.
 
 
* {{anchor|csdoc_arxiv}}'''arxiv''': [[arXiv]] [https://arxiv.org/help/arxiv_identifier identifier]; for example: <code>arxiv=hep-th/9205027</code> (before April 2007) or <code>arxiv=0706.0001</code> or <code>arxiv=1501.00001</code> (since April 2007). Do not include extraneous file extensions like ".pdf" or ".html".
 
* {{anchor|csdoc_asin}}'''asin''': [[Amazon Standard Identification Number]]; if first character of '''asin''' value is a digit, use '''isbn'''.
 
** {{anchor|csdoc_asin-tld}}'''asin-tld''': ASIN top-level domain for Amazon sites other than the US; valid values: {{#if:|<code>au</code>, <code>br</code>, }} <code>ca</code>, <code>cn</code>, <code>co.jp</code>, <code>co.uk</code>, <code>de</code>, <code>es</code>, <code>fr</code>, <code>it</code>{{#if:|, <code>mx</code>}}
 
* {{anchor|csdoc_bibcode}}'''bibcode''': [[Bibcode]]; used by a number of astronomical data systems; for example: <code>1974AJ.....79..819H</code>
 
* {{anchor|csdoc_doi}}'''doi''': [[Digital object identifier]]; for example: <code>10.1038/news070508-7</code>. It is checked to ensure it begins with ({{code|10.}}).
 
** {{anchor|csdoc_doi_brokendate}}'''doi-broken-date''': Date the DOI was found to be non-working at https://dx.doi.org. Use the same format as other dates in the article. Alias: '''doi_brokendate''', '''doi-inactive-date'''
 
* {{anchor|csdoc_isbn}}'''isbn''': [[International Standard Book Number]]; for example: <code>978-0-8126-9593-9</code>. (See: [[Wikipedia:ISBN]] and [[ISBN#Overview|ISBN]]). Dashes in the ISBN are optional, but preferred. Use the ISBN actually printed on or in the book. Use the 13-digit ISBN – beginning with  978 or 979 – when it is available. If only a 10-digit ISBN is printed on or in the book, use it. ISBNs can be found on the page with the publisher's information – usually the back of the title page – or 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 {{para|isbn|0-902888-45-5}}. Do not convert a 10-digit ISBN to 13-digit by just adding the 978 prefix; the last digit is a calculated check digit and just making changes to the numbers will make the ISBN invalid. This parameter should hold only the ISBN without ''any'' additional characters. It is checked for length, invalid characters – anything other than numbers, spaces, and hyphens, with "X" permitted as the last character in a 10-digit ISBN – and the proper check digit. Alias: '''ISBN'''
 
* {{anchor|csdoc_issn}}'''issn''': [[International Standard Serial Number]]; eight characters may be split into two groups of four using a [[hyphen]], but not an [[Dash#En dash|en dash]] or a space.
 
* {{anchor|csdoc_jfm}}'''jfm''': [[Jahrbuch über die Fortschritte der Mathematik]]
 
* {{anchor|csdoc_jstor}}'''jstor''': [[JSTOR]] abstract; for example: <code>jstor=3793107</code> will generate [[JSTOR]] [https://www.jstor.org/stable/3793107 3793107].
 
* {{anchor|csdoc_lccn}}'''lccn''': [[Library of Congress Control Number]]. When present, alphabetic prefix characters are to be lower case. {{#if:|| A certain amount of reformatting may be necessary, such as the use of one or more zeroes instead of a hyphen; for example, if the book shows "Library of Congress Catalog Card Number 89-61500", this would be entered as {{para|lccn|89061500}}. Help with formatting may be found at [http://catalog.loc.gov/vwebv/ui/en_US/htdocs/help/numbers.html#lccn LCCN (Library of Congress Control Number)] and [http://lccn.loc.gov/#n9 How does LCCN Permalink normalize LCCNs?]}}
 
* {{anchor|csdoc_mr}}'''mr''': [[Mathematical Reviews]]
 
* {{anchor|csdoc_oclc}}'''oclc''': [[OCLC]]
 
* {{anchor|csdoc_ol}}'''ol''': [[Open Library]] identifier; do not include "OL" in the value.
 
* {{anchor|csdoc_osti}}'''osti''': [[Office of Scientific and Technical Information]]
 
* {{anchor|csdoc_pmc}}'''pmc''': [[PubMed Central]]; use article number for full-text free repository of a journal article, e.g. <code>pmc=345678</code>. Do not include "PMC" in the value. See also {{para|pmid}} below; these are two different identifiers.{{#if:|
 
** {{anchor|csdoc_Embargo}}'''embargo''': Date that '''pmc''' goes live; if this date is in the future, then '''pmc''' is not linked until that date.}}
 
* {{anchor|csdoc_pmid}}'''pmid''': [[PubMed]]; use unique identifier. See also {{para|pmc}} above; these are two different identifiers.
 
* {{anchor|csdoc_rfc}}'''rfc''': [[Request for Comments]]
 
* {{anchor|csdoc_ssrn}}'''ssrn''': [[Social Science Research Network]]
 
* {{anchor|csdoc_zbl}}'''zbl''': [[Zentralblatt MATH]]
 
 
===Quote===
 
* '''quote''': Relevant text quoted from the source. Displays enclosed in quotes.{{#if: ||&#32;When supplied, the citation terminator (a period by default) is suppressed, so the quote needs to include terminating punctuation.}}
 
 
===Editors===
 
* {{anchor|csdoc_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'''{{#if: |, '''editor<var>n</var>'''.|.}}
 
** '''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 {{#if: |'''editor<var>n</var>-last''', '''editor<var>n</var>-first'''|'''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 {{#if: |'''editor1-link''' through '''editor<var>n</var>-link'''|'''editor1-link''' through '''editor4-link'''}}.
 
:*'''name-list-format''': displays authors and editors in [[Vancouver style]] when set to <code>vanc</code> and when the list uses <code>last</code>/<code>first</code> parameters for the name list(s)
 
:Display:
 
::If authors: Authors are first, followed by {{#if: |the included work, then "In" and the editors|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."{{#if: |{{;}} exactly four editors will show three editors followed by "et al., eds." <!-- ERROR MESSAGE IS HIDDEN BY DEFAULT --> <!-- along with an error message -->unless '''display-editors''' is used.|{{;}} more than three editors will be followed by "et al., eds."}}
 
 
===Laysummary===
 
{{Citation Style documentation/lay
 
|aliases=
 
|aliases2=
 
|type_default=
 
|title_format=
 
|title_title=
 
|coauthors=
 
|date2=
 
|others=
 
|cs2=
 
|lua=
 
|map=
 
|pmc=
 
|work=
 
|department=
 
|began=
 
|2=
 
|3=
 
}}
 
 
===Display options===
 
{{Citation Style documentation/display
 
|aliases=
 
|aliases2=
 
|type_default=
 
|title_format=
 
|title_title=
 
|coauthors=
 
|date2=
 
|others=
 
|cs2=
 
|lua=
 
|map=
 
|pmc=
 
|work=
 
|department=
 
|began=
 
|2=
 
|3=
 
}}
 
 
===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 (<code>Index:</code> or <code>Page:</code>) and the filetype (usually <code>.djvu</code>). Example: {{para|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 {{para|noicon|yes}}, then Wikisource icons will not be added to Wikisource links.
 
*'''firsticon''': If {{para|firsticon|yes}}, then the Wikisource icon will be prepended.
 
*'''vb''': If {{para|vb|yes}}, then the text "This article incorporates text from a publication now in the [[public domain]]:" will be prepended.
 
  
 
==Backward compatibility==
 
==Backward compatibility==

Revision as of 14:37, 5 March 2019

This template is used to cite sources in Wikipedia. It is specifically for works in the sister project 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
  • |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: or Page:) 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 link to the work 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.

template skeletons
Full version (copy and paste text below and delete parameters you don't need)
{{cite wikisource |last1= |first1= |author-link1= |last2= |first2= |author-link2= |editor-first1= |editor-last1= |editor-link1= |others= |title= |trans-title= |plaintitle= |wslink= |archive-url= |archive-date= |type= |edition= |series= |volume= |date= |year= |orig-year= |publisher= |location= |language= |wslanguage= |isbn= |oclc= |doi= |id= |page= |pages= |at= |wspage= |trans-chapter= |chapter= |plainchapter= |quote= |ref= |bibcode= |lay-summary= |lay-date= |postscript= |last-author-amp= |scan= |noicon= |firsticon= |vb=}}
Most commonly used fields (use this and you won't have to delete as much)
{{cite wikisource |title= |wslink= |last= |first= |authorlink= |date= |publisher= |location= |page= |pages= |scan=}}

examples

examples
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 – 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
}}

Lounsbury, T. E. (November 1881). "Sketch of George Jarvis Brush" . Popular Science Monthly. D. Appleton & Company. Vol. 20. p. 117 . ISSN 0161-7370 – via Wikisource. [scan 12px]

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
}}

{{citation |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 |date=November 1881 |first=T. E. |publisher=[[D. Appleton & Company]] |volume=20 |magazine=[[Popular Science Monthly]] |issn=0161-7370}} [scan 12px]

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  – via Wikisource.

{{cite wikisource|Sense and Sensibility|Jane Austen}}

Jane Austen. Sense and Sensibility  – via Wikisource.

{{cite wikisource|Sentido y sensibilidad|Jane Austen|es}}

Jane Austen. Sentido y sensibilidad  (in Spanish) – via Wikisource.

See also

Specific Wikisource citation templates

This template produces COinS metadata; see COinS in Wikipedia for background information.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Cite wikisource

This template is used to cite sources in Wikipedia. It is specifically for works in the sister project Wikisource.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title of book on Wikisource. This must not be wikilinked. This must not have any formatting. It will be automatically linked to Wikisource.

Stringrequired
Authorauthor

no description

Unknownoptional
Datedate

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.

Dateoptional
Firstfirst

no description

Unknownoptional
Lastlast

no description

Unknownoptional
Publication-datepublication-date

no description

Unknownoptional
11

no description

Unknownoptional
22

no description

Unknownoptional
33

no description

Unknownoptional
Firsticonfirsticon

no description

Unknownoptional
Iconfirsticonfirst

no description

Unknownoptional
Vbvb

no description

Unknownoptional
Classclass

no description

Unknownoptional
Authormaskauthormask

no description

Unknownoptional
Author-maskauthor-mask

no description

Unknownoptional
Surnamesurname

no description

Unknownoptional
Last1last1

no description

Unknownoptional
Surname1surname1

no description

Unknownoptional
Author1author1

no description

Unknownoptional
Authorsauthors

no description

Unknownoptional
Last2last2

no description

Unknownoptional
Surname2surname2

no description

Unknownoptional
Author2author2

no description

Unknownoptional
Last3last3

no description

Unknownoptional
Surname3surname3

no description

Unknownoptional
Author3author3

no description

Unknownoptional
Last4last4

no description

Unknownoptional
Surname4surname4

no description

Unknownoptional
Author4author4

no description

Unknownoptional
Last5last5

no description

Unknownoptional
Surname5surname5

no description

Unknownoptional
Author5author5

no description

Unknownoptional
Last6last6

no description

Unknownoptional
Surname6surname6

no description

Unknownoptional
Author6author6

no description

Unknownoptional
Last7last7

no description

Unknownoptional
Surname7surname7

no description

Unknownoptional
Author7author7

no description

Unknownoptional
Last8last8

no description

Unknownoptional
Surname8surname8

no description

Unknownoptional
Author8author8

no description

Unknownoptional
Last9last9

no description

Unknownoptional
Surname9surname9

no description

Unknownoptional
Author9author9

no description

Unknownoptional
First1first1

no description

Unknownoptional
Given1given1

no description

Unknownoptional
Givengiven

no description

Unknownoptional
First2first2

no description

Unknownoptional
Given2given2

no description

Unknownoptional
First3first3

no description

Unknownoptional
Given3given3

no description

Unknownoptional
First4first4

no description

Unknownoptional
Given4given4

no description

Unknownoptional
First5first5

no description

Unknownoptional
Given5given5

no description

Unknownoptional
First6first6

no description

Unknownoptional
Given6given6

no description

Unknownoptional
First7first7

no description

Unknownoptional
Given7given7

no description

Unknownoptional
First8first8

no description

Unknownoptional
Given8given8

no description

Unknownoptional
First9first9

no description

Unknownoptional
Given9given9

no description

Unknownoptional
Author-linkauthor-link

no description

Unknownoptional
Author1-linkauthor1-link

no description

Unknownoptional
Authorlinkauthorlink

no description

Unknownoptional
Authorlink1authorlink1

no description

Unknownoptional
Author2-linkauthor2-link

no description

Unknownoptional
Authorlink2authorlink2

no description

Unknownoptional
Author3-linkauthor3-link

no description

Unknownoptional
Authorlink3authorlink3

no description

Unknownoptional
Author4-linkauthor4-link

no description

Unknownoptional
Authorlink4authorlink4

no description

Unknownoptional
Author5-linkauthor5-link

no description

Unknownoptional
Authorlink5authorlink5

no description

Unknownoptional
Author6-linkauthor6-link

no description

Unknownoptional
Authorlink6authorlink6

no description

Unknownoptional
Author7-linkauthor7-link

no description

Unknownoptional
Authorlink7authorlink7

no description

Unknownoptional
Author8-linkauthor8-link

no description

Unknownoptional
Authorlink8authorlink8

no description

Unknownoptional
Author9-linkauthor9-link

no description

Unknownoptional
Authorlink9authorlink9

no description

Unknownoptional
Coauthorcoauthor

no description

Unknownoptional
Coauthorscoauthors

no description

Unknownoptional
Yearyear

no description

Unknownoptional
Origyearorigyear

no description

Unknownoptional
Dayday

no description

Unknownoptional
Monthmonth

no description

Unknownoptional
Plaintitleplaintitle

no description

Unknownoptional
Noiconnoicon

no description

Unknownoptional
Wslanguagewslanguage

no description

Unknownoptional
Wslinkwslink

no description

Unknownoptional
Anchoranchor

no description

Unknownoptional
Trans_chaptertrans_chapter

no description

Unknownoptional
Trans_titletrans_title

no description

Unknownoptional
Archiveurlarchiveurl

no description

Unknownoptional
Urlurl

no description

Unknownoptional
Archivedatearchivedate

no description

Unknownoptional
Typetype

no description

Unknownoptional
Seriesseries

no description

Unknownoptional
Volumevolume

no description

Unknownoptional
Issueissue

no description

Unknownoptional
Numbernumber

no description

Unknownoptional
Wspagewspage

no description

Unknownoptional
Wspageswspages

no description

Unknownoptional
Chapterchapter

no description

Unknownoptional
Pagespages

no description

Unknownoptional
Pagepage

no description

Unknownoptional
Atat

no description

Unknownoptional
Noppnopp

no description

Unknownoptional
Contributioncontribution

no description

Unknownoptional
Plainchapterplainchapter

no description

Unknownoptional
Chapter-urlchapter-url

no description

Unknownoptional
Chapterurlchapterurl

no description

Unknownoptional
Contribution-urlcontribution-url

no description

Unknownoptional
Othersothers

no description

Unknownoptional
Editionedition

no description

Unknownoptional
Placeplace

no description

Unknownoptional
Locationlocation

no description

Unknownoptional
Publication-placepublication-place

no description

Unknownoptional
Publisherpublisher

no description

Unknownoptional
Editor-lasteditor-last

no description

Unknownoptional
Editor-surnameeditor-surname

no description

Unknownoptional
Editor1-lasteditor1-last

no description

Unknownoptional
Editor1-surnameeditor1-surname

no description

Unknownoptional
Editoreditor

no description

Unknownoptional
Editorseditors

no description

Unknownoptional
Editor2-lasteditor2-last

no description

Unknownoptional
Editor2-surnameeditor2-surname

no description

Unknownoptional
Editor3-lasteditor3-last

no description

Unknownoptional
Editor3-surnameeditor3-surname

no description

Unknownoptional
Editor4-lasteditor4-last

no description

Unknownoptional
Editor4-surnameeditor4-surname

no description

Unknownoptional
Editor-firsteditor-first

no description

Unknownoptional
Editor-giveneditor-given

no description

Unknownoptional
Editor1-firsteditor1-first

no description

Unknownoptional
Editor1-giveneditor1-given

no description

Unknownoptional
Editor2-firsteditor2-first

no description

Unknownoptional
Editor2-giveneditor2-given

no description

Unknownoptional
Editor3-firsteditor3-first

no description

Unknownoptional
Editor3-giveneditor3-given

no description

Unknownoptional
Editor4-firsteditor4-first

no description

Unknownoptional
Editor4-giveneditor4-given

no description

Unknownoptional
Editor-linkeditor-link

no description

Unknownoptional
Editor1-linkeditor1-link

no description

Unknownoptional
Editor2-linkeditor2-link

no description

Unknownoptional
Editor3-linkeditor3-link

no description

Unknownoptional
Editor4-linkeditor4-link

no description

Unknownoptional
Languagelanguage

no description

Unknownoptional
Inin

no description

Unknownoptional
Formatformat

no description

Unknownoptional
Arxivarxiv

no description

Unknownoptional
Asinasin

no description

Unknownoptional
ASINASIN

no description

Unknownoptional
Bibcodebibcode

no description

Unknownoptional
Doidoi

no description

Unknownoptional
DOIDOI

no description

Unknownoptional
Doi_inactivedatedoi_inactivedate

no description

Unknownoptional
Doi_brokendatedoi_brokendate

no description

Unknownoptional
Isbnisbn

no description

Unknownoptional
ISBNISBN

no description

Unknownoptional
Issnissn

no description

Unknownoptional
ISSNISSN

no description

Unknownoptional
Jfmjfm

no description

Unknownoptional
JFMJFM

no description

Unknownoptional
Jstorjstor

no description

Unknownoptional
JSTORJSTOR

no description

Unknownoptional
Lccnlccn

no description

Unknownoptional
LCCNLCCN

no description

Unknownoptional
Mrmr

no description

Unknownoptional
MRMR

no description

Unknownoptional
Oclcoclc

no description

Unknownoptional
OCLCOCLC

no description

Unknownoptional
Olol

no description

Unknownoptional
OLOL

no description

Unknownoptional
Ostiosti

no description

Unknownoptional
OSTIOSTI

no description

Unknownoptional
Pmcpmc

no description

Unknownoptional
PMCPMC

no description

Unknownoptional
Pmc-embargo-datepmc-embargo-date

no description

Unknownoptional
Pmidpmid

no description

Unknownoptional
PMIDPMID

no description

Unknownoptional
Rfcrfc

no description

Unknownoptional
RFCRFC

no description

Unknownoptional
Ssrnssrn

no description

Unknownoptional
SSRNSSRN

no description

Unknownoptional
Zblzbl

no description

Unknownoptional
Idid

no description

Unknownoptional
IDID

no description

Unknownoptional
Access-dateaccess-date

no description

Unknownoptional
Accessdateaccessdate

no description

Unknownoptional
Dateformatdateformat

no description

Unknownoptional
Quotequote

no description

Unknownoptional
Laysummarylaysummary

no description

Unknownoptional
Laydatelaydate

no description

Unknownoptional
Refref

no description

Unknownoptional
Separatorseparator

no description

Unknownoptional
Seperatorseperator

no description

Unknownoptional
Postscriptpostscript

no description

Unknownoptional
Author-separatorauthor-separator

no description

Unknownoptional
Author-name-separatorauthor-name-separator

no description

Unknownoptional
Display-authorsdisplay-authors

no description

Unknownoptional
Lastauthoramplastauthoramp

no description

Unknownoptional
Scanscan

no description

Unknownoptional
Accessdaymonthaccessdaymonth

no description

Unknownoptional
Accessmonthdayaccessmonthday

no description

Unknownoptional
Accessdayaccessday

no description

Unknownoptional
Accessmonthaccessmonth

no description

Unknownoptional
Accessyearaccessyear

no description

Unknownoptional